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

Disassembly:
push 0xffffffffffffffff
push 0x404658
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov ecx, 0x405374
call fcn.00402c20
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4024b5
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.004032e0
mov edx, dword [esp + 0x10]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x10]
cmp edx, ebx
jne 0x4024ce
xor eax, eax
jmp 0x4024e8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4024d3
sub eax, esi
sar eax, 1
js 0x4026f1
cmp eax, dword [edx - 8]
jg 0x4026f1
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], bx
mov edx, dword [esp + 0x10]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
mov ecx, dword [esp + 0x18]
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
je 0x40251f
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x402554
mov dword [esp + 0x60], esi
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40253c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x54
ret
add eax, 1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
call fcn.00402d50
lea edi, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00402cf0
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 0x40545c
call fcn.00402dc0
add esp, 8
push 0xd
push 0x405460
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x6c], 2
call fcn.00403470
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402604
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4025f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x402526
push 0x3c
xor ebx, ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], ebx
call fcn.004023f0
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x40547c
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x405488
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [esp + 0x60], bl
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, esi
jne 0x4026a2
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x402526
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4026dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x54
ret
push 0x80070057
call fcn.00401000
int3