Function at 0x4cf7d0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0xc8], eax
xor eax, eax
dec eax
lea edi, [esp + 0xa4]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea esi, [esp + 0x50]
push 0xd8
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.0046e3e0
add esp, 0x10
mov ecx, edi
mov edi, ebx
push 0x5259dc
push esi
call fcn.00450b50
pxor xmm0, xmm0
movdqa xmmword [esp + 0xb0], 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 + 0x50]
call fcn.00450d70
xor esi, esi
cmp byte [ebx + 0x4a], 0
mov ecx, 0
je 0x4cf879
call fcn.00445d80
xor ecx, ecx
cmp eax, 0xf
setg cl
mov edx, dword [edi + 0x24]
xor eax, eax
cmp edx, dword [edi + 0x28]
setne al
add eax, ecx
je 0x4cf89f
lea ecx, [esp + 0x50]
push eax
call fcn.00450dd0
mov esi, 0x80000
test al, al
je 0x4cf9ef
cmp byte [edi + 0x4a], 0
je 0x4cf8d3
call fcn.00445d80
cmp eax, 0x10
jl 0x4cf8d3
lea eax, [esp + 0xb0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x50]
push 0x10
push eax
push 0x20007
call fcn.00450e80
test al, al
je 0x4cf9ef
mov dword [esp + 0xc], esi
cmp dword [edi + 0x20], 1
mov esi, dword [edi + 0x24]
sete dl
mov ebx, dword [edi + 0x28]
cmp esi, ebx
je 0x4cf931
cmp ebx, esi
js 0x4cf9ef
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4cfd60
add esi, 4
cmp ebx, esi
jne 0x4cf8f3
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
sub edx, eax
lea ecx, [esp + 0x50]
push edx
push eax
push 0x20002
call fcn.00450e80
mov dl, 1
test al, al
je 0x4cf9ef
cmp byte [edi + 0x1d], 0
je 0x4cf93f
or byte [esp + 0x80], 0x80
cmp byte [edi + 0x34], 0
mov esi, dword [esp + 0xc]
je 0x4cf951
mov dword [esp + 0x5c], 0x505f0e
mov eax, dword [esp + 0x80]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x80], ecx
movzx ecx, byte [edi + 0x1c]
xor ecx, 1
mov word [esp + 0x84], cx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
mov byte [esp + 0xb], dl
je 0x4cfa9f
mov edx, dword [edi + 0x40]
mov ebx, dword [ebp + 8]
or eax, 0x101
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov eax, dword [edi + 0x44]
mov dword [esp + 0x94], eax
cmp dword [edi + 0x38], 0
je 0x4cf9c3
call fcn.00445d80
lea ecx, [esi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, esi
or esi, 0x1000000
cmp byte [edi + 0x48], 0
cmove esi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movzx eax, byte [edi + 0x1b]
test al, al
jns 0x4cfa28
mov eax, dword [edi + 0x14]
mov edi, dword [edi + 0x10]
jmp 0x4cfa2b
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00470560
lea ecx, [esp + 0x50]
call fcn.00450da0
lea ecx, [esp + 0xa4]
call fcn.00450c50
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
add edi, 0x10
test eax, eax
cmove edi, eax
xor eax, eax
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp byte [ecx + 0xb], 0
js 0x4cfabe
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x30], xmm0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x4cfad0
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4cfc24
mov dword [esp + 0xc], edi
or esi, 0x400
mov edi, dword [esp + 0x10]
movzx ecx, byte [esp + 0xb]
cmp byte [esp + 0x3b], 0
jns 0x4cfb3d
mov edx, dword [esp + 0x30]
jmp 0x4cfb41
mov edx, dword [edi + 0x40]
test edx, edx
mov ebx, dword [ebp + 8]
jne 0x4cf988
xor edx, edx
cmp dword [edi + 0x44], 0
jne 0x4cf988
jmp 0x4cf9ac
mov eax, ecx
lea ecx, [esp + 0x30]
push dword [eax + 4]
push dword [eax]
call fcn.0046cbe0
jmp 0x4cfa56
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
cmp byte [ecx + 0x58], 0
je 0x4cfc91
lea eax, [ecx + 0x4c]
lea ecx, [esp + 0x24]
push eax
push 0x50a574
push ecx
call fcn.004df1e0
add esp, 0xc
cmp byte [esp + 0x1b], 0
jns 0x4cfb11
push dword [esp + 0x10]
call fcn.00489982
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
movq xmm0, qword [esp + 0x24]
movq qword [esp + 0x10], xmm0
mov cl, byte [esp + 0xb]
cmp byte [esp + 0x1b], 0
jns 0x4cfc2f
mov eax, dword [esp + 0x10]
jmp 0x4cfc33
lea edx, [esp + 0x30]
lea ebx, [esp + 0x40]
xor eax, eax
push ebx
lea ebx, [esp + 0x58]
push ebx
push dword [esp + 0x14]
push edi
push esi
push ecx
push eax
push eax
push edx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov ebx, dword [ebp + 8]
test edi, edi
je 0x4cfc24
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x40]
push eax
call fcn.00450eb0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4cfbad
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4cfd19
cmp byte [esi + 0x49], 0
je 0x4cfbc6
push dword [esp + 0x10]
call fcn.004449a0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x4cfbd7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x525aa4]
test ecx, ecx
je 0x4cfbee
push dword [ebp + 0xc]
push eax
call fcn.004dafb0
lea ecx, [esp + 0x10]
call fcn.00451060
mov ecx, ebx
push eax
call fcn.00470560
lea ecx, [esp + 0x10]
call fcn.00450fc0
cmp byte [esp + 0x3b], 0
jns 0x4cf9fb
push dword [esp + 0x30]
call fcn.00489982
add esp, 4
jmp 0x4cf9fb
mov ecx, ebx
push 0
call fcn.00470560
jmp 0x4cfc08
lea eax, [esp + 0x10]
or esi, 0x400
movzx edx, cl
cmp byte [esp + 0x3b], 0
jns 0x4cfc49
mov ecx, dword [esp + 0x30]
jmp 0x4cfc4d
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], ecx
lea ebx, [esp + 0x40]
xor ecx, ecx
push ebx
lea ebx, [esp + 0x58]
push ebx
push edi
push eax
push esi
push edx
push ecx
push ecx
push dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4cfcf1
cmp byte [esp + 0x1b], 0
mov ebx, dword [ebp + 8]
jns 0x4cfb7a
push dword [esp + 0x10]
call fcn.00489982
add esp, 4
jmp 0x4cfb7a
cmp dword [ecx + 0x54], 0
je 0x4cfd57
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4cfcf4
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea ecx, [esp + 0x24]
push eax
push edx
push ecx
mov ebx, edx
call fcn.004df1e0
add esp, 0xc
cmp byte [esp + 0x1b], 0
jns 0x4cfcd1
push dword [esp + 0x10]
call fcn.00489982
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
movq xmm0, qword [esp + 0x24]
movq qword [esp + 0x10], xmm0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4cfb25
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00470560
cmp byte [esp + 0x1b], 0
jns 0x4cfc08
push dword [esp + 0x10]
call fcn.00489982
add esp, 4
jmp 0x4cfc08
lea edi, [esp + 0x24]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x10]
call fcn.00451060
mov ecx, edi
push eax
call fcn.00470560
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.004cfdd0
mov ecx, ebx
push 0
call fcn.00470560
mov ecx, edi
call fcn.004705d0
jmp 0x4cfbff
mov cl, byte [esp + 0xb]
jmp 0x4cfc39
push 0x113
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0x48]
push eax
call fcn.004cb4b0
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.004cb400
lea ecx, [esp + 0x40]
call fcn.004cb410
jmp 0x4cf905