Function at 0x42b940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], 0
mov dword [ebp - 0x50], 0
push 0x40
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00413d10
add esp, 0xc
mov dword [ebp - 0x50], 0x44
mov cx, word [ebp + 0x1c]
mov word [ebp - 0x20], cx
mov dword [ebp - 0x24], 1
cmp dword [ebp + 0x10], 0
je 0x42b991
mov edx, dword [ebp + 0x10]
push edx
call fcn.00413d8a
add esp, 4
mov dword [ebp - 0x74], eax
jmp 0x42b998
mov dword [ebp - 0x74], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00413d8a
add esp, 4
add eax, dword [ebp - 0x74]
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
push eax
call fcn.004063dc
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x42b9f3
mov ecx, dword [ebp - 0x68]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00413d10
add esp, 0xc
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
jmp 0x42b9fa
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x54], ecx
cmp dword [ebp + 0x20], 0
je 0x42ba46
cmp dword [ebp + 0x10], 0
je 0x42ba2b
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x436268
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.00414e35
add esp, 0x14
jmp 0x42ba44
mov eax, dword [ebp + 8]
push eax
push 0x436274
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.00414e35
add esp, 0x10
jmp 0x42ba65
cmp dword [ebp + 0x10], 0
je 0x42ba65
mov eax, dword [ebp + 0x10]
push eax
push 0x43627c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.00414e35
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x42bb8f
mov dword [ebp - 0x58], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
call fcn.0042b760
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bb67
cmp dword [ebp - 0x58], 0
je 0x42bb67
mov dword [ebp - 0x64], 0
push 0
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x64]
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0x20], 0
je 0x42baea
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0x4000400
push 0
push 0
push 0
mov ecx, dword [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
jmp 0x42bb1a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0x4000400
push 0
push 0
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x64]
push ecx
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x42bb65
mov eax, dword [ebp + 0x20]
push eax
movzx ecx, word [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b940
add esp, 0x1c
mov dword [ebp - 8], eax
jmp 0x42bb8d
mov eax, dword [ebp + 0x20]
push eax
movzx ecx, word [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b940
add esp, 0x1c
mov dword [ebp - 8], eax
jmp 0x42bbe9
cmp dword [ebp + 0x20], 0
je 0x42bbbf
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0x4000000
push 1
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
jmp 0x42bbe9
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0x4000000
push 1
push 0
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.004063d1
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret