Function at 0x407fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54afa8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x60c9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor eax, eax
xor ebx, ebx
push 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00531fb0
add esp, 0xc
lea ecx, [esi + 8]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x70], 0x44
mov dword [esi], 9
mov dword [ebp - 4], ebx
call fcn.00405b90
push 1
push 0x55e51c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00407c10
cmp dword [esi + 0x39c], ebx
je 0x408042
push 0xd
push str._q__norestart
jmp 0x40805a
cmp dword [esi + 0x3a0], ebx
jne 0x408053
push 0x13
push str._passive__norestart
jmp 0x40805a
push 0x23
push str._passive__norestart__showfinalerror
lea ecx, [ebp - 0x14]
call fcn.00407c10
xor edi, edi
movzx eax, word [edi*2 + 0x5d2ca4]
cmp edi, eax
jge 0x4080a4
cmp ax, word [esi + 0x214]
jne 0x4080a1
push 7
push str.__lcid
lea ecx, [ebp - 0x14]
call fcn.00407c10
movzx eax, word [esi + 0x214]
push eax
lea ecx, [ebp - 0x14]
push 0x55e478
push ecx
call fcn.00407e30
add esp, 0xc
inc edi
jmp 0x408064
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4080bc
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402d60
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40810f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00407b40
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40817c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40817c
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x40818d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40819e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [esi + 0x3b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret