Function at 0x40b640
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x577918
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, 0x400000
lea ebx, [esp + 0x18]
call fcn.00407850
mov esi, ebx
mov dword [esp + 0x34], 0
call fcn.004078e0
push 0xc
push str.fphelper.exe
mov eax, ebx
push eax
call fcn.00407d80
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b6e0
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 1
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], 2
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 3
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x34], 4
mov edx, dword [ecx]
push edx
push str._path:__s_
lea edi, [esp + 0x24]
call fcn.00403ac0
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push ecx
push str._param:__s_
lea edi, [esp + 0x34]
call fcn.00403ac0
mov edx, dword [esp + 0x54]
push edx
push str._pid:_d
lea edi, [esp + 0x38]
call fcn.00403ac0
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push ebp
push ebx
push eax
push str._admin__s__s__s
lea edi, [esp + 0x50]
call fcn.00403ac0
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
add esp, 0x28
push ecx
push 0
push esi
push edx
push 0x5c3c90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea eax, [esi - 0x10]
setg byte [esp + 0x17]
mov byte [esp + 0x34], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x34], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b816
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x34], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b837
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b85c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b884
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret