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

Disassembly:
push 0xffffffffffffffff
push 0x404a78
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.00403040
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 0x4025f5
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00403700
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 0x40260e
xor eax, eax
jmp 0x402628
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402613
sub eax, esi
sar eax, 1
js 0x402831
cmp eax, dword [edx - 8]
jg 0x402831
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 0x40265f
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x402694
mov dword [esp + 0x60], esi
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40267c
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.00403150
lea edi, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.004030f0
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 0x4026d5
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, 0x405470
call fcn.004031c0
add esp, 8
push 0xd
push 0x405474
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x6c], 2
call fcn.00403890
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402744
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 0x402734
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 0x402666
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.00402530
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x405490
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x4054a0
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 0x4027e2
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402734
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 0x402666
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027fb
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 0x40281c
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