Function at 0x40ffe8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
mov eax, 0x4d0038
push ebx
push esi
push edi
lea esi, [ebp - 0x48]
mov ebx, dword [ebp + 8]
call fcn.0048c270
mov word [esi + 0x10], 0x14
mov edx, 0x4cff5c
lea eax, [ebp - 4]
call fcn.00497ebc
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
test ebx, ebx
jne 0x410042
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00498000
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x410294
cmp byte [ebx], 0
jne 0x410065
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00498000
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x410294
xor edi, edi
push esi
push edi
mov esi, 0x4cff08
lea edi, [ebp - 0x8c]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x4cff4c
lea edi, [ebp - 0x9c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp + 0x10], 0
je 0x41009f
mov word [ebp - 0x5c], 0
mov dword [ebp - 0x8c], 0x44
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x8c]
push eax
push edx
push 0
push 0
cmp byte [ebp + 0x10], 0
je 0x4100c8
mov ecx, 0x8000000
jmp 0x4100ca
xor ecx, ecx
push ecx
push 0
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x41017b
mov word [esi + 0x10], 0x20
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00497ebc
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, str.DW_8__Linha_de_comando_a_ser_executada:
inc dword [esi + 0x1c]
call fcn.00498250
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00498030
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00498000
cmp dword [ebp - 4], 0
je 0x410141
mov ecx, dword [ebp - 4]
jmp 0x410146
mov ecx, 0x4cff5c
push ecx
call fcn.00426980
cmp byte [ebp + 0xc], 0
pop ecx
je 0x410170
mov eax, dword [ebp - 0x94]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
push edi
call sub.KERNEL32.DLL_CloseHandle
jmp 0x41027c
mov word [esi + 0x10], 0x2c
call sub.KERNEL32.DLL_GetLastError
xor edx, edx
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x20]
inc dword [esi + 0x1c]
call fcn.00402a80
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00497ebc
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, str.DW_9__Execucao_com_problemas:
inc dword [esi + 0x1c]
call fcn.00498250
lea edx, [ebp - 0x14]
push edx
mov edx, str._erro:
lea eax, [ebp - 0x18]
call fcn.00497ebc
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x18]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x1c]
pop eax
call fcn.00498058
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x24]
inc dword [esi + 0x1c]
pop edx
call fcn.00498058
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00498030
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00498000
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00498000
cmp dword [ebp - 4], 0
je 0x410270
mov ecx, dword [ebp - 4]
jmp 0x410275
mov ecx, 0x4cff5c
push ecx
call fcn.00426980
pop ecx
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00498000
mov eax, dword [esi]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret