Function at 0x180059c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [0x180fb8f9]
sub esp, 0x34
push ebx
push esi
neg ecx
push edi
sbb ecx, ecx
mov ebx, 0x180fbba0
and ecx, ebx
push 1
mov esi, eax
pop edi
je 0x18005a10
push 3
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._ShellExecuteExEnsureParent_
push eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], edi
call fcn.18001000
pop ecx
pop ecx
lea eax, [ebp - 0x30]
call fcn.1800443b
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [esi + 8], eax
jne 0x18005aa9
call fcn.18011e64
test al, al
je 0x18005aa9
call fcn.1800432b
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18005b64
mov dword [ebp - 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x18005aa9
push str.runas
push eax
call fcn.1809dd43
pop ecx
pop ecx
test eax, eax
jne 0x18005aa9
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x18005aa9
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
je 0x18005aa9
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str._SetForegroundWindow_failed___d_
push eax
call fcn.18001000
add esp, 0xc
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x18005bf3
mov esi, dword [esi + 0x38]
test esi, esi
je 0x18005bbc
push esi
call fcn.1801365b
pop ecx
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
mov dword [ebp - 0x10], eax
je 0x18005b0e
push edi
push 8
pop esi
push esi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._Started_process___u_
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.18001000
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x18005c3b
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
je 0x18005c3b
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str._AllowSetForegroundWindow_failed___d_
push eax
call fcn.18001000
add esp, 0xc
jmp 0x18005c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
mov dword [ebp - 8], eax
je 0x18005ba2
push 0xfffffffffffffffe
pop ebx
push ebx
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._CreateDummyOverlappedWindow_failed_
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.18001000
pop ecx
pop ecx
xor bl, bl
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x30]
call fcn.1800448a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
je 0x18005c3b
push edi
push 8
pop esi
push esi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._Started_process__PID_unknown_
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.18001000
pop ecx
pop ecx
jmp 0x18005c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, ebx
mov dword [ebp - 8], eax
je 0x18005c3b
push 0xfffffffffffffffe
pop ebx
push ebx
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [esi + 0x14]
lea eax, [ebp - 0x20]
push dword [esi + 0x10]
mov dword [ebp - 0x18], ebx
push str._ShellExecuteEx_failed___s___s__0x_08x_
push eax
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0x14
cmp dword [ebp - 0xc], 0
je 0x18005c4a
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov bl, byte [ebp - 1]
jmp 0x18005ba4