Function at 0x43f640
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, dword [ebp + 0x10]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x98], eax
lea esi, [esp + 0x44]
push 0xcd
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x90]
push esi
call fcn.00457b40
mov eax, dword [0x532e68]
test al, 1
je 0x43fba2
lea ecx, [esp + 0x44]
call fcn.00457e20
mov ebx, dword [edi + 0x18]
cmp dword [edi + 0x14], 1
sete cl
mov edi, dword [edi + 0x1c]
xor edx, edx
cmp ebx, edi
je 0x43f6d1
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x43f6dc
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.0043fce0
jmp 0x43fb75
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
jmp 0x43f786
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop word cs:[eax + eax]
nop dword [eax]
push 1
push 1
push dword [ebx]
call esi
test eax, eax
je 0x43f705
add ebx, 4
cmp edi, ebx
jne 0x43f6f0
jmp 0x43f730
push 0xe1
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0x38]
push eax
call fcn.00458010
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00457fe0
lea ecx, [esp + 0x30]
call fcn.00457ff0
jmp 0x43f6fc
call fcn.00441a60
mov cl, 1
cmp eax, 2
jle 0x43f77e
lea ecx, [esp + 0x44]
push 1
call fcn.00457ef0
test al, al
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
je 0x43f6c3
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
sub edx, eax
lea ecx, [esp + 0x44]
push edx
push eax
push 0x20002
call fcn.00457fa0
mov edx, 0x80000
test al, al
mov cl, 1
je 0x43f6c3
jmp 0x43f786
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor edx, edx
cmp byte [edi + 0x11], 0
je 0x43f791
or byte [esp + 0x74], 0x80
mov byte [esp + 3], cl
cmp byte [edi + 0x28], 0
je 0x43f7a3
mov dword [esp + 0x50], 0x4e3bae
mov ebx, edx
mov eax, dword [esp + 0x74]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x74], ecx
movzx ecx, byte [edi + 0x10]
xor ecx, 1
mov word [esp + 0x78], cx
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x43f7ca
mov edx, dword [edi + 0x34]
jmp 0x43f7d7
mov edx, dword [edi + 0x34]
test edx, edx
jne 0x43f7d7
cmp dword [edi + 0x38], 0
je 0x43f7f8
or eax, 0x101
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov eax, dword [edi + 0x38]
mov dword [esp + 0x88], eax
cmp dword [edi + 0x2c], 0
je 0x43f813
call fcn.00441a60
mov edx, ebx
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl edx, ecx
jmp 0x43f815
mov edx, ebx
mov ebx, edx
or ebx, 0x1000000
cmp byte [edi + 0x3c], 0
cmove ebx, edx
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movzx eax, byte [edi + 0xf]
mov ecx, eax
test al, al
jns 0x43f839
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x43f84c
lea ecx, [edi + 4]
test al, al
jns 0x43f846
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
jmp 0x43f854
mov dword [esp + 4], 0
lea edi, [esp + 0x24]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00429824
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x43f8e8
mov dword [esp + 8], 0
lea ecx, [esp + 8]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x43f8da
or ebx, 0x400
mov ecx, dword [esp + 8]
movzx eax, byte [esp + 3]
cmp byte [esp + 0x2f], 0
jns 0x43f89f
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x4c]
push edx
push dword [esp + 0xc]
push ecx
push ebx
push eax
push 0
push 0
push edi
push 0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 8]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
je 0x43f8da
mov edi, dword [ebp + 0x10]
jmp 0x43fa90
mov ecx, esi
push 0
call fcn.0043fce0
jmp 0x43fb62
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
cmp byte [ecx + 0x4c], 0
mov edi, ecx
je 0x43f937
lea eax, [edi + 0x40]
lea ecx, [esp + 0x18]
push eax
push 0x4e94a0
push ecx
call fcn.00458080
add esp, 0xc
cmp byte [esp + 0x13], 0
js 0x43f97e
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
mov cl, byte [esp + 3]
jmp 0x43f9b2
cmp dword [edi + 0x48], 0
je 0x43f9d6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x43fb0b
mov edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x18]
push eax
push edi
push ecx
call fcn.00458080
add esp, 0xc
cmp byte [esp + 0x13], 0
js 0x43f9de
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0x43fa0a
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
mov cl, byte [esp + 3]
jns 0x43f9b2
push dword [esp + 8]
call fcn.004af3c6
mov cl, byte [esp + 7]
add esp, 4
mov dword [esp + 0x10], 0
lea esi, [esp + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 8], xmm0
cmp byte [esi + 0xb], 0
jns 0x43fa36
mov eax, dword [esp + 8]
jmp 0x43fa3a
xor eax, eax
mov cl, byte [esp + 3]
jmp 0x43fa40
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0x43fa0a
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
mov dword [esp + 0x10], 0
lea esi, [esp + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 8], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp + 0x10]
mov cl, byte [esp + 3]
cmp byte [esi + 0xb], 0
js 0x43f9d0
lea eax, [esp + 8]
or ebx, 0x400
movzx ecx, cl
cmp byte [esp + 0x2f], 0
jns 0x43fa50
mov edx, dword [esp + 0x24]
jmp 0x43fa54
lea edx, [esp + 0x24]
lea esi, [esp + 0x30]
push esi
lea esi, [esp + 0x4c]
push esi
push dword [esp + 0xc]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43fb08
cmp byte [esp + 0x13], 0
mov esi, dword [ebp + 8]
jns 0x43fa90
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
lea eax, [esp + 0x30]
lea ecx, [esp + 8]
push eax
call fcn.00458530
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x43fab4
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x43fb29
cmp byte [edi + 0x3d], 0
je 0x43facd
push dword [esp + 8]
call fcn.00450ec0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [edi], 0
je 0x43fade
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x533494]
test ecx, ecx
je 0x43faf5
push dword [ebp + 0xc]
push eax
call fcn.0044f250
lea ecx, [esp + 8]
call fcn.004588d0
mov ecx, esi
push eax
call fcn.0043fce0
jmp 0x43fb59
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.0043fce0
cmp byte [esp + 0x13], 0
jns 0x43fb62
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
jmp 0x43fb62
lea ecx, [esp + 8]
call fcn.004588d0
lea edi, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0043fce0
mov ecx, edi
push 1
push 1
call fcn.0043fe80
mov ecx, esi
push 0
call fcn.0043fce0
mov ecx, edi
call fcn.0043fd50
lea ecx, [esp + 8]
call fcn.00458690
cmp byte [esp + 0x2f], 0
jns 0x43fb75
push dword [esp + 0x24]
call fcn.004af3c6
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00457eb0
lea ecx, [esp + 0x90]
call fcn.00457d10
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004af401
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, 1
mov dword [0x532e68], eax
lea ecx, [esp + 0x90]
call fcn.00457c50
jmp 0x43f696