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

Disassembly:
push 0xffffffffffffffff
push 0x403ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov ecx, 0x405390
call fcn.004026f0
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 0x4022c5
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00402cc0
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 0x4022de
xor eax, eax
jmp 0x4022f8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022e3
sub eax, esi
sar eax, 1
js 0x4024d2
cmp eax, dword [edx - 8]
jg 0x4024d2
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 0x40232f
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x402364
mov dword [esp + 0x60], esi
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40234c
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.00402800
lea edi, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.004027a0
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 0x4023a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x14]
call fcn.00402870
add esp, 4
push 0xd
push 0x405448
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x6c], 2
call fcn.00402e50
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40240e
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x14]
mov edx, esi
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023fe
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 0x402336
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.00402200
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, str.runas
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str._force__newpath__specificlatest_guid0_qq0_ver0_build_ver0
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
je 0x4023e5
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40249c
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 0x4024bd
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