add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
40
decomp/AgentManager_Release_x64/full/functions/0x140005110.c
Normal file
40
decomp/AgentManager_Release_x64/full/functions/0x140005110.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x140005110 FUN_140005110
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140005110(longlong *param_1,LPCSTR param_2,UINT param_3)
|
||||
|
||||
{
|
||||
code *pcVar1;
|
||||
int iVar2;
|
||||
int iVar3;
|
||||
DWORD DVar4;
|
||||
bool bVar5;
|
||||
|
||||
if (param_2 == (LPCSTR)0x0) {
|
||||
*param_1 = 0;
|
||||
return;
|
||||
}
|
||||
iVar2 = lstrlenA(param_2);
|
||||
iVar2 = iVar2 + 1;
|
||||
FUN_140005020(param_1,iVar2,param_1 + 1,0x80);
|
||||
iVar3 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)*param_1,iVar2);
|
||||
if (iVar3 == 0) {
|
||||
DVar4 = GetLastError();
|
||||
bVar5 = true;
|
||||
if (DVar4 == 0x7a) {
|
||||
iVar3 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)0x0,0);
|
||||
FUN_140005020(param_1,iVar3,param_1 + 1,0x80);
|
||||
iVar2 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)*param_1,iVar3);
|
||||
bVar5 = iVar2 == 0;
|
||||
}
|
||||
if (bVar5) {
|
||||
FUN_1400050f0();
|
||||
pcVar1 = (code *)swi(3);
|
||||
(*pcVar1)();
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue