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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x437e0d
mov eax, dword [ebp - 4]
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x4084], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
call fcn.00403e28
xor eax, eax
push ebp
push 0x4380e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 0x80000000
mov eax, esi
call fcn.0065c53c
mov edi, eax
cmp edi, 0xffffffff
jne 0x437e86
mov eax, dword [0x671bb0]
mov eax, dword [eax]
mov edx, esi
call fcn.006235b8
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [eax + 0xd], 1
jmp 0x4380b6
lea eax, [ebp - 0x64]
push eax
push edi
call sub.kernel32.dll_GetFileInformationByHandle
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToDosDateTime
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
je 0x437f52
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.00658934
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00658904
mov eax, dword [ebp - 0x20]
call fcn.00403ab8
push eax
mov eax, dword [ebp - 0x24]
call fcn.00403ab8
pop edx
sub edx, eax
lea eax, [ebp - 0x20]
call fcn.00403de4
mov ebx, 1
inc ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x407c], eax
mov byte [ebp - 0x4078], 0xf
mov dword [ebp - 0x4074], ebx
mov byte [ebp - 0x4070], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x406c], eax
mov byte [ebp - 0x4068], 0xf
lea edx, [ebp - 0x407c]
mov eax, 0x4380fc
mov ecx, 2
call fcn.00659098
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
jne 0x437efa
push ebp
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004379bc
pop ecx
mov eax, esi
mov edx, dword [0x675558]
call fcn.00403bd0
jne 0x437fa3
push ebp
mov eax, dword [0x675554]
mov edx, dword [eax + 8]
mov eax, dword [0x675554]
mov eax, dword [eax + 4]
call fcn.00437bc4
pop ecx
mov ebx, eax
mov eax, 0x675558
call fcn.00403880
mov eax, dword [0x675554]
call fcn.004028c0
jmp 0x438067
mov bl, 1
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
cmp byte [0x66220c], 0
je 0x437ff4
lea edx, [ebp - 0x4084]
mov eax, dword [ebp - 0x14]
call fcn.00509558
mov edx, dword [ebp - 0x4084]
lea ecx, [ebp - 0x4080]
mov eax, dword [0x671b5c]
mov eax, dword [eax]
call fcn.0065918c
mov eax, dword [ebp - 0x4080]
push eax
call fcn.005093e8
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.0050687c
xor esi, esi
cmp esi, dword [ebp - 0x28]
jge 0x438067
mov eax, dword [ebp - 0x28]
sub eax, esi
cmp eax, 0x4000
jle 0x438010
mov dword [ebp - 0x2c], 0x4000
jmp 0x438013
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4064]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x43805e
push ebp
lea eax, [ebp - 0x4064]
mov edx, dword [ebp - 0x30]
call fcn.00437bc4
pop ecx
test al, al
je 0x43805e
add esi, dword [ebp - 0x30]
cmp byte [0x66220c], 0
je 0x438062
mov eax, dword [0x672c9c]
mov eax, dword [eax]
mov edx, esi
call fcn.00501fb8
jmp 0x438062
xor ebx, ebx
jmp 0x438067
cmp esi, dword [ebp - 0x28]
jl 0x437ffb
push ebp
call fcn.00437c9c
pop ecx
and bl, al
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x438087
test bl, bl
je 0x438087
xor eax, eax
jmp 0x438089
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx + 0xd], al
test bl, bl
je 0x4380a1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x30]
cmp byte [0x66220c], 0
je 0x4380b6
call fcn.005093e8
mov edx, ebx
call fcn.005068d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4380f0
lea eax, [ebp - 0x4084]
mov edx, 2
call fcn.00403298
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x14]
call fcn.00403880
ret