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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x10024008]
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.10008df0
push 0x2e
push edi
call fcn.10008920
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10003338
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10008df0
push 0x20
push esi
call fcn.10008920
add esp, 0x14
test eax, eax
je 0x10003150
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003120
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x1000316d
cmp byte [eax + esi], 0x20
je 0x1000313d
dec eax
test eax, eax
jg 0x10003130
jmp 0x1000316d
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1000c6b0
add esp, 0xc
jmp 0x1000316d
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 0x10003160
push ecx
push 0x104
push ecx
lea eax, [ebp - 0x110]
mov ecx, closesocket
push eax
push 1
push 0
lea edx, [ebp - 0x218]
call fcn.10005af0
add esp, 0x18
test eax, eax
je 0x10003338
push 0x1f4
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.10008df0
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.10008df0
push 0x104
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.10008df0
add esp, 0x2c
lea eax, [ebp - 0x320]
lea edx, [ebp - 0x518]
push 0x104
push ecx
push eax
push 2
push 0
mov ecx, closesocket
call fcn.10005af0
add esp, 0x18
test eax, eax
je 0x10003338
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 0x100200c8
push eax
call fcn.100086b0
add esp, 8
test eax, eax
jne 0x10003284
lea eax, [ebp - 0x110]
push 0x100200ac
push eax
call fcn.100086b0
add esp, 8
test eax, eax
jne 0x10003284
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push 0x100200cc
push eax
call esi
push edi
lea eax, [ebp - 0x110]
push eax
call esi
jmp 0x1000328c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x570], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0x56c], xmm0
movlpd qword [ebp - 0x564], 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
test ebx, ebx
je 0x100032e9
mov dword [ebp - 0x568], str.WinSta0Default
jmp 0x100032fc
xor eax, eax
mov dword [ebp - 0x544], 1
mov word [ebp - 0x540], ax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x570]
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.100073c8
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.100073c8
mov esp, ebp
pop ebp
ret