Function at 0x10082d5d
Capabilities:
Create process on windows
Enumerate gui resources
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa8
mov dword [ebp - 8], 0
mov dword [ebp - 0xaa4], 0
mov dword [ebp - 0xaa0], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x980], 1
call fcn.100816a9
cmp dword [ebp + 0x10], 0
je 0x10082e95
push 0x101488fc
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x10082e15
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
call fcn.100842b2
test eax, eax
je 0x10082df4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x15c]
push eax
push 0x10148904
lea ecx, [ebp - 0x97c]
push ecx
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
jmp 0x10082e13
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x15c]
push eax
push 0x10148918
lea ecx, [ebp - 0x97c]
push ecx
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
jmp 0x10082e1c
xor eax, eax
jmp 0x10083044
cmp dword [ebp + 0xc], 0
je 0x10082e2b
mov dword [ebp - 0xc], 0
jmp 0x10082e32
mov dword [ebp - 0xc], 8
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x10082e4d
mov dword [ebp - 0x980], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xaa4], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xaa0], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xaa4], 0xffffffff
je 0x10082e8c
cmp dword [ebp - 0xaa0], 0xffffffff
je 0x10082e8c
cmp dword [ebp - 4], 0xffffffff
jne 0x10082e93
xor eax, eax
jmp 0x10083044
jmp 0x10082eb6
mov dword [ebp - 0xc], 8
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x97c]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x10082ef7
push 0x10148924
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x988], eax
cmp dword [ebp - 0x988], 0
je 0x10082ef7
mov ecx, dword [ebp - 0x988]
push ecx
lea edx, [ebp - 0xa8c]
push edx
call sub.MSVCR70D.dll_strcpy
add esp, 8
lea eax, [ebp - 0xa8c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov word [ebp - 0x22], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x10], 0
je 0x10082f4c
mov dword [ebp - 0x28], 0x100
mov ecx, dword [ebp - 0xaa4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xaa0]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xa9c]
push ecx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
lea eax, [ebp - 0x97c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xaa8], eax
cmp dword [ebp + 0x18], 0
je 0x10082f8f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xaa8]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x10082fb1
cmp dword [ebp - 0x980], 0
je 0x10082fb1
cmp dword [ebp + 0xc], 0
je 0x10082fb1
push 0
push 0x1008397d
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp + 0xc], 0
je 0x10082fdd
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa9c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x18], 0
je 0x10082fdd
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xaa8], 0
je 0x10083000
mov eax, dword [ebp - 0xa9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa98]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x10083039
cmp dword [ebp - 0x980], 0
je 0x10083039
cmp dword [ebp + 0xc], 0
je 0x10083033
push 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.100816ca
mov eax, dword [ebp - 0xaa8]
mov esp, ebp
pop ebp
ret