Function at 0x4985e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
jne 0x498608
mov dword [esp], 5
call fcn.00472150
jmp 0x498c82
mov eax, dword [0x6a7b4c]
test eax, eax
je 0x498622
mov dword [esp], 0x106
call fcn.00472150
jmp 0x498c82
mov eax, dword [0xa57404]
test eax, eax
jne 0x498644
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047386a
mov dword [0xa57404], eax
mov eax, dword [0xa57408]
test eax, eax
jne 0x498666
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047386a
mov dword [0xa57408], eax
mov eax, dword [0xa5740c]
test eax, eax
jne 0x498688
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047386a
mov dword [0xa5740c], eax
mov eax, dword [0xa57410]
test eax, eax
jne 0x4986aa
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047386a
mov dword [0xa57410], eax
mov eax, dword [0xa57414]
test eax, eax
jne 0x4986cc
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047386a
mov dword [0xa57414], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4986e7
mov dword [esp], 5
call fcn.00472150
jmp 0x498c82
call fcn.0049510d
test eax, eax
setne al
test al, al
je 0x498b43
mov eax, dword [0xa57404]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp], 0x55f506
call fcn.00473656
mov edx, eax
mov eax, dword [0xa57408]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov eax, dword [0xa57404]
mov dword [esp], eax
call fcn.00495220
test eax, eax
sete al
test al, al
je 0x4987ee
mov dword [esp + 4], 1
mov dword [esp], 0x566887
call fcn.004736e7
mov edx, eax
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa5740c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa57420
call sub.msvcrt.dll_memset
mov dword [0xa57420], 0x3c
mov eax, dword [0xa5740c]
mov eax, dword [eax]
mov dword [0xa57430], eax
mov dword [0xa57434], 0
mov dword [0xa57424], 0x400
mov dword [0xa5743c], 0
mov dword [esp], 0xa57420
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jne 0x498c78
mov dword [0xa5745c], 0
mov dword [0xa57460], 0
jmp 0x4988cc
mov eax, dword [0xa57404]
mov edx, dword [eax]
mov eax, dword [0xa5745c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x49883b
mov eax, dword [0xa57460]
test eax, eax
jne 0x498831
mov dword [0xa57460], 1
jmp 0x49883b
mov dword [0xa57460], 0
mov eax, dword [0xa57404]
mov edx, dword [eax]
mov eax, dword [0xa5745c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x4988bf
mov eax, dword [0xa57460]
test eax, eax
jne 0x4988bf
mov eax, dword [0xa57404]
mov edx, dword [eax + 4]
mov eax, dword [0xa5745c]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004745df
mov edx, eax
mov eax, dword [0xa57408]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov edx, dword [0xa5745c]
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474517
mov edx, eax
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
jmp 0x4988e6
mov eax, dword [0xa5745c]
add eax, 1
mov dword [0xa5745c], eax
mov eax, dword [0xa57404]
mov edx, dword [eax + 4]
mov eax, dword [0xa5745c]
cmp edx, eax
setg al
test al, al
jne 0x498807
mov eax, dword [0xa57404]
mov eax, dword [eax + 4]
test eax, eax
je 0x498c7b
mov eax, dword [0xa57408]
mov eax, dword [eax + 4]
test eax, eax
je 0x498a04
mov eax, dword [0xa57404]
mov dword [esp], eax
call fcn.00495220
test eax, eax
sete al
test al, al
je 0x498a04
mov dword [esp + 4], 1
mov dword [esp], 0x566887
call fcn.004736e7
mov edx, eax
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa5740c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 4], 1
mov dword [esp], 0x566887
call fcn.004736e7
mov edx, eax
mov eax, dword [0xa57408]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57410]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa57420
call sub.msvcrt.dll_memset
mov dword [0xa57420], 0x3c
mov eax, dword [0xa5740c]
mov eax, dword [eax]
mov dword [0xa57430], eax
mov eax, dword [0xa57410]
mov eax, dword [eax]
mov dword [0xa57434], eax
mov dword [0xa57424], 0x400
mov dword [0xa5743c], 0
mov dword [esp], 0xa57420
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jne 0x498c7e
mov eax, dword [0xa57408]
mov eax, dword [eax + 4]
test eax, eax
je 0x498a41
mov ebx, dword [0xa57408]
mov dword [esp], 0x5668fa
call fcn.00473656
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57408]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov edx, dword [0xa57408]
mov eax, dword [0xa57404]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov ebx, dword [0xa57414]
mov dword [esp], str.__c
call fcn.00473656
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 4], 1
mov dword [esp], 0x566887
call fcn.004736e7
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa57420
call sub.msvcrt.dll_memset
mov dword [0xa57420], 0x3c
mov dword [0xa57430], 0x54a918
mov eax, dword [0xa57414]
mov eax, dword [eax]
mov dword [0xa57434], eax
mov dword [0xa57424], 0x400
mov dword [0xa5743c], 0
mov dword [esp], 0xa57420
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jmp 0x498c82
mov dword [esp], str.command.com__c
call fcn.00473656
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 4], 1
mov dword [esp], 0x566887
call fcn.004736e7
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474195
mov edx, eax
mov eax, dword [0xa57414]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004739d1
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa57480
call sub.msvcrt.dll_memset
mov dword [0xa57480], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa574c4
call sub.msvcrt.dll_memset
mov eax, dword [0xa57414]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa574c4
mov dword [esp + 0x20], 0xa57480
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x498c81
mov eax, dword [0xa574c4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa574c8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x498c82
nop
jmp 0x498c82
nop
jmp 0x498c82
nop
jmp 0x498c82
nop
mov ebx, dword [ebp - 4]
leave
ret