Function at 0x4263d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2885
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4265f6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], ebx
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
cmove eax, esi
push eax
call fcn.00406a90
mov edi, dword [ebp - 0x10]
or esi, 0xffffffff
cmp dword [edi - 0xc], ebx
je 0x4265ba
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x426600
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
push str._s_d._s
push eax
call fcn.00408c40
mov esi, dword [ebp - 0x14]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x42659c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x426590
lea eax, [ebx + 0xa]
mov dword [ebp + 0x10], 0
mov dword [ebp + 8], eax
test eax, eax
js 0x4265ec
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp + 8]
or eax, ecx
jge 0x4264ec
lea eax, [ebx + 0xa]
mov ecx, edx
push eax
call fcn.0040a780
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
jmp 0x4264ef
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp + 0x10]
push ecx
push ebx
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x426579
cmp dword [ebp + 0x10], ebx
jne 0x426579
cmp ebx, 0xffffffff
jne 0x42652c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x42651e
xor ebx, ebx
jmp 0x426537
push dword [ecx - 8]
push ecx
call fcn.005a9505
add esp, 8
mov ebx, eax
test ebx, ebx
js 0x4265ec
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp ebx, dword [ecx - 8]
jg 0x4265ec
push dword [ebp + 0x14]
mov dword [ecx - 0xc], ebx
mov eax, dword [eax]
mov byte [ebx + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426572
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
jmp 0x4265ba
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jl 0x4265ec
mov dword [ecx - 0xc], 0
mov eax, dword [eax]
mov byte [eax], 0
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4265ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4265d6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3