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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov ebx, edx
push 0
push eax
mov edi, ecx
call fcn.004166e0
push 0x2e
push edi
call fcn.00415d30
mov esi, eax
add esp, 0x14
test esi, esi
je 0x408078
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004166e0
push 0x20
push esi
call fcn.00415d30
add esp, 0x14
test eax, eax
je 0x407e90
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407e60
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x407ead
cmp byte [eax + esi], 0x20
je 0x407e7d
dec eax
test eax, eax
jg 0x407e70
jmp 0x407ead
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0041cda0
add esp, 0xc
jmp 0x407ead
lea ecx, [ebp - 0x218]
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x407ea0
push ecx
push 0x104
push ecx
lea eax, [ebp - 0x110]
mov ecx, SysReAllocString
push eax
push 1
push 0
lea edx, [ebp - 0x218]
call fcn.004131c0
add esp, 0x18
test eax, eax
je 0x408078
push 0x1f4
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.004166e0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x518]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004166e0
push 0x104
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.004166e0
add esp, 0x2c
lea eax, [ebp - 0x320]
lea edx, [ebp - 0x518]
push 0x104
push ecx
push eax
push 2
push 0
mov ecx, SysReAllocString
call fcn.004131c0
add esp, 0x18
test eax, eax
je 0x408078
push 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x110]
push 0x440278
push eax
call fcn.00415a40
add esp, 8
test eax, eax
jne 0x407fc4
lea eax, [ebp - 0x110]
push 0x44027c
push eax
call fcn.00415a40
add esp, 8
test eax, eax
jne 0x407fc4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push 0x43f8e8
push eax
call esi
push edi
lea eax, [ebp - 0x110]
push eax
call esi
jmp 0x407fcc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x560], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0x55c], xmm0
movlpd qword [ebp - 0x554], xmm0
movlpd qword [ebp - 0x54c], xmm0
movlpd qword [ebp - 0x544], xmm0
movlpd qword [ebp - 0x53c], xmm0
movlpd qword [ebp - 0x534], xmm0
movlpd qword [ebp - 0x52c], xmm0
movlpd qword [ebp - 0x524], xmm0
test ebx, ebx
je 0x408029
mov dword [ebp - 0x558], str.WinSta0Default
jmp 0x40803c
xor eax, eax
mov dword [ebp - 0x534], 1
mov word [ebp - 0x530], ax
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x560]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004137fd
mov esp, ebp
pop ebp
ret