Function at 0x420a30
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, 0x2d0
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4ce008]
xor eax, ebp
mov dword [esp + 0x2c8], eax
lea esi, [esp + 0x138]
push 0x190
push 0
push esi
call fcn.00466490
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x420a71
mov eax, dword [edi]
push 0xc8
push eax
push esi
call fcn.00448830
add esp, 0xc
push esi
call fcn.00437f20
add esp, 4
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x11], 0
mov dword [esp + 0x10], edi
jne 0x420fad
mov al, byte [0x4d0d08]
xor ebx, ebx
mov byte [esp + 0xc], al
test al, 0x19
jne 0x420cb4
xor eax, eax
dec eax
mov dword [esp + 8], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xd0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x70]
push 0x100
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.0044a380
add esp, 0x10
mov ecx, edi
push 0x4e0b80
push esi
call fcn.0042acc0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x120], 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.0042bb40
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
jne 0x420c6b
mov ecx, dword [esi + 0x18]
xor eax, eax
cmp ecx, dword [esi + 0x1c]
setne al
add eax, ebx
je 0x4210ec
lea ecx, [esp + 0x70]
push eax
call fcn.0042bba0
mov ecx, 0x80000
test al, al
je 0x420ecc
mov dword [esp + 4], ecx
cmp byte [esi + 0x3e], 0
jne 0x420c7d
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x420bd3
cmp ebx, edi
js 0x420ecc
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x421156
add edi, 4
cmp edi, ebx
jne 0x420b8f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
sub edx, eax
je 0x421198
lea ecx, [esp + 0x70]
push edx
push eax
push 0x20002
call fcn.0042bc50
mov cl, 1
test al, al
je 0x420ecc
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x12], 0
jne 0x4210f3
mov byte [esp + 3], cl
cmp byte [esi + 0x28], 0
mov edi, dword [ebp + 0xc]
jne 0x421100
mov eax, dword [esp + 0xa0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xa0], ecx
xor ecx, ecx
cmp byte [esi + 0x10], 0
sete cl
mov word [esp + 0xa4], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
test ecx, ecx
jne 0x421110
test edx, edx
jne 0x421110
test esi, esi
jne 0x421110
mov eax, dword [esp + 4]
lea esi, [eax + 0x1000000]
mov ecx, dword [ebp + 0x10]
cmp byte [ecx + 0x3c], 0
cmove esi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [ecx + 0xf]
test al, al
js 0x420d25
add ecx, 4
and eax, 0x7f
jmp 0x420d2b
call fcn.0042aca0
xor ebx, ebx
cmp eax, 0x10
setge bl
jmp 0x420b3b
call fcn.0042aca0
cmp eax, 0x10
jl 0x420b73
lea eax, [esp + 0x120]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x70]
push 0x10
push eax
push 0x20007
call fcn.0042bc50
test al, al
jne 0x420b73
jmp 0x420ecc
lea esi, [esp + 0x70]
push esi
call fcn.00445b60
add esp, 4
call fcn.00446100
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], 0x4d0d08
mov dword [esp], 0x58
call fcn.00444a40
add esp, 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], str.LaunchProcess
mov dword [esp + 8], 0x4d0d08
jmp 0x420ac4
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
test eax, eax
cmove ecx, eax
mov dword [esp + 4], ecx
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp byte [edi + 0xb], 0
jns 0x420ef1
lea ecx, [esp + 0x40]
push dword [edi + 4]
push dword [edi]
call fcn.0041c160
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x4211b6
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe8], eax
mov cl, byte [edx + 0x4c]
test cl, cl
jne 0x421077
cmp dword [edx + 0x48], 0
jne 0x421077
movzx ecx, byte [esp + 3]
cmp byte [esp + 0x4b], 0
jns 0x420da7
mov edx, dword [esp + 0x40]
jmp 0x420dab
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor edi, edi
push ebx
lea ebx, [esp + 0x78]
push ebx
push dword [esp + 0xc]
push eax
push esi
push ecx
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x420f1f
cmp byte [esp + 0xeb], 0
js 0x420edd
mov ebx, dword [ebp + 8]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.0042bd10
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x420e14
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x42123c
cmp byte [esi + 0x3d], 0
jne 0x420f07
cmp byte [esi], 0
jne 0x420f4a
lea ecx, [esp + 0x30]
call fcn.0042bec0
mov ecx, ebx
push eax
call fcn.004208d0
lea ecx, [esp + 0x30]
call fcn.0042be20
cmp byte [esp + 0x4b], 0
jns 0x420e54
push dword [esp + 0x40]
call fcn.00462617
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0042bb70
lea ecx, [esp + 0xd0]
call fcn.0042adf0
test byte [esp + 0xc], 0x19
jne 0x420e88
mov ecx, dword [esp + 0x2c8]
xor ecx, ebp
call fcn.00462e56
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
cmp byte [eax], 0
je 0x420e70
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 + 0x18]
mov dword [esp], eax
call fcn.004452e0
add esp, 0x10
jmp 0x420e70
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004208d0
jmp 0x420e54
push dword [esp + 0xe0]
call fcn.00462617
add esp, 4
jmp 0x420dde
mov eax, dword [edi + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [edi]
movq qword [esp + 0x40], xmm0
jmp 0x420d5b
push dword [esp + 0x30]
call fcn.00420980
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x420e1e
mov ecx, dword [ebp + 8]
push 0
call fcn.004208d0
cmp byte [esp + 0xeb], 0
jns 0x420f42
push dword [esp + 0xe0]
call fcn.00462617
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x420e41
lea esi, [esp + 0xe0]
xor edi, edi
dec edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x20]
push 0x1b3
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push eax
call fcn.0044a380
add esp, 0x10
mov ecx, esi
push 0
lea eax, [esp + 0x24]
push eax
call fcn.0044e1c0
push edi
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.0044e240
jmp 0x420e27
movzx ebx, byte [eax]
movzx eax, byte [eax + 0x10]
mov dword [esp + 0xc], eax
movzx eax, byte [edi + 0xb]
test al, al
js 0x420fc5
and eax, 0x7f
jmp 0x420fd1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
lea esi, [esp + 0xc8]
mov ecx, esi
push eax
push dword [esp + 0x14]
call fcn.004383e0
lea edi, [esp + 0x70]
push dword [esi + 4]
push dword [esi]
push edi
call fcn.004a6120
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
mov ebx, ecx
push dword [esp + 0x10]
call fcn.004a4460
add esp, 8
mov ecx, edi
call fcn.004250b0
jmp 0x420e70
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x420f1f
mov edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push edi
push ecx
call fcn.004ab7b0
add esp, 0xc
cmp byte [esp + 0xeb], 0
jns 0x421054
push dword [esp + 0xe0]
call fcn.00462617
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xe0], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4210c7
test cl, cl
je 0x421016
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x30]
push eax
push 0x4c1906
push ecx
call fcn.004ab7b0
add esp, 0xc
cmp byte [esp + 0xeb], 0
jns 0x4210ad
push dword [esp + 0xe0]
call fcn.00462617
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 0xe0], xmm0
cmp byte [esp + 0xeb], 0
js 0x4210da
lea eax, [esp + 0xe0]
jmp 0x4210e1
mov eax, dword [esp + 0xe0]
or esi, 0x400
jmp 0x420d95
xor ecx, ecx
jmp 0x420b65
or byte [esp + 0xa0], 0x80
jmp 0x420be0
mov dword [esp + 0x7c], 0x4bde4a
jmp 0x420bf1
int3
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0x18]
cmp edi, dword [ebx + 0x1c]
jne 0x421127
test ecx, ecx
je 0x42110d
test edx, edx
je 0x421150
test esi, esi
je 0x421153
or eax, 0x101
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
mov edi, dword [ebp + 0xc]
jmp 0x420c36
int3
int3
push 0x13b
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
lea eax, [esp + 0xec]
push eax
call fcn.0044a380
add esp, 0x10
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004a6620
add esp, 8
lea ecx, [esp + 0x6c]
call fcn.004a6640
jmp 0x420ba1
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x60b
push str....._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.0048cb70
mov edi, esi
xor ecx, ecx
lea edx, [esp + 0xe0]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x42122b
or edi, 0x400
mov ecx, dword [esp + 0xe0]
movzx esi, byte [esp + 3]
cmp byte [esp + 0x4b], 0
jns 0x4211ee
mov edx, dword [esp + 0x40]
jmp 0x4211f2
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor eax, eax
push ebx
lea ebx, [esp + 0x78]
push ebx
push dword [esp + 0xc]
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 ebx, eax
push dword [esp + 0xe0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
jne 0x420dde
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004208d0
jmp 0x420e41
lea esi, [esp + 0xe0]
xor eax, eax
dec eax
mov dword [esi + 4], eax
mov dword [esi], eax
lea ecx, [esp + 0x30]
call fcn.0042bec0
mov ecx, esi
push eax
call fcn.004208d0
xor eax, eax
inc eax
mov ecx, esi
push eax
push eax
call fcn.004a43a0
mov ecx, ebx
push 0
call fcn.004208d0
mov ecx, esi
call fcn.00420940
jmp 0x420e38