Function at 0x59ae10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe8
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59aec8
lea esi, [ebp - 0xb0]
mov ecx, esi
push 0xffffffffffffffff
push 0x207
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xa8]
push 0x13
push str.ShellExecuteAndWait
push eax
call fcn.004e58e0
add esp, 0xc
push 8
push 0x6d34c8
push eax
call fcn.004e58e0
add esp, 0xc
push ebx
push eax
call fcn.005cd8a0
add esp, 8
push 0xd
push str.__parameters:
push eax
call fcn.004e58e0
add esp, 0xc
push dword [ebp + 0x10]
push eax
call fcn.0048e940
add esp, 8
push 7
push str.__verb:
push eax
call fcn.004e58e0
add esp, 0xc
push dword [ebp + 0x14]
push eax
call fcn.0048e940
add esp, 8
mov ecx, esi
call fcn.00490980
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x59aed3
mov eax, dword [ebx + 4]
test eax, eax
je 0x59b267
xor edi, edi
mov dword [ebp - 0xb0], edi
mov ecx, dword [0x754c84]
mov eax, dword [0x754c7c]
sub ecx, eax
mov edx, dword [0x754c80]
mov esi, dword [0x754c78]
sub edx, esi
push edi
push dword [0x758db4]
push edi
push edi
push ecx
push edx
push eax
push esi
push 0x90000000
push edi
push str.STATIC
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xb0], eax
mov esi, 0
test eax, eax
jne 0x59b0fb
mov dword [ebp - 0xb8], edi
xorps xmm0, xmm0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xec], 0x3c
mov dword [ebp - 0xe8], 0x800540
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0xb], 0
jns 0x59af6f
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
cmp byte [ebx + 0xb], 0
jns 0x59af80
mov ebx, dword [ebx]
mov dword [ebp - 0xdc], ebx
cmp byte [ecx + 0xb], 0
jns 0x59af8e
mov ecx, dword [ecx]
lea eax, [ebp - 0xec]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], 5
mov dword [eax + 0x20], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x59b1c2
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x59b119
xor ecx, ecx
dec ecx
lea edi, [ebp - 0xf4]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.00484970
mov ecx, edi
call fcn.00484c60
mov edi, eax
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59b041
lea ebx, [ebp - 0xb0]
mov ecx, ebx
push 0xffffffffffffffff
push 0x22c
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xa8]
push 0x13
push str.ShellExecuteAndWait
push eax
call fcn.004e58e0
add esp, 0xc
push 0x18
push str.:_Started_process__PID:
push eax
call fcn.004e58e0
add esp, 0xc
mov ecx, eax
push edi
call fcn.004114c0
mov ecx, ebx
call fcn.00490980
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x59b0b5
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59b0b5
lea edi, [ebp - 0xb0]
mov ecx, edi
push 0xffffffffffffffff
push 0x230
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xa8]
push 0x13
push str.ShellExecuteAndWait
push eax
call fcn.004e58e0
add esp, 0xc
push 0x25
push str.:_::AllowSetForegroundWindow_failed:
push eax
call fcn.004e58e0
add esp, 0xc
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
push eax
call fcn.004114c0
mov ecx, edi
call fcn.00490980
lea eax, [ebp - 0xb0]
mov dword [eax], 0
lea ecx, [ebp - 0xf4]
push eax
call fcn.005c8bd0
test al, al
jne 0x59b184
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov ecx, 2
jmp 0x59b18d
lea esi, [ebp - 0xb0]
mov ecx, esi
push 0
call fcn.0058a090
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esi]
jmp 0x59af34
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59b172
lea edi, [ebp - 0xb0]
mov ecx, edi
push 0xffffffffffffffff
push 0x226
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xa8]
push 0x13
push str.ShellExecuteAndWait
push eax
call fcn.004e58e0
add esp, 0xc
push 0x1e
push str.:_Started_process__PID_unknown
push eax
call fcn.004e58e0
add esp, 0xc
mov ecx, edi
call fcn.00490980
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 1
jmp 0x59b1a0
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
lea ecx, [ebp - 0xf4]
call fcn.004fa820
test esi, esi
je 0x59b1ab
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, edi
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59b254
lea edi, [ebp - 0xb0]
mov ecx, edi
push 0xffffffffffffffff
push 0x221
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xa8]
push 0x13
push str.ShellExecuteAndWait
push eax
call fcn.004e58e0
add esp, 0xc
push 0x1b
push str.:_::ShellExecuteEx_failed:
push eax
call fcn.004e58e0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [eax + ecx + 4]
and edx, 0xffffffb5
or edx, 8
mov dword [eax + ecx + 4], edx
mov ecx, eax
push esi
call fcn.00411270
mov ecx, edi
call fcn.00490980
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov dword [edi + 4], 2
mov esi, ebx
jmp 0x59b1a0
int3