Function at 0x567410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea esi, [ebp - 0x64]
mov ecx, edi
push esi
call fcn.004598b0
cmp byte [esi + 0xb], 0
js 0x567682
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
movsd xmm0, qword [ebp - 0x64]
movsd qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x64]
call fcn.004dfb00
lea esi, [ebp - 0x28]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ecx, edi
push esi
call fcn.0045a7d0
cmp byte [esi + 0xb], 0
jns 0x56747b
mov esi, dword [ebp - 0x28]
cmp word [esi], 0x22
jne 0x5675c9
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x567490
mov eax, dword [ebp - 0x18]
add eax, 2
lea edx, [ebp - 0x1c]
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x64]
push edx
push 0xffffffffffffffff
push eax
push esi
call fcn.0044ac10
cmp byte [esi + 0xb], 0
jns 0x5674b7
push dword [ebp - 0x28]
call fcn.005039aa
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x20], eax
movsd xmm0, qword [ebp - 0x64]
movsd qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
movzx ecx, byte [eax + 0xb]
mov edx, eax
test cl, cl
jns 0x5674da
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push eax
push 3
push ecx
push edx
call fcn.00563140
add esp, 0x10
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 0x30
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmmword [0x5ea390]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], str.STATIC
mov dword [esp], 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test eax, eax
je 0x567594
push 2
push edi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x56758d
xor ecx, ecx
mov dword [ebp - 0x40], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x64], 0x28
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
sub esi, ebx
mov ecx, esi
shr ecx, 0x1f
add ecx, esi
sar ecx, 1
sub eax, edx
mov esi, eax
shr esi, 0x1f
add esi, eax
sar esi, 1
add esi, edx
add ecx, ebx
xor eax, eax
push eax
push eax
push eax
push esi
push ecx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], str.runas
cmp byte [ebp - 0x11], 0
jns 0x5675dd
mov eax, dword [ebp - 0x1c]
jmp 0x5675e0
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x567493
mov eax, dword [ebp - 0x18]
jmp 0x567493
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
cmp byte [ebp - 0x1d], 0
jns 0x5675ee
mov eax, dword [ebp - 0x28]
jmp 0x5675f1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 5
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x56763f
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x68]
mov dword [eax], 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
test esi, esi
je 0x567641
test eax, eax
je 0x567641
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
jmp 0x567641
xor ebx, ebx
test edi, edi
je 0x56764c
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [ebp - 0x1d], 0
jns 0x56765d
push dword [ebp - 0x28]
call fcn.005039aa
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x56766e
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.004de080
jmp 0x567457