Function at 0x505310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a6f0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004fa4d0
mov dword [ebp - 4], 0
xor eax, eax
push 1
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 0x581364
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407880
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.0048d0b0
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x50539e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407b40
push 2
push 0x592340
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
push 0x58a914
push dword [ebp - 0x60]
call fcn.0042cd10
mov eax, dword [ebp - 0x60]
push esi
cmp dword [ebp - 0x5c], eax
je 0x505409
mov ecx, eax
call fcn.00406ba0
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x60], eax
jmp 0x505415
push eax
lea ecx, [ebp - 0x64]
call fcn.00406800
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], eax
je 0x50544d
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
push 0xf
mov word [eax], cx
mov ecx, eax
push str.AI_CLEAR_TEMP1
call fcn.00407880
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x60], eax
jmp 0x50545e
push str.AI_CLEAR_TEMP1
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd10
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], eax
je 0x505491
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
push 3
mov word [eax], cx
mov ecx, eax
push 0x58a9b0
call fcn.00407880
add dword [ebp - 0x60], 0x18
jmp 0x50549f
push 0x58a9b0
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd10
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x40]
call fcn.00496890
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x5054b8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407b40
push 0x40
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], 0x44
push 0
push eax
call fcn.00523880
add esp, 0xc
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x74], xmm0
push eax
call fcn.0048d0b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x505517
mov eax, dword [eax]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0xb8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407b40
test esi, esi
je 0x505553
push 0xffffffffffffffff
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00406550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407b40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4