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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
xor eax, eax
push ebp
push 0x637a50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00407494
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x637a20
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x63787b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x637a20
xor edi, edi
mov eax, dword [ebp - 0x24]
call fcn.00637724
mov ebx, eax
cmp ebx, 1
je 0x637891
cmp ebx, 2
jne 0x637898
mov edi, 2
jmp 0x6378a2
cmp ebx, 3
jne 0x6378a2
mov edi, 3
mov eax, esi
sub eax, edi
mov dword [ebp - 0x28], eax
push 0
push 0
push edi
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetFilePointer
cmp esi, 0xffffffff
je 0x637a17
cmp dword [ebp - 0x28], 0
jle 0x637a17
cmp ebx, 1
je 0x6378d4
cmp ebx, 2
jne 0x637937
mov edx, dword [ebp - 0x28]
sar edx, 1
jns 0x6378de
adc edx, 0
lea eax, [ebp - 8]
call fcn.00408490
mov eax, dword [ebp - 8]
test eax, eax
je 0x6378f2
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x20]
push edx
add eax, eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp - 0x20]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00408490
cmp ebx, 2
jne 0x637927
mov eax, dword [ebp - 8]
call fcn.004082fc
call fcn.00634fd4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00407874
jmp 0x637a17
cmp ebx, 3
jne 0x6379bb
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00407fa0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00407fa0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407958
xor eax, eax
push ebp
push 0x6379a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040b544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6379ae
lea eax, [ebp - 0x10]
call fcn.004074b8
ret
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00407fa0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00407fa0
cmp dword [ebp - 0x18], 0
je 0x637a0c
cmp dword [ebp - 0x18], 0x4b0
je 0x637a0c
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.006386c0
jmp 0x637a17
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004083d4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x637a57
lea eax, [ebp - 0x14]
call fcn.00407494
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00407524
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret