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

Disassembly:
sub esp, 0x4f8
mov eax, dword [0x6b66bc]
xor eax, esp
mov dword [esp + 0x4f4], eax
mov eax, dword [esp + 0x504]
mov ecx, 0x20
push ebx
mov ebx, dword [esp + 0x500]
push ebp
mov ebp, dword [esp + 0x508]
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], ebx
test eax, eax
jns 0x4cb7c0
mov ecx, 0x40
mov edx, 0x4000
cmp eax, 0xffffffff
jmp 0x4cb7cf
jle 0x4cb7d2
mov ecx, 0x80
mov edx, 0x8000
cmp eax, 1
cmove ecx, edx
mov eax, ecx
or eax, 8
cmp byte [ebp + 8], 0
cmove eax, ecx
mov esi, eax
or esi, 0x1000000
cmp byte [ebp + 0xb], 0
cmove esi, eax
xor edx, edx
xor edi, edi
cmp byte [ebp + 0xa], dl
jne 0x4cb7fe
cmp byte [ebp + 9], dl
je 0x4cb803
lea edx, [edi + 7]
mov edi, 1
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
test ecx, ecx
jne 0x4cb811
test eax, eax
je 0x4cb817
or edi, 0x100
push dword [ebp + 4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x48]
push dword [ebp]
mov dword [esp + 0x84], edi
mov word [esp + 0x88], dx
xor edx, edx
push str.__s___s
shr edi, 8
push eax
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x80000000
mov dword [esp + 0x74], 0x80000000
mov dword [esp + 0x78], 0x80000000
mov dword [esp + 0x7c], 0x80000000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov word [esp + 0x92], dx
mov dword [esp + 0x94], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x48], edi
call fcn.004116b0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
je 0x4cbaa3
or esi, 0x400
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4cba70
cmp word [eax], 0
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x4cb96e
push esi
call ebx
mov edi, dword [esp + 0x14]
mov ebx, eax
lea eax, [edi + 1]
add eax, ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jle 0x4cb943
push edi
lea ecx, [esp + 0x14]
call fcn.0040cde0
lea eax, [ebx*2 + 2]
push eax
mov eax, dword [esp + 0x14]
push esi
lea eax, [eax + edi*2]
push eax
call fcn.005f7171
lea esi, [esi + ebx*2]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 2
cmp word [esi], 0
jne 0x4cb921
mov esi, dword [ebp + 0x10]
cmp word [esi], 0
je 0x4cb9e6
cmp byte [0x700914], 6
jb 0x4cb999
push esi
push str.Added_specific_environment_variable:__s
push 6
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x18
push esi
call ebx
mov edi, dword [esp + 0x14]
mov ebx, eax
lea eax, [edi + 1]
add eax, ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jle 0x4cb9bb
push edi
lea ecx, [esp + 0x14]
call fcn.0040cde0
lea eax, [ebx*2 + 2]
push eax
mov eax, dword [esp + 0x14]
push esi
lea eax, [eax + edi*2]
push eax
call fcn.005f7171
lea esi, [esi + ebx*2]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 2
cmp word [esi], 0
jne 0x4cb977
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x4cba30
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [ecx + eax*2]
cmp edx, eax
jae 0x4cba30
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00609070
add esp, 4
nop
int3
mov esi, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jle 0x4cba4f
push esi
lea ecx, [esp + 0x14]
call fcn.0040cde0
mov ecx, dword [esp + 0x10]
mov ax, word [esp + 0x1c]
push dword [esp + 0x2c]
mov word [ecx + esi*2], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
jmp 0x4cba96
cmp byte [0x700914], 3
jb 0x4cba96
call dword [esp + 0x20]
push eax
push str.GetEnvironmentStrings_failed:_0x_08x
push 3
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x18
cmp dword [esp + 0x14], 0
je 0x4cbaa3
mov eax, dword [esp + 0x10]
jmp 0x4cbaa5
xor eax, eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x54]
push ecx
push dword [ebp + 0x14]
push eax
push esi
push edi
push 0
push 0
push dword [esp + 0x64]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4cbc5a
mov edi, dword [esp + 0x20]
call edi
mov esi, eax
xor ecx, ecx
mov word [esp + 0x104], cx
test esi, esi
jne 0x4cbae8
call edi
push 0
push 0x200
lea ecx, [esp + 0x10c]
push ecx
push 0x400
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [esp + 0x104]
push 0xd
push eax
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x4cbb25
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x104]
push 0xa
push eax
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x4cbb40
xor ecx, ecx
mov word [eax], cx
cmp byte [0x700914], 3
jb 0x4cbb6a
push esi
lea eax, [esp + 0x108]
push eax
push str.CreateProc_failed:__s__0x_08x_
push 3
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x1c
cmp esi, 8
je 0x4cbb78
cmp esi, 0xe
jne 0x4cbc03
lea eax, [esp + 0xa4]
push eax
call fcn.004c58c0
add esp, 4
cmp byte [0x700914], 3
jb 0x4cbc2a
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
call fcn.005f4cb0
mov edx, dword [esp + 0xe4]
sub esp, 8
mov ecx, dword [esp + 0xe8]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x6200e0]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005f4cb0
cvtsd2ss xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x6200e0]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str.Mem_used:__.2f_MB__OS_Free__.2f_MB
push 3
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x24
cmp byte [0x700914], 3
jb 0x4cbc2a
push dword [ebp + 4]
push dword [ebp]
push str.URL:__s__s
push 3
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x1c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4cbc38
mov dword [eax], 0
mov eax, dword [esp + 0x10]
mov dword [ebx], 0
test eax, eax
je 0x4cbc4f
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4cbca3
push ecx
jmp 0x4cbc9b
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4cbc6b
mov eax, dword [esp + 0x9c]
mov dword [ecx], eax
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x94]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cbc92
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4cbca3
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0x504]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f4480
add esp, 0x4f8
ret