Function at 0x467690
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 0x467a27
mov al, byte [0x5f4c18]
xor ebx, ebx
mov byte [esp + 0xb], al
test al, 0x19
jne 0x467d76
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0x5fa078
push esi
call fcn.0048a760
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.0048af50
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3f], 0
je 0x467767
call fcn.004dfd60
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 0x46778e
lea ecx, [esp + 0x70]
push eax
call fcn.0048afb0
mov edi, 0x80000
test al, al
jne 0x467790
jmp 0x467921
xor edi, edi
cmp byte [esi + 0x3f], 0
je 0x4677c4
call fcn.004dfd60
cmp eax, 0x10
jl 0x4677c4
lea eax, [esp + 0x110]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x70]
push 0x10
push eax
push 0x20007
call fcn.0048b060
test al, al
je 0x467921
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 0x467848
cmp edi, ebx
js 0x467921
xor esi, esi
inc esi
push esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4677fb
add ebx, 4
cmp ebx, edi
jne 0x4677e4
jmp 0x46781d
push 0x1c0
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x74]
push eax
call fcn.0056dd80
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.0056ddb0
jmp 0x4677f2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x467de7
lea ecx, [esp + 0x70]
push edx
push eax
push 0x20002
call fcn.0048b060
mov cl, 1
test al, al
je 0x467921
cmp byte [esi + 0x12], 0
je 0x467856
or byte [esp + 0xa0], 0x80
mov byte [esp + 0xa], cl
cmp byte [esi + 0x28], 0
mov ebx, dword [esp + 0xc]
je 0x46786c
mov dword [esp + 0x7c], 0x5d56c6
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 0x4678a5
test esi, esi
jne 0x4678a5
test edi, edi
je 0x4678c9
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 0x4678de
or eax, 0x80
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x2c], 0
je 0x4678f5
call fcn.004dfd60
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 0x467930
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
jmp 0x467936
mov ecx, dword [ebp + 8]
push 0
call fcn.004df870
jmp 0x467cea
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 0x467d5d
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 0x4679ac
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 0x467a18
or edi, 0x400
mov ecx, dword [esp + 0xd0]
movzx eax, byte [esp + 0xa]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x4b], 0
jns 0x4679d9
mov eax, ebx
mov edx, dword [esp + 0x40]
jmp 0x4679df
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 0x467a3d
cmp dword [esi + 0x48], 0
jne 0x467a3d
mov cl, byte [esp + 0xa]
jmp 0x467b3f
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 0x467b9c
mov ecx, dword [ebp + 8]
push 0
call fcn.004df870
jmp 0x467cd7
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x467a8f
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
jmp 0x467a92
test cl, cl
je 0x467abc
lea eax, [esi + 0x40]
lea ecx, [esp + 0x30]
push eax
push 0x5dbcc0
push ecx
call fcn.0056dde0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x467a70
push dword [esp + 0xd0]
call fcn.0050d52e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xd0], xmm0
jmp 0x467b1b
and eax, 0x7f
lea edi, [esp + 0x70]
push eax
push ecx
push edi
call fcn.00556630
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.005613c0
add esp, 8
mov ecx, edi
call fcn.00452ec0
jmp 0x467d44
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x467c6c
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.0056dde0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x467afa
push dword [esp + 0xd0]
call fcn.0050d52e
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 0x467b32
mov eax, dword [esp + 0xd0]
jmp 0x467b39
lea eax, [esp + 0xd0]
or edi, 0x400
movzx ecx, cl
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x4b], 0
jns 0x467b55
mov esi, ebx
mov edx, dword [esp + 0x40]
jmp 0x467b5b
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 0x467c6c
cmp byte [esp + 0xdb], 0
jns 0x467b99
push dword [esp + 0xd0]
call fcn.0050d52e
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.0048b090
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x467bcc
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x467c91
cmp byte [esi + 0x3d], 0
je 0x467be5
push dword [esp + 0x30]
call fcn.00468690
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x467c41
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da670
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004da6f0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x5f92e0]
test ecx, ecx
je 0x467c58
push dword [ebp + 0xc]
push eax
call fcn.00558a60
lea ecx, [esp + 0x30]
call fcn.0048b240
mov ecx, dword [ebp + 8]
push eax
call fcn.004df870
jmp 0x467cce
mov ecx, dword [ebp + 8]
push 0
call fcn.004df870
cmp byte [esp + 0xdb], 0
jns 0x467cd7
push dword [esp + 0xd0]
call fcn.0050d52e
add esp, 4
jmp 0x467cd7
lea edi, [esp + 0xd0]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x30]
call fcn.0048b240
mov ecx, edi
push eax
call fcn.004df870
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00561bf0
mov ecx, dword [ebp + 8]
push 0
call fcn.004df870
mov ecx, edi
call fcn.004df8e0
lea ecx, [esp + 0x30]
call fcn.0048b1a0
cmp byte [esp + 0x4b], 0
jns 0x467cea
push dword [esp + 0x40]
call fcn.0050d52e
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0048af80
lea ecx, [esp + 0xc0]
call fcn.0048a880
test byte [esp + 0xb], 0x19
mov ecx, dword [esp + 0x1c]
je 0x467d44
cmp byte [ecx], 0
je 0x467d44
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.004e1da0
add esp, 0x10
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.0050db32
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.00451350
jmp 0x467965
lea esi, [esp + 0x70]
push esi
call fcn.004e02a0
add esp, 4
call fcn.004dfa60
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.004e1250
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 0x4676e7
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.0053ff10
int3