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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x6458e0
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408f40
mov eax, dword [ebp - 8]
call fcn.00408f40
xor eax, eax
push ebp
push 0x645d90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409284
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004202f0
test al, al
jne 0x645931
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00409284
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004202f0
test al, al
je 0x645d1c
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00409c50
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x645d1c
mov eax, 0x800
call fcn.0061b29c
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetFileSize
cmp eax, 0x2000
jle 0x6459b6
push 0
push 0
push 0x2000
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x20]
push eax
push 2
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x20]
push eax
push 0x800
mov eax, dword [0x67a564]
add eax, 0x24
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0x800
call fcn.00406d94
push 0
lea eax, [ebp - 0x20]
push eax
push 0x800
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0x10]
mov edx, 0x645da8
call fcn.00409320
push 0
mov ecx, dword [ebp - 0x10]
mov edx, 0x800
mov eax, dword [ebp - 0x24]
call fcn.0061cd44
lea eax, [ebp - 0x10]
mov edx, 0x645dc0
call fcn.00409320
push 0
mov ecx, dword [ebp - 0x10]
mov edx, 0x800
mov eax, dword [ebp - 0x24]
call fcn.0061cd44
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x12c], 0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x24]
add edx, 0xc8
mov ecx, 0
call fcn.0040959c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.00409d28
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00613d60
mov edx, dword [ebp - 0x28]
mov eax, dword [0x67a564]
add eax, 0x14
call fcn.0040923c
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x14]
call fcn.00611680
mov edx, dword [0x67a564]
mov dword [edx + 0x18], eax
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x645ab4
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x19
jle 0x645b1a
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov ecx, 0
call fcn.0040959c
xor eax, eax
push ebp
push 0x645af8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0040cd94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x645aff
lea eax, [ebp - 0x14]
call fcn.00408e80
ret
push 0
lea eax, [ebp - 0x20]
push eax
push 0x800
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, dword [0x67a564]
mov byte [edx + 0x826], al
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x14]
call fcn.00611710
mov ebx, eax
mov eax, dword [0x67a564]
mov byte [eax + 0x826], bl
mov eax, dword [0x67a564]
cmp byte [eax + 0x878], 0
je 0x645bd0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0x11
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
movzx eax, bl
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x60]
mov ecx, 4
mov eax, 0x645dd8
call fcn.00420f7c
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.0063b130
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x7fffffff
push 0xfecd9826
lea eax, [ebp - 0x64]
call fcn.0061c410
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x10]
call fcn.0040cbd8
push 0
mov eax, dword [0x67a564]
add eax, 0x24
mov ecx, dword [ebp - 0x10]
mov edx, 0x800
call fcn.0061cd44
push 0
lea edx, [ebp - 0x68]
mov eax, dword [0x67a564]
mov eax, dword [eax + 0x1c]
call fcn.0061ec94
mov ecx, dword [ebp - 0x68]
mov eax, dword [0x67a564]
add eax, 0x24
mov edx, 0x800
call fcn.0061cd44
push 0
lea edx, [ebp - 0x70]
mov eax, dword [0x67a564]
movzx eax, byte [eax + 0x826]
call fcn.0041fb48
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov ecx, 0
call fcn.004099e0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [0x67a564]
add eax, 0x24
mov edx, 0x800
call fcn.0061cd44
mov eax, dword [0x67a564]
add eax, 0x24
mov ecx, 0x645e54
mov edx, 0x800
call fcn.0061cefc
mov edx, dword [0x67a564]
mov edx, dword [edx + 0x14]
mov eax, edx
test eax, eax
je 0x645c9a
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x1d
jge 0x645ca3
mov al, 1
jmp 0x645cb4
mov eax, edx
test eax, eax
je 0x645cae
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x23
setg al
test al, al
je 0x645d14
mov eax, dword [0x67a564]
add eax, 0x10
call fcn.00408e5c
mov eax, dword [0x67a564]
add eax, 0x14
call fcn.00408e5c
mov eax, dword [0x67a564]
xor ebx, ebx
mov byte [eax + 0x826], bl
mov eax, dword [0x67a564]
cmp byte [eax + 0x878], 0
je 0x645d14
lea eax, [ebp - 0x74]
push eax
movzx eax, bl
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, 0x645e7c
call fcn.00420f7c
mov eax, dword [ebp - 0x74]
xor edx, edx
call fcn.0063b130
mov eax, dword [ebp - 0x24]
call fcn.00406758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x645d97
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00408ebc
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00408eec
lea eax, [ebp - 0x64]
call fcn.00408e5c
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00408ebc
lea eax, [ebp - 0x30]
call fcn.00408e80
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00408ebc
lea eax, [ebp - 0x18]
call fcn.00408e5c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408eec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408ebc
ret