Function at 0x47cf90
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 [0x59d024]
xor eax, ebp
mov dword [esp + 0x128], eax
cmp byte [edx + 0x11], 0
jne 0x47d327
mov al, byte [0x59ed60]
xor ebx, ebx
mov byte [esp + 0xb], al
test al, 0x19
jne 0x47d676
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.004b4450
add esp, 0x10
mov ecx, edi
push 0x5a3b80
push esi
call fcn.00494450
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.00494c30
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3f], 0
je 0x47d067
call fcn.004c34d0
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 0x47d08e
lea ecx, [esp + 0x70]
push eax
call fcn.00494c90
mov edi, 0x80000
test al, al
jne 0x47d090
jmp 0x47d221
xor edi, edi
cmp byte [esi + 0x3f], 0
je 0x47d0c4
call fcn.004c34d0
cmp eax, 0x10
jl 0x47d0c4
lea eax, [esp + 0x110]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x70]
push 0x10
push eax
push 0x20007
call fcn.00494d40
test al, al
je 0x47d221
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 0x47d148
cmp edi, ebx
js 0x47d221
xor esi, esi
inc esi
push esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x47d0fb
add ebx, 4
cmp ebx, edi
jne 0x47d0e4
jmp 0x47d11d
push 0x1c0
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x74]
push eax
call fcn.00549d60
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.00549d80
jmp 0x47d0f2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x47d6e7
lea ecx, [esp + 0x70]
push edx
push eax
push 0x20002
call fcn.00494d40
mov cl, 1
test al, al
je 0x47d221
cmp byte [esi + 0x12], 0
je 0x47d156
or byte [esp + 0xa0], 0x80
mov byte [esp + 0xa], cl
cmp byte [esi + 0x28], 0
mov ebx, dword [esp + 0xc]
je 0x47d16c
mov dword [esp + 0x7c], 0x585e64
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 0x47d1a5
test esi, esi
jne 0x47d1a5
test edi, edi
je 0x47d1c9
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 0x47d1de
or eax, 0x80
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x2c], 0
je 0x47d1f5
call fcn.004c34d0
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 0x47d230
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
jmp 0x47d236
mov ecx, dword [ebp + 8]
push 0
call fcn.004c2d10
jmp 0x47d5ea
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 0x47d65d
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 0x47d2ac
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 0x47d318
or edi, 0x400
mov ecx, dword [esp + 0xd0]
movzx eax, byte [esp + 0xa]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x4b], 0
jns 0x47d2d9
mov eax, ebx
mov edx, dword [esp + 0x40]
jmp 0x47d2df
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 0x47d33d
cmp dword [esi + 0x48], 0
jne 0x47d33d
mov cl, byte [esp + 0xa]
jmp 0x47d43f
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 0x47d49c
mov ecx, dword [ebp + 8]
push 0
call fcn.004c2d10
jmp 0x47d5d7
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x47d38f
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
jmp 0x47d392
test cl, cl
je 0x47d3bc
lea eax, [esi + 0x40]
lea ecx, [esp + 0x30]
push eax
push 0x58e3c0
push ecx
call fcn.00549db0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x47d370
push dword [esp + 0xd0]
call fcn.004eca8e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xd0], xmm0
jmp 0x47d41b
and eax, 0x7f
lea edi, [esp + 0x70]
push eax
push ecx
push edi
call fcn.00535f00
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0053e830
add esp, 8
mov ecx, edi
call fcn.0046aab0
jmp 0x47d644
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x47d56c
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.00549db0
add esp, 0xc
cmp byte [esp + 0xdb], 0
jns 0x47d3fa
push dword [esp + 0xd0]
call fcn.004eca8e
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 0x47d432
mov eax, dword [esp + 0xd0]
jmp 0x47d439
lea eax, [esp + 0xd0]
or edi, 0x400
movzx ecx, cl
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x4b], 0
jns 0x47d455
mov esi, ebx
mov edx, dword [esp + 0x40]
jmp 0x47d45b
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 0x47d56c
cmp byte [esp + 0xdb], 0
jns 0x47d499
push dword [esp + 0xd0]
call fcn.004eca8e
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.00494d70
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47d4cc
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x47d591
cmp byte [esi + 0x3d], 0
je 0x47d4e5
push dword [esp + 0x30]
call fcn.0047d730
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x47d541
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.004b4450
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004be2f0
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004be370
mov eax, dword [esp + 0x38]
mov ecx, dword [0x5a2dd8]
test ecx, ecx
je 0x47d558
push dword [ebp + 0xc]
push eax
call fcn.00537600
lea ecx, [esp + 0x30]
call fcn.00494f20
mov ecx, dword [ebp + 8]
push eax
call fcn.004c2d10
jmp 0x47d5ce
mov ecx, dword [ebp + 8]
push 0
call fcn.004c2d10
cmp byte [esp + 0xdb], 0
jns 0x47d5d7
push dword [esp + 0xd0]
call fcn.004eca8e
add esp, 4
jmp 0x47d5d7
lea edi, [esp + 0xd0]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x30]
call fcn.00494f20
mov ecx, edi
push eax
call fcn.004c2d10
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.0053f170
mov ecx, dword [ebp + 8]
push 0
call fcn.004c2d10
mov ecx, edi
call fcn.004c2d80
lea ecx, [esp + 0x30]
call fcn.00494e80
cmp byte [esp + 0x4b], 0
jns 0x47d5ea
push dword [esp + 0x40]
call fcn.004eca8e
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00494c60
lea ecx, [esp + 0xc0]
call fcn.00494570
test byte [esp + 0xb], 0x19
mov ecx, dword [esp + 0x1c]
je 0x47d644
cmp byte [ecx], 0
je 0x47d644
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.004c54a0
add esp, 0x10
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.004ed092
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.00468b90
jmp 0x47d265
lea esi, [esp + 0x70]
push esi
call fcn.004c39a0
add esp, 4
call fcn.004c31d0
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], 0x59ed60
mov dword [esp], 0x58
call fcn.004c4950
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], str.LaunchProcess
mov dword [esp + 0x1c], 0x59ed60
jmp 0x47cfe7
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.0051d7e0
int3