Function at 0x405620
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40566c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x54
ret
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
cmp eax, ecx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
je 0x4056cf
push eax
call fcn.0042a3e2
lea esi, [eax + eax + 2]
push esi
call fcn.00429bd8
add esp, 8
mov edx, eax
push 0
mov ecx, esi
mov ebp, ecx
shr ecx, 2
push 0
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push esi
push edx
mov ecx, ebp
and ecx, 3
push 0xffffffffffffffff
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x7c]
push ecx
push 0x200
push 0
mov dword [esp + 0x3c], edx
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40571d
push eax
call fcn.0042a3e2
lea esi, [eax + eax + 2]
push esi
call fcn.00429bd8
add esp, 8
push 0
push 0
mov edx, eax
push esi
push edx
mov ecx, esi
mov ebp, ecx
shr ecx, 2
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push 0xffffffffffffffff
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x80]
push edx
mov ecx, ebp
push 0x200
and ecx, 3
push 0
rep stosb byte es:[edi], al
call ebx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x40576e
push eax
call fcn.0042a3e2
lea esi, [eax + eax + 2]
push esi
call fcn.00429bd8
add esp, 8
mov edx, eax
push 0
mov ecx, esi
mov ebp, ecx
shr ecx, 2
xor eax, eax
push 0
mov edi, edx
rep stosd dword es:[edi], eax
push esi
push edx
mov ecx, ebp
and ecx, 3
push 0xffffffffffffffff
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x98]
push eax
push 0x200
push 0
mov dword [esp + 0x30], edx
call ebx
mov esi, dword [esp + 0x88]
xor eax, eax
test esi, esi
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x14], eax
je 0x4058e5
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x5c], eax
mov ax, word [esi + 0x32]
mov word [esp + 0x52], ax
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x58], ecx
mov cx, word [esi + 0x30]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x10]
mov word [esp + 0x50], cx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
je 0x40584f
push eax
call fcn.0042a3e2
lea ebp, [eax + eax + 2]
push ebp
call fcn.00429bd8
mov edi, eax
add esp, 8
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x2c], edi
xor eax, eax
rep stosd dword es:[edi], eax
push 0
push 0
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40589a
push eax
call fcn.0042a3e2
lea ebp, [eax + eax + 2]
push ebp
call fcn.00429bd8
mov edi, eax
add esp, 8
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x28], edi
xor eax, eax
rep stosd dword es:[edi], eax
push 0
push 0
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 8]
push eax
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x4058e5
push eax
call fcn.0042a3e2
lea ebp, [eax + eax + 2]
push ebp
call fcn.00429bd8
mov edi, eax
add esp, 8
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x24], edi
xor eax, eax
rep stosd dword es:[edi], eax
push 0
push 0
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push eax
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call ebx
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test esi, esi
mov edi, eax
je 0x405980
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40594e
push eax
call fcn.00429695
add esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405967
push eax
call fcn.00429695
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405980
push eax
call fcn.00429695
add esp, 4
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x40598d
push ebx
call fcn.00429695
add esp, 4
test ebp, ebp
je 0x40599a
push ebp
call fcn.00429695
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4059ab
push eax
call fcn.00429695
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret