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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae9dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.00402120
lea ecx, [ebp - 0x40]
call fcn.00459790
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x465ecb
lea edx, [ebp - 0x40]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x60]
call fcn.00402120
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404dd0
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401a00
mov eax, dword [ebp + 8]
jmp 0x466078
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x465f39
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x6c]
call fcn.00402120
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404dd0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401a00
mov eax, dword [ebp + 8]
jmp 0x466078
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x44]
ja 0x465f55
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f630
jmp 0x465f66
push 0
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00410ce0
lea edx, [ebp - 0x40]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x465f84
mov dword [ebp - 0x48], 1
jmp 0x465f8b
mov dword [ebp - 0x48], 0
mov dl, byte [ebp - 0x48]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x465fa7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x465fe1
cmp dword [ebp - 0x20], 0xffffffff
jne 0x465ff5
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.0040f630
mov byte [ebp - 4], 0
jmp 0x466028
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x50]
ja 0x466017
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x40]
call fcn.0040f630
jmp 0x466028
push 0
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
call fcn.00410ce0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x84]
call fcn.00402120
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404dd0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401a00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret