Function at 0x40f740
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a0cab
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x670]
mov dword fs:[0], eax
mov dword [esp + 0x678], 1
mov eax, dword [esp + 0x680]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x40f80c
push 1
push 0x5d7f80
push str.b_rN0R3
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x678], 0
mov eax, dword [esp + 0x680]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x678], 0xffffffff
mov eax, dword [esp + 0x684]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40f9de
test byte [0x660d44], 1
mov esi, dword [esp + 0x680]
jne 0x40f823
or dword [0x660d44], 1
xor ebx, ebx
cmp dword [0x66026c], ebx
jne 0x40f84b
mov dword [0x66026c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0049e5ca
add esp, 4
mov dword [0x660270], eax
cmp dword [0x660270], ebx
jne 0x40f877
cmp esi, ebx
je 0x40f86b
push esi
call edi
test eax, eax
je 0x40f86b
push esi
call fcn.0040f190
add esp, 4
cmp eax, ebx
jne 0x40f877
mov byte [esp + 0x678], bl
jmp 0x40f7b4
call fcn.00407fc0
test eax, eax
je 0x40f92f
push 0x616
lea edx, [esp + 0x5a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x60], cx
call fcn.004fe380
mov eax, dword [esp + 0x690]
add esp, 0xc
push eax
push 0x5d7fa8
mov ecx, 0x30c
lea ebx, [esp + 0x5c]
call fcn.0040f130
push 0x38
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.004fe380
mov edx, dword [esp + 0x694]
add esp, 0x14
lea ecx, [esp + 0x18]
lea eax, [esp + 0x54]
push ecx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x440
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], str.runas
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov byte [esp + 0x678], bl
mov eax, dword [esp + 0x680]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40f9a2
mov eax, dword [esp + 0x684]
push ebx
push 5
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x688], 2
mov eax, dword [esp + 0x690]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x68c], 1
call fcn.0049daf3
mov esi, eax
mov byte [esp + 0x68c], bl
mov eax, dword [esp + 0x694]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x678], 0xffffffff
mov eax, dword [esp + 0x684]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x65c]
xor ecx, esp
call fcn.004f673f
add esp, 0x66c
ret 8