Function at 0x4ab2e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push 0
push 0
push str.COMSPEC
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
je 0x4ab665
add eax, 3
and al, 0xfc
call fcn.004ea950
mov edi, esp
push esi
push edi
push str.COMSPEC
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x4ab678
lea ebx, [eax + edi]
cmp ebx, edi
jb 0x4ab33f
cmp byte [ebx], 0x5c
je 0x4ab33f
dec ebx
cmp ebx, edi
jae 0x4ab335
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4ab3c7
inc ebx
push str.command.com
push ebx
call fcn.004ede30
add esp, 8
test eax, eax
je 0x4ab3c7
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.__c
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, edx
lea ebx, [ecx + esi + 1]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004ea950
mov ecx, ebx
mov esi, esp
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push str.__c
push ecx
push str._s_s_s
push ebx
push esi
call fcn.004894c0
mov edx, dword [ebp - 8]
add esp, 0x18
jmp 0x4ab5a2
lea edx, [ebp - 0x160]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [ebp - 0x160]
xor ecx, ecx
xor esi, esi
test al, al
je 0x4ab410
mov edx, 1
lea edi, [ebp - 0x160]
sub edx, edi
cmp al, 0x5c
jne 0x4ab404
lea eax, [edx + esi]
lea ecx, [ebp + eax - 0x160]
mov al, byte [ebp + esi - 0x15f]
inc esi
test al, al
jne 0x4ab3f6
mov byte [ebp + ecx - 0x160], 0
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x104
sub edx, ecx
lea eax, [ebp - 0x160]
push edx
push str.w9xpopen.exe
push eax
call fcn.004edd00
lea ecx, [ebp - 0x184]
lea edx, [ebp - 0x160]
push ecx
push edx
call fcn.004f6e0a
add esp, 0x14
test eax, eax
je 0x4ab515
push 0x104
call fcn.00490bc0
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004e8510
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x161], 0x5c
je 0x4ab4ab
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x54871c]
mov word [edi - 1], cx
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x160]
sub edx, ecx
push edx
push str.w9xpopen.exe
push eax
call fcn.004edd00
lea ecx, [ebp - 0x184]
lea edx, [ebp - 0x160]
push ecx
push edx
call fcn.004f6e0a
add esp, 0x14
test eax, eax
je 0x4ab515
mov eax, dword [0x583308]
push str.w9xpopen.exe
push str.Can_not_locate__s_which_is_needed_for_popen_to_work_with_your_shell_or_platform.
push eax
call fcn.004417a0
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x190]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.w9xpopen.exe
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.__c
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x160]
mov ebx, ecx
or ecx, 0xffffffff
add ebx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, edx
lea ebx, [ecx + ebx + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004ea950
mov ecx, ebx
mov esi, esp
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [ebp - 0x160]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push str.__c
push ecx
push edx
push str.__s___s_s_s
push ebx
push esi
call fcn.004894c0
add esp, 0x1c
mov edx, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x5c]
push ecx
push eax
push 0
push 0
push edx
push 1
push 0
push 0
push esi
push 0
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x101
mov word [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4ab618
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, 1
lea esp, [ebp - 0x190]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e99e6
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call fcn.004e99e6
test esi, esi
je 0x4ab64b
mov ecx, dword [eax]
push esi
push ecx
call fcn.00441730
add esp, 8
xor eax, eax
lea esp, [ebp - 0x190]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
push edx
call fcn.00441710
add esp, 4
xor eax, eax
lea esp, [ebp - 0x190]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x583308]
push str.Cannot_locate_a_COMSPEC_environment_variable_to_use_as_the_shell
push eax
call fcn.00440fb0
add esp, 8
xor eax, eax
lea esp, [ebp - 0x190]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret