Function at 0x59bc78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
xor eax, eax
push ebp
push 0x59bf68
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
xor edx, edx
push ebp
push 0x59befd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x59bcf8
mov eax, dword [ebp - 4]
test eax, eax
je 0x59bce8
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x59bce8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406988
test eax, eax
je 0x59bcf1
sub eax, 4
mov eax, dword [eax]
test eax, eax
setne al
jmp 0x59bcfa
xor eax, eax
test al, al
je 0x59bef3
mov edx, dword [ebp - 4]
mov eax, 0x59bf88
call fcn.004080f4
test eax, eax
je 0x59bef3
lea edx, [ebp - 0x50]
mov eax, dword [0x625230]
call fcn.0057ced4
mov eax, dword [ebp - 0x50]
call fcn.00414fe4
test al, al
jne 0x59bd45
lea edx, [ebp - 0x54]
mov eax, dword [0x625230]
call fcn.0057ced4
mov eax, dword [ebp - 0x54]
call fcn.00415008
lea edx, [ebp - 0x58]
mov eax, dword [0x625230]
call fcn.0057ced4
mov eax, dword [ebp - 0x58]
call fcn.00414fe4
test al, al
jne 0x59bd8a
push 0x10
push 0x59bf8c
push 0x59bf98
mov eax, dword [0x625a48]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59bf40
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0059c094
cmp dword [ebp - 8], 0
je 0x59bdca
mov eax, dword [ebp - 8]
test eax, eax
je 0x59bdba
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x59bdba
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406988
test eax, eax
je 0x59bdc3
sub eax, 4
mov eax, dword [eax]
test eax, eax
setne al
jmp 0x59bdcc
xor eax, eax
test al, al
je 0x59bde4
mov edx, dword [ebp - 8]
mov eax, 0x59bfcc
call fcn.004080f4
test eax, eax
setne al
jmp 0x59bde6
xor eax, eax
test al, al
je 0x59bef3
mov eax, dword [ebp - 8]
call fcn.00414f9c
test al, al
je 0x59bef3
xor eax, eax
push ebp
push 0x59beec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov eax, 0x59bfd0
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x5c]
mov eax, 0x59bfe8
call fcn.0057ced4
mov eax, dword [ebp - 0x5c]
call fcn.00407620
mov dword [ebp - 0x3c], eax
push 0x59c008
push dword [ebp - 8]
push 0x59c050
push dword [ebp - 4]
push 0x59c064
lea edx, [ebp - 0x64]
mov eax, dword [0x625230]
call fcn.0057ced4
push dword [ebp - 0x64]
push 0
lea eax, [ebp - 0x60]
mov edx, 7
call fcn.00407b5c
mov eax, dword [ebp - 0x60]
call fcn.00407620
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x10], 0x103
jne 0x59bed1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x625a48]
mov eax, dword [eax]
call fcn.004cf074
push 0xf
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0x10], 0x103
je 0x59bea8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59bef3
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59bf39
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59bf6f
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.0040758c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040758c
ret