Function at 0x4d1350
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 [0x521014]
xor eax, ebp
mov dword [esp + 0xc8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xa0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x50]
push 0xdd
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.0046ea80
add esp, 0x10
mov ecx, edi
push 0x527ae4
push esi
call fcn.004514e0
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
mov esi, ebx
lea ecx, [esp + 0x50]
call fcn.00451700
xor edi, edi
cmp byte [ebx + 0x4a], 0
mov ecx, 0
je 0x4d13f6
call fcn.004465c0
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [esi + 0x24]
xor eax, eax
cmp edx, dword [esi + 0x28]
setne al
add eax, ecx
je 0x4d141c
lea ecx, [esp + 0x50]
push eax
call fcn.00451760
mov edi, 0x80000
test al, al
je 0x4d1573
cmp byte [esi + 0x4a], 0
je 0x4d1450
call fcn.004465c0
cmp eax, 0x10
jl 0x4d1450
lea eax, [esp + 0xb0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x50]
push 0x10
push eax
push 0x20007
call fcn.00451810
test al, al
je 0x4d1573
mov dword [esp + 0xc], edi
cmp dword [esi + 0x20], 1
mov edi, dword [esi + 0x24]
sete cl
mov ebx, dword [esi + 0x28]
cmp edi, ebx
je 0x4d14ae
cmp ebx, edi
js 0x4d1573
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4d18ab
add edi, 4
cmp edi, ebx
jne 0x4d1470
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
sub edx, eax
lea ecx, [esp + 0x50]
push edx
push eax
push 0x20002
call fcn.00451810
mov cl, 1
test al, al
je 0x4d1573
cmp byte [esi + 0x1d], 0
je 0x4d14bc
or byte [esp + 0x80], 0x80
mov byte [esp + 0xb], cl
cmp byte [esi + 0x34], 0
mov edi, dword [esp + 0xc]
je 0x4d14d2
mov dword [esp + 0x5c], 0x508a1e
mov eax, dword [esp + 0x80]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x80], ecx
movzx ecx, byte [esi + 0x1c]
xor ecx, 1
mov word [esp + 0x84], cx
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov esi, dword [esi + 0x44]
test ecx, ecx
jne 0x4d1509
test edx, edx
jne 0x4d1509
test esi, esi
je 0x4d152a
or eax, 0x101
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x38], 0
mov ebx, dword [ebp + 8]
je 0x4d1547
call fcn.004465c0
lea ecx, [edi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
mov edx, dword [ebp + 0xc]
mov eax, edi
or edi, 0x1000000
cmp byte [esi + 0x48], 0
cmove edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movzx eax, byte [esi + 0x1b]
test al, al
jns 0x4d15ac
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
jmp 0x4d15af
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00471130
lea ecx, [esp + 0x50]
call fcn.00451730
lea ecx, [esp + 0xa0]
call fcn.004515e0
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.0048b980
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
add esi, 0x10
test eax, eax
cmove esi, eax
xor eax, eax
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp byte [edx + 0xb], 0
js 0x4d1618
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [edx]
movq qword [esp + 0x30], xmm0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4d1628
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 0x4d189d
or edi, 0x400
mov edx, dword [esp + 0x10]
movzx ecx, byte [esp + 0xb]
cmp byte [esp + 0x3b], 0
jns 0x4d166a
mov eax, dword [esp + 0x30]
jmp 0x4d166e
lea ecx, [esp + 0x30]
push dword [edx + 4]
push dword [edx]
call fcn.0046d2b0
jmp 0x4d15da
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov cl, byte [edx + 0x58]
test cl, cl
jne 0x4d1755
cmp dword [edx + 0x54], 0
jne 0x4d1755
mov cl, byte [esp + 0xb]
movzx ecx, cl
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x3b], 0
jns 0x4d179f
mov edx, dword [esp + 0x30]
jmp 0x4d17a3
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
lea ebx, [esp + 0x40]
xor eax, eax
push ebx
lea ebx, [esp + 0x58]
push ebx
push esi
push edx
push edi
push ecx
push eax
push eax
push dword [esp + 0x2c]
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
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4d189d
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x40]
push eax
call fcn.00451840
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4d16de
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4d180b
cmp byte [esi + 0x49], 0
je 0x4d16f7
push dword [esp + 0x10]
call fcn.00445060
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x4d1708
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x527bb4]
test ecx, ecx
je 0x4d171f
push dword [ebp + 0xc]
push eax
call fcn.004dc940
lea ecx, [esp + 0x10]
call fcn.004e0ac0
mov ecx, ebx
push eax
call fcn.00471130
lea ecx, [esp + 0x10]
call fcn.00451950
cmp byte [esp + 0x3b], 0
jns 0x4d157f
push dword [esp + 0x30]
call fcn.0048b376
add esp, 4
jmp 0x4d157f
test cl, cl
je 0x4d1858
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea ebx, [esp + 0x24]
push eax
push 0x50d10c
push ebx
call fcn.004e0770
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
movq xmm0, qword [ebx]
movq qword [esp + 0x10], xmm0
cmp byte [esp + 0x1b], 0
mov cl, byte [esp + 0xb]
jns 0x4d1849
mov eax, dword [esp + 0x10]
jmp 0x4d184d
lea edx, [esp + 0x30]
lea ebx, [esp + 0x40]
xor ecx, ecx
push ebx
lea ebx, [esp + 0x58]
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 0x4d17e3
cmp byte [esp + 0x1b], 0
mov ebx, dword [ebp + 8]
jns 0x4d16ab
push dword [esp + 0x10]
call fcn.0048b376
add esp, 4
jmp 0x4d16ab
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00471130
cmp byte [esp + 0x1b], 0
jns 0x4d1739
push dword [esp + 0x10]
call fcn.0048b376
add esp, 4
jmp 0x4d1739
lea edi, [esp + 0x24]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x10]
call fcn.004e0ac0
mov ecx, edi
push eax
call fcn.00471130
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.004d1920
mov ecx, ebx
push 0
call fcn.00471130
mov ecx, edi
call fcn.004711a0
jmp 0x4d1730
lea eax, [esp + 0x10]
or edi, 0x400
jmp 0x4d164f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4d189a
mov ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea edx, [esp + 0x24]
push eax
push ebx
push edx
call fcn.004e0770
add esp, 0xc
lea ecx, [esp + 0x24]
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x10], xmm0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4d1787
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00471130
jmp 0x4d1739
push 0x118
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0x48]
push eax
call fcn.004cce30
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.004ccd80
lea ecx, [esp + 0x40]
call fcn.004ccd90
jmp 0x4d1482