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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [esp + 0x138], eax
cmp byte [ecx + 0x11], 0
je 0x472b76
movzx ebx, byte [ecx]
movzx ecx, byte [ecx + 0x10]
movzx eax, byte [edx + 0xb]
test al, al
mov dword [esp + 0x18], ecx
jns 0x472b34
mov eax, dword [edx + 4]
mov edx, dword [edx]
lea esi, [esp + 0x80]
push eax
push edx
push esi
call fcn.0048b820
add esp, 0xc
mov ecx, edi
mov edx, esi
push ebx
push dword [esp + 0x1c]
call fcn.00472840
add esp, 8
mov ecx, esi
call fcn.0048aac0
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.00508d63
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x576b2c]
xor ebx, ebx
mov byte [esp + 0x18], al
test al, 0x19
jne 0x47333a
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
lea esi, [esp + 0x80]
push 0x11c
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004877c0
add esp, 0x10
lea ecx, [esp + 0xd0]
push 0x57adf8
push esi
call fcn.00478ed0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x120], xmm0
mov dword [esp + 0xcc], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
lea ecx, [esp + 0x80]
call fcn.004c4480
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x42], 0
je 0x472c54
call fcn.0046fa70
xor ebx, ebx
cmp eax, 0x10
setge bl
movzx eax, byte [esi + 0x43]
add ebx, eax
mov edx, dword [esi + 0x18]
xor ecx, ecx
cmp edx, dword [esi + 0x1c]
setne cl
add ecx, ebx
movzx edx, byte [esi + 0x44]
add edx, ecx
je 0x472c8f
lea ecx, [esp + 0x80]
push edx
call fcn.004c44e0
test al, al
je 0x472e19
movzx eax, byte [esi + 0x43]
mov ebx, 0x80000
jmp 0x472c91
xor ebx, ebx
mov dword [esp + 0x7c], 2
test al, al
je 0x472cbd
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x80]
push 4
push eax
push 0x20012
call fcn.004c4590
test al, al
je 0x472e19
cmp byte [esi + 0x42], 0
je 0x472cf8
call fcn.0046fa70
cmp eax, 0x10
jl 0x472cf8
or byte [esp + 0x12b], 0x20
lea eax, [esp + 0x120]
lea ecx, [esp + 0x80]
push 0x10
push eax
push 0x20007
call fcn.004c4590
test al, al
je 0x472e19
cmp byte [esi + 0x44], 0
je 0x472d2c
mov dword [esp + 0xcc], 1
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x80]
push 4
push eax
push 0x2001c
call fcn.004c4590
test al, al
je 0x472e19
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x14], 1
mov ebx, dword [esi + 0x18]
sete cl
mov edi, dword [esi + 0x1c]
cmp ebx, edi
je 0x472db4
cmp edi, ebx
js 0x472e16
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop
push 1
push 1
push dword [ebx]
call esi
test eax, eax
je 0x472d65
add ebx, 4
cmp ebx, edi
jne 0x472d50
jmp 0x472d8a
push 0x177
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x80]
push eax
call fcn.0048dae0
add esp, 0xc
lea ecx, [esp + 0x78]
call fcn.0048db50
jmp 0x472d5c
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x473393
lea ecx, [esp + 0x80]
push edx
push eax
push 0x20002
call fcn.004c4590
mov cl, 1
test al, al
je 0x472e16
cmp byte [esi + 0x12], 0
je 0x472dc2
or byte [esp + 0xb0], 0x80
mov byte [esp + 0xf], cl
cmp byte [esi + 0x2c], 0
mov ebx, dword [esp + 0x10]
je 0x472ddb
mov dword [esp + 0x8c], 0x558fdc
mov eax, dword [esp + 0xb0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xb0], ecx
mov edx, dword [esi + 0x24]
mov cx, 0xa
mov edi, dword [ebp + 8]
cmp edx, 5
ja case.0x472e01.1
jmp dword [edx*4 + 0x55f0e4]
xor ecx, ecx
cmp byte [esi + 0x10], 0
sete cl
jmp case.0x472e01.1
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
call fcn.00472470
lea ecx, [esp + 0x80]
call fcn.004c44b0
lea ecx, [esp + 0xd0]
call fcn.00478ff0
test byte [esp + 0x18], 0x19
mov ecx, dword [esp + 0x2c]
je 0x472b5e
cmp byte [ecx], 0
je 0x472b5e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x90]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0046c660
add esp, 0x10
jmp 0x472b5e
mov cx, 1
jmp case.0x472e01.1
mov cx, 2
jmp case.0x472e01.1
mov cx, 7
jmp case.0x472e01.1
xor ecx, ecx
mov word [esp + 0xb4], cx
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
test ecx, ecx
jne 0x472ec3
test edx, edx
jne 0x472ec3
test esi, esi
je 0x472ee4
or eax, 0x101
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], esi
mov eax, ebx
add ebx, 0x1000000
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x40], 0
cmove ebx, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movzx eax, byte [esi + 0xf]
test al, al
js 0x472f1b
lea ecx, [esi + 4]
xor edx, edx
test al, al
cmovne edx, ecx
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
jmp 0x472f2c
mov ecx, dword [esi + 8]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x472f28
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ecx
push eax
call fcn.0044ce68
mov dword [esp + 0x10], 0
cmp byte [esi + 0x45], 0
je 0x472f78
call fcn.004c4660
test eax, eax
je 0x472f72
or ebx, 4
mov dword [esp + 0x10], eax
jmp 0x472f78
or ebx, 0x8000
mov eax, dword [esi + 0x28]
test eax, eax
je 0x472ff2
mov dword [esp + 0xe0], 0
lea ecx, [esp + 0xe0]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4732b0
or ebx, 0x400
cmp byte [esi + 0x46], 0
mov eax, dword [esp + 0xe0]
je 0x473065
cmp byte [esp + 0x5f], 0
mov edx, dword [esp + 0x14]
jns 0x472fcc
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
push ebx
push dword [esp + 0x30]
push 0
push 0
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x473190
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe8], 0
cmp byte [esi + 0x54], 0
je 0x4730e5
lea eax, [esi + 0x48]
lea ecx, [esp + 0x40]
push eax
push 0x55f0c0
push ecx
call fcn.004c46c0
add esp, 0xc
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0xe0], xmm0
cmp byte [esp + 0xeb], 0
movzx ecx, byte [esp + 0xf]
jns 0x47307e
mov eax, dword [esp + 0xe0]
jmp 0x473085
movzx ecx, byte [esp + 0xf]
cmp byte [esp + 0x5f], 0
jns 0x473165
mov edx, dword [esp + 0x54]
jmp 0x473169
lea eax, [esp + 0xe0]
or ebx, 0x400
movzx ecx, cl
cmp byte [esp + 0x5f], 0
jns 0x47309b
mov edx, dword [esp + 0x54]
jmp 0x47309f
lea edx, [esp + 0x54]
lea esi, [esp + 0x60]
push esi
lea esi, [esp + 0x88]
push esi
push dword [esp + 0x1c]
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 0x47313a
cmp byte [esp + 0xeb], 0
jns 0x4730dd
push dword [esp + 0xe0]
call fcn.00507dc6
add esp, 4
mov esi, dword [ebp + 0x10]
jmp 0x4731a9
cmp dword [esi + 0x50], 0
je 0x47332e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4732b0
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x48
lea ecx, [esp + 0x40]
push eax
push esi
push ecx
call fcn.004c46c0
add esp, 0xc
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0xe0], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x47304d
mov ecx, edi
push 0
call fcn.00472470
cmp byte [esp + 0xeb], 0
jns 0x473312
push dword [esp + 0xe0]
call fcn.00507dc6
add esp, 4
jmp 0x473312
lea edx, [esp + 0x54]
lea esi, [esp + 0x60]
push esi
lea esi, [esp + 0x88]
push esi
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0xe0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
mov esi, dword [ebp + 0x10]
je 0x4732b0
mov edi, dword [esp + 0x10]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x40]
push eax
call fcn.004c4b10
test edi, edi
je 0x4731ed
cmp byte [esi + 0x45], 0
je 0x4731ed
mov esi, dword [esp + 0x48]
mov ecx, edi
call dword [section..00cfg]
push 4
push esi
mov esi, dword [ebp + 0x10]
call edi
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x473207
push dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4732bb
cmp byte [esi + 0x41], 0
je 0x473220
push dword [esp + 0x40]
call fcn.00472720
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x47329a
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0xe0], xmm0
mov dword [esp + 0x114], 0xffffffff
mov dword [esp + 0x110], 0xffffffff
lea esi, [esp + 0x30]
push 0x216
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004877c0
add esp, 0x10
lea edi, [esp + 0xe0]
mov ecx, edi
push 0
push esi
call fcn.00479320
push 0xffffffffffffffff
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004793a0
lea ecx, [esp + 0x40]
call fcn.004c4d00
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00472470
jmp 0x473309
mov ecx, edi
push 0
call fcn.00472470
jmp 0x473312
mov dword [esp + 0xe4], 0xffffffff
mov dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004c4d00
lea edi, [esp + 0xe0]
mov ecx, edi
push eax
call fcn.00472470
mov ecx, edi
push 1
push 1
call fcn.00472650
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.00472470
mov ecx, edi
mov edi, esi
call fcn.0042e250
lea ecx, [esp + 0x40]
call fcn.004c4c60
cmp byte [esp + 0x5f], 0
jns 0x472e22
push dword [esp + 0x54]
call fcn.00507dc6
add esp, 4
jmp 0x472e22
xor eax, eax
movzx ecx, byte [esp + 0xf]
jmp 0x47308b
sub esp, 0x24
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x576b2c
mov dword [esp], 0x58
mov dword [esp + 0x4c], str.LaunchProcess
mov dword [esp + 0x50], 0x576b2c
call fcn.0044c014
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jmp 0x472bab
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x5c0
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.0043403c
int3