Function at 0x7e57ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040ab34
mov eax, dword [ebp + 0xc]
call fcn.0040ab34
mov eax, dword [ebp + 8]
call fcn.0040ab34
xor eax, eax
push ebp
push 0x7e59fe
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0x12
push 0
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 4]
mov edx, 0x7e5a1c
call fcn.0040bb90
mov ecx, dword [ebp - 0x64]
mov edx, 0x12
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x4c]
cmp byte [ebp + 0x10], 0
je 0x7e5908
mov ecx, dword [0x8bd610]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x5f7918]
call fcn.005ffb78
mov esi, eax
mov dl, 4
mov eax, esi
call fcn.0060284c
mov edx, 0x12c
mov eax, esi
call fcn.00541db4
mov edx, 0xaa
mov eax, esi
call fcn.00541dec
mov edx, dword [ebp + 0xc]
mov eax, esi
call fcn.0054295c
mov dl, 3
mov eax, esi
call fcn.00601f00
movzx edx, byte [0x7e5a2c]
mov eax, esi
call fcn.00601d04
mov ecx, esi
mov dl, 1
mov eax, dword [0x578c30]
call fcn.0057d578
mov ebx, eax
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov dl, 4
mov eax, ebx
call fcn.0057ddf0
mov edx, 0xa
mov eax, ebx
call fcn.00541d44
mov edx, 0xa
mov eax, ebx
call fcn.00541d7c
mov ecx, esi
mov dl, 1
mov eax, dword [0x55e6a8]
call fcn.0056b4d8
mov edi, eax
mov edx, esi
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov edx, 0xa
mov eax, edi
call fcn.00541d44
mov edx, dword [ebx + 0x54]
add edx, dword [ebx + 0x5c]
add edx, 8
mov eax, edi
call fcn.00541d7c
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0054295c
mov eax, esi
call fcn.00606224
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xbc]
mov dl, 1
mov eax, ebx
call fcn.0057dd9c
xor ebx, ebx
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f60
mov dword [ebp - 0x50], 0x44
cmp byte [ebp - 5], 0
je 0x7e592e
mov word [ebp - 0x20], 5
jmp 0x7e5934
mov word [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b924
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x7e59c0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x7e599b
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x7e599b
cmp dword [ebp - 0xc], 0
jne 0x7e598d
mov bl, 1
jmp 0x7e599b
mov eax, dword [ebp - 0xc]
add eax, 0x2000
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetLastError
jmp 0x7e59c8
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
test esi, esi
je 0x7e59d3
mov eax, esi
call fcn.00408c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e5a05
lea eax, [ebp - 0x64]
call fcn.0040aa50
lea eax, [ebp - 4]
call fcn.0040aa50
lea eax, [ebp + 8]
mov edx, 2
call fcn.0040aab0
ret