Function at 0x427f60
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, 0x130
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x128], eax
cmp byte [edx + 0x11], 0
mov dword [esp + 0x10], ecx
jne 0x42842f
mov al, byte [0x551ca8]
xor ebx, ebx
mov byte [esp + 7], al
test al, 0x19
jne 0x428453
xor eax, eax
dec eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xc0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x70]
push 0x104
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004651d0
add esp, 0x10
mov ecx, edi
push 0x555904
push esi
call fcn.0042ff30
pxor xmm0, xmm0
movdqa xmmword [esp + 0x110], xmm0
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ecx, [esp + 0x70]
call fcn.004301f0
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x42803b
call fcn.0046bfe0
xor ebx, ebx
cmp eax, 0x10
setge bl
mov ecx, dword [esi + 0x18]
xor eax, eax
cmp ecx, dword [esi + 0x1c]
setne al
add eax, ebx
je 0x4284c4
lea ecx, [esp + 0x70]
push eax
call fcn.00430250
mov dword [esp + 8], 0x80000
test al, al
je 0x428365
cmp byte [esi + 0x3e], 0
je 0x42809c
call fcn.0046bfe0
cmp eax, 0x10
jl 0x42809c
lea eax, [esp + 0x110]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x70]
push 0x10
push eax
push 0x20007
call fcn.00430300
test al, al
je 0x428365
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x4280fc
cmp ebx, edi
js 0x428365
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x428376
add edi, 4
cmp edi, ebx
jne 0x4280b8
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x4284d1
lea ecx, [esp + 0x70]
push edx
push eax
push 0x20002
call fcn.00430300
mov cl, 1
test al, al
je 0x428365
cmp byte [esi + 0x12], 0
jne 0x4284ef
mov ebx, ecx
cmp byte [esi + 0x28], 0
jne 0x4284fc
mov eax, dword [esp + 0xa0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esi + 0x10]
xor ecx, 1
mov word [esp + 0xa4], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
test ecx, ecx
jne 0x42839b
test edx, edx
jne 0x42839b
test esi, esi
jne 0x42839b
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x2c], 0
jne 0x4282f7
mov edx, dword [esp + 8]
mov edi, edx
or edi, 0x1000000
cmp byte [esi + 0x3c], 0
cmove edi, edx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [esi + 0xf]
test al, al
mov edx, dword [ebp + 0xc]
jns 0x428192
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
jmp 0x428198
lea ecx, [esi + 4]
and eax, 0x7f
test eax, eax
cmove ecx, eax
mov dword [esp + 8], ecx
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp byte [edx + 0xb], 0
jns 0x428509
lea ecx, [esp + 0x40]
push dword [edx + 4]
push dword [edx]
call fcn.004207f0
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x42851f
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd8], eax
mov cl, byte [esi + 0x4c]
test cl, cl
jne 0x4283c1
cmp dword [esi + 0x48], 0
jne 0x4283c1
movzx ecx, bl
cmp byte [esp + 0x4b], 0
jns 0x42820f
mov edx, dword [esp + 0x40]
jmp 0x428213
lea edx, [esp + 0x40]
lea esi, [esp + 0x50]
xor ebx, ebx
push esi
lea esi, [esp + 0x78]
push esi
push dword [esp + 0x10]
push eax
push edi
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4286b1
cmp byte [esp + 0xdb], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
js 0x42855e
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.00430a40
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x428311
cmp byte [esi + 0x3d], 0
jne 0x428572
cmp byte [esi], 0
jne 0x42858a
mov eax, dword [esp + 0x38]
mov ecx, dword [0x560148]
test ecx, ecx
jne 0x4285e6
lea ecx, [esp + 0x30]
call fcn.00430bf0
mov ecx, ebx
push eax
call fcn.00467d30
lea ecx, [esp + 0x30]
call fcn.00430b50
cmp byte [esp + 0x4b], 0
jns 0x4282bf
push dword [esp + 0x40]
call fcn.0049a571
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00430220
lea ecx, [esp + 0xc0]
call fcn.00430050
test byte [esp + 7], 0x19
jne 0x4285f4
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0046bfe0
mov edx, dword [esp + 8]
lea ecx, [edx + 0x1000000]
cmp eax, 5
cmovl edx, ecx
jmp 0x428166
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x42826d
lea esi, [esp + 0xd0]
xor eax, eax
dec eax
mov dword [esi + 4], eax
mov dword [esi], eax
lea ecx, [esp + 0x30]
call fcn.00430bf0
mov ecx, esi
push eax
call fcn.00467d30
xor eax, eax
inc eax
mov ecx, esi
push eax
push eax
call fcn.004ddb10
mov ecx, ebx
push 0
call fcn.00467d30
mov ecx, esi
call fcn.00467da0
jmp 0x4282a3
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00467d30
jmp 0x4282bf
push 0x13f
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x74]
push eax
call fcn.004e2270
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.004e2290
jmp 0x4280ca
or eax, 0x101
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
jmp 0x428155
test cl, cl
je 0x428651
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push 0x53ac7c
push ecx
call fcn.004e22c0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x4283fb
push dword [esp + 0xd0]
call fcn.0049a571
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xd0], xmm0
cmp byte [esp + 0xdb], 0
jns 0x42863f
mov eax, dword [esp + 0xd0]
jmp 0x428646
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x4286dc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
jmp 0x4286df
lea esi, [esp + 0x70]
push esi
call fcn.0046b630
add esp, 4
call fcn.0046aa00
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x551ca8
mov dword [esp], 0x58
call fcn.0046c670
add esp, 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], str.LaunchProcess
mov dword [esp + 0xc], 0x551ca8
jmp 0x427fbb
mov dword [esp + 8], 0
jmp 0x428068
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x591
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.004c6210
or byte [esp + 0xa0], 0x80
jmp 0x428106
mov dword [esp + 0x7c], 0x536a3a
jmp 0x428112
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [edx]
movq qword [esp + 0x40], xmm0
jmp 0x4281c8
xor ecx, ecx
lea edx, [esp + 0xd0]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x428752
or edi, 0x400
mov ecx, dword [esp + 0xd0]
movzx esi, bl
cmp byte [esp + 0x4b], 0
jns 0x42870e
mov edx, dword [esp + 0x40]
jmp 0x428712
push dword [esp + 0xd0]
call fcn.0049a571
add esp, 4
jmp 0x42824c
push dword [esp + 0x30]
call fcn.0042fa20
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x428277
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xd0]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0x1bc
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004651d0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.0046afb0
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.0046b030
jmp 0x428280
push dword [ebp + 0xc]
push eax
call fcn.004e06b0
jmp 0x428292
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x4282df
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x80]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0046d1c0
add esp, 0x10
jmp 0x4282df
lea eax, [esp + 0xd0]
or edi, 0x400
jmp 0x4281ff
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4286b1
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.004e22c0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x42868b
push dword [esp + 0xd0]
call fcn.0049a571
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xd0], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x428415
mov ecx, dword [ebp + 8]
push 0
call fcn.00467d30
cmp byte [esp + 0xdb], 0
jns 0x4286d4
push dword [esp + 0xd0]
call fcn.0049a571
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x4282ac
and eax, 0x7f
lea edi, [esp + 0x70]
push eax
push dword [esp + 0x14]
push edi
call fcn.004db920
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
mov ebx, ecx
call fcn.004dd7d0
add esp, 8
mov ecx, edi
call fcn.00422030
jmp 0x4282df
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor eax, eax
push ebx
lea ebx, [esp + 0x78]
push ebx
push dword [esp + 0x10]
push ecx
push edi
push esi
push eax
push eax
push edx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0xd0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x428752
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
jmp 0x42824c
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00467d30
jmp 0x4282ac