Function at 0x467770
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 [0x5f3024]
xor eax, ebp
mov dword [esp + 0x128], eax
cmp byte [edx + 0x11], 0
jne 0x467b07
mov al, byte [0x5f4c18]
xor ebx, ebx
mov byte [esp + 0xb], al
test al, 0x19
jne 0x467e56
xor eax, eax
dec eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xc0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x70]
push 0x185
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0x5fa088
push esi
call fcn.0048a8e0
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.0048b0d0
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3f], 0
je 0x467847
call fcn.004dfe40
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 0x46786e
lea ecx, [esp + 0x70]
push eax
call fcn.0048b130
mov edi, 0x80000
test al, al
jne 0x467870
jmp 0x467a01
xor edi, edi
cmp byte [esi + 0x3f], 0
je 0x4678a4
call fcn.004dfe40
cmp eax, 0x10
jl 0x4678a4
lea eax, [esp + 0x110]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x70]
push 0x10
push eax
push 0x20007
call fcn.0048b1e0
test al, al
je 0x467a01
mov dword [esp + 0xc], edi
cmp dword [esi + 0x14], 1
mov ebx, dword [esi + 0x18]
sete cl
mov edi, dword [esi + 0x1c]
cmp ebx, edi
je 0x467928
cmp edi, ebx
js 0x467a01
xor esi, esi
inc esi
push esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4678db
add ebx, 4
cmp ebx, edi
jne 0x4678c4
jmp 0x4678fd
push 0x1c0
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x74]
push eax
call fcn.0056de60
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.0056de90
jmp 0x4678d2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x467ec7
lea ecx, [esp + 0x70]
push edx
push eax
push 0x20002
call fcn.0048b1e0
mov cl, 1
test al, al
je 0x467a01
cmp byte [esi + 0x12], 0
je 0x467936
or byte [esp + 0xa0], 0x80
mov byte [esp + 0xa], cl
cmp byte [esi + 0x28], 0
mov ebx, dword [esp + 0xc]
je 0x46794c
mov dword [esp + 0x7c], 0x5d56e6
mov ecx, dword [esp + 0xa0]
mov eax, ecx
or eax, 1
mov dword [esp + 0xa0], eax
movzx edx, byte [esi + 0x10]
xor edx, 1
mov word [esp + 0xa4], dx
mov edx, dword [esi + 0x30]
mov edi, esi
mov esi, dword [esi + 0x34]
mov edi, dword [edi + 0x38]
test edx, edx
jne 0x467985
test esi, esi
jne 0x467985
test edi, edi
je 0x4679a9
or ecx, 0x101
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], edi
mov eax, ecx
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x4679be
or eax, 0x80
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x2c], 0
je 0x4679d5
call fcn.004dfe40
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
mov ecx, dword [ebp + 0xc]
mov edi, ebx
or edi, 0x1000000
cmp byte [esi + 0x3c], 0
cmove edi, ebx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [esi + 0xf]
test al, al
jns 0x467a10
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
jmp 0x467a16
mov ecx, dword [ebp + 8]
push 0
call fcn.004df950
jmp 0x467dca
lea ebx, [esi + 4]
and eax, 0x7f
test eax, eax
cmove ebx, eax
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp byte [ecx + 0xb], 0
js 0x467e3d
mov eax, dword [ecx + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x40], xmm0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x467a8c
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 0x467af8
or edi, 0x400
mov ecx, dword [esp + 0xd0]
movzx eax, byte [esp + 0xa]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x4b], 0
jns 0x467ab9
mov eax, ebx
mov edx, dword [esp + 0x40]
jmp 0x467abf
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 0x467b1d
cmp dword [esi + 0x48], 0
jne 0x467b1d
mov cl, byte [esp + 0xa]
jmp 0x467c1f
mov eax, ebx
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor esi, esi
push ebx
lea ebx, [esp + 0x78]
push ebx
push eax
push ecx
push edi
push dword [esp + 0x20]
push esi
push esi
push edx
push esi
mov esi, dword [ebp + 0x10]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0xd0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
jne 0x467c7c
mov ecx, dword [ebp + 8]
push 0
call fcn.004df950
jmp 0x467db7
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x467b6f
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
jmp 0x467b72
test cl, cl
je 0x467b9c
lea eax, [esi + 0x40]
lea ecx, [esp + 0x30]
push eax
push 0x5dbd40
push ecx
call fcn.0056dec0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x467b50
push dword [esp + 0xd0]
call fcn.0050d60e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xd0], xmm0
jmp 0x467bfb
and eax, 0x7f
lea edi, [esp + 0x70]
push eax
push ecx
push edi
call fcn.00556710
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.005614a0
add esp, 8
mov ecx, edi
call fcn.00452fa0
jmp 0x467e24
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x467d4c
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.0056dec0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x467bda
push dword [esp + 0xd0]
call fcn.0050d60e
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]
mov cl, byte [esp + 0xa]
cmp byte [esp + 0xdb], 0
jns 0x467c12
mov eax, dword [esp + 0xd0]
jmp 0x467c19
lea eax, [esp + 0xd0]
or edi, 0x400
movzx ecx, cl
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x4b], 0
jns 0x467c35
mov esi, ebx
mov edx, dword [esp + 0x40]
jmp 0x467c3b
mov esi, ebx
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor ecx, ecx
push ebx
lea ebx, [esp + 0x78]
push ebx
push esi
push eax
push edi
push dword [esp + 0x20]
push ecx
push ecx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x467d4c
cmp byte [esp + 0xdb], 0
jns 0x467c79
push dword [esp + 0xd0]
call fcn.0050d60e
add esp, 4
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.0048b210
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x467cac
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x467d71
cmp byte [esi + 0x3d], 0
je 0x467cc5
push dword [esp + 0x30]
call fcn.00468770
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x467d21
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 0x241
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da750
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004da7d0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x5f92f0]
test ecx, ecx
je 0x467d38
push dword [ebp + 0xc]
push eax
call fcn.00558b40
lea ecx, [esp + 0x30]
call fcn.0048b3c0
mov ecx, dword [ebp + 8]
push eax
call fcn.004df950
jmp 0x467dae
mov ecx, dword [ebp + 8]
push 0
call fcn.004df950
cmp byte [esp + 0xdb], 0
jns 0x467db7
push dword [esp + 0xd0]
call fcn.0050d60e
add esp, 4
jmp 0x467db7
lea edi, [esp + 0xd0]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x30]
call fcn.0048b3c0
mov ecx, edi
push eax
call fcn.004df950
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00561cd0
mov ecx, dword [ebp + 8]
push 0
call fcn.004df950
mov ecx, edi
call fcn.004df9c0
lea ecx, [esp + 0x30]
call fcn.0048b320
cmp byte [esp + 0x4b], 0
jns 0x467dca
push dword [esp + 0x40]
call fcn.0050d60e
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0048b100
lea ecx, [esp + 0xc0]
call fcn.0048aa00
test byte [esp + 0xb], 0x19
mov ecx, dword [esp + 0x1c]
je 0x467e24
cmp byte [ecx], 0
je 0x467e24
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x80]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004e1e80
add esp, 0x10
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.0050dc12
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x40]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00451430
jmp 0x467a45
lea esi, [esp + 0x70]
push esi
call fcn.004e0380
add esp, 4
call fcn.004dfb40
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], 0x5f4c18
mov dword [esp], 0x58
call fcn.004e1330
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], str.LaunchProcess
mov dword [esp + 0x1c], 0x5f4c18
jmp 0x4677c7
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.0053fff0
int3