Function at 0x402410
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429100
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x434ca0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434ca0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
xor edi, edi
push 0x63
lea ecx, [esp + 0x25]
push edi
mov dword [esp + 0x1c], edi
push ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x2c], 0
call fcn.00415d80
add esp, 0xc
call fcn.004096aa
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402485
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x90], edi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4024c2
push 0x104
lea ecx, [esp + 0x20]
call fcn.00401a40
mov esi, dword [esp + 0x1c]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00413e80
add esp, 8
cmp eax, edi
jl 0x4026db
cmp eax, dword [esi - 8]
jg 0x4026db
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edi
push edi
mov dword [esi - 0xc], eax
xor ecx, ecx
push edi
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
push eax
push esi
push edi
push 1
call ebx
mov edi, eax
lea edx, [edi + 1]
push edx
call fcn.00409327
add esp, 4
push 0
push 0
push edi
mov ebp, eax
mov eax, dword [esi - 0xc]
push ebp
push eax
push esi
push 0
push 1
call ebx
push 0x42da5c
push ebp
mov byte [edi + ebp], 0
call fcn.004145ec
mov edi, eax
add esp, 8
test edi, edi
jne 0x4025a1
mov edi, dword [esp + 0x18]
push 0x42da60
mov ecx, edi
call fcn.004017b0
add esi, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40257a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00413c41
add esp, 0x80
ret
push 2
push 0xffffffffffffff9c
push edi
call fcn.0041468d
push edi
push 0x64
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.004149b2
add esp, 0x1c
test eax, eax
jne 0x4025ee
mov edi, dword [esp + 0x18]
push 0x42da60
mov ecx, edi
call fcn.004017b0
add esi, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x40256e
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push 0
push 1
call ebx
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409327
add esp, 4
push ebp
mov edi, eax
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push 0
push 1
call ebx
call fcn.004096aa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40264b
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push 0x42d950
push ecx
mov byte [esp + 0x9c], 1
call fcn.004028e0
mov edi, dword [esp + 0x20]
add edi, 0xfffffff0
push edi
call fcn.00401c30
mov ebx, dword [esp + 0x28]
add eax, 0x10
mov dword [ebx], eax
add esp, 0x10
mov byte [esp + 0x90], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4026ad
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026d4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
jmp 0x40257c
push 0x80070057
call fcn.00401c00
int3