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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645278
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp + 8]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0xffffffff
jne 0x408996
mov dword [ebp - 0x458], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov eax, dword [ebp - 0x458]
jmp 0x408bd2
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x448], 0
push 0x674f8d
push 0x200000
call fcn.00616073
add esp, 8
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x430], ecx
cmp dword [ebp - 0x430], 0
jne 0x408a1e
mov dword [ebp - 0x460], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov eax, dword [ebp - 0x460]
jmp 0x408bd2
mov dword [ebp - 0x434], 0
lea edx, [ebp - 0x42c]
push edx
call fcn.00407940
mov ecx, eax
call fcn.0040ca90
cmp dword [ebp - 0x438], 0
jl 0x408b5e
jg 0x408a57
cmp dword [ebp - 0x43c], 0
jbe 0x408b5e
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x438], 0
jg 0x408a8f
jl 0x408a75
cmp dword [ebp - 0x43c], 0x200000
jae 0x408a8f
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x450], ecx
jmp 0x408aa3
mov dword [ebp - 0x454], 0x200000
mov dword [ebp - 0x450], 0
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x444], edx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408ad9
jmp 0x408b5e
mov ecx, dword [ebp - 0x448]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x448], ecx
xor edx, edx
mov eax, dword [ebp - 0x43c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x438]
sbb ecx, edx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x434], 0
jne 0x408b32
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.0040cbc0
add esp, 0xc
mov dword [ebp - 0x434], eax
jmp 0x408b59
mov edx, dword [ebp - 0x434]
push edx
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call fcn.0040cc30
add esp, 0x10
mov dword [ebp - 0x434], eax
jmp 0x408a3b
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00615907
add esp, 4
cmp dword [ebp - 0x44c], 0
jne 0x408b9b
mov dword [ebp - 0x464], 0
jmp 0x408bb1
mov dword [ebp - 0x430], 0x8123
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x468], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret