Function at 0x4b31fc
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 0x4b3205
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 0x4b34dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 0x80000000
mov eax, esi
call fcn.006585a4
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b327c
mov eax, 0x4b34f0
mov edx, esi
call fcn.0061fa50
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [eax + 0xd], 1
jmp 0x4b34aa
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 0x4b3348
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.006549c4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00654994
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, 0x4b3508
mov ecx, 2
call fcn.00655128
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 0x4b32f0
push ebp
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004b2db4
pop ecx
mov eax, esi
mov edx, dword [0x66bd14]
call fcn.00403bd0
jne 0x4b3399
push ebp
mov eax, dword [0x66bd10]
mov edx, dword [eax + 8]
mov eax, dword [0x66bd10]
mov eax, dword [eax + 4]
call fcn.004b2fbc
pop ecx
mov ebx, eax
mov eax, 0x66bd14
call fcn.00403880
mov eax, dword [0x66bd10]
call fcn.004028c0
jmp 0x4b345b
mov bl, 1
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
cmp byte [0x662ef4], 0
je 0x4b33e8
lea edx, [ebp - 0x4084]
mov eax, dword [ebp - 0x14]
call fcn.004fe41c
mov edx, dword [ebp - 0x4084]
lea ecx, [ebp - 0x4080]
mov eax, 0x4b3514
call fcn.0065521c
mov eax, dword [ebp - 0x4080]
push eax
call fcn.004fe288
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.004fb54c
xor esi, esi
cmp esi, dword [ebp - 0x28]
jge 0x4b345b
mov eax, dword [ebp - 0x28]
sub eax, esi
cmp eax, 0x4000
jle 0x4b3404
mov dword [ebp - 0x2c], 0x4000
jmp 0x4b3407
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 0x4b3452
push ebp
lea eax, [ebp - 0x4064]
mov edx, dword [ebp - 0x30]
call fcn.004b2fbc
pop ecx
test al, al
je 0x4b3452
add esi, dword [ebp - 0x30]
cmp byte [0x662ef4], 0
je 0x4b3456
mov eax, dword [0x6698c0]
mov eax, dword [eax]
mov edx, esi
call fcn.004f64d8
jmp 0x4b3456
xor ebx, ebx
jmp 0x4b345b
cmp esi, dword [ebp - 0x28]
jl 0x4b33ef
push ebp
call fcn.004b3094
pop ecx
and bl, al
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x4b347b
test bl, bl
je 0x4b347b
xor eax, eax
jmp 0x4b347d
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx + 0xd], al
test bl, bl
je 0x4b3495
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 [0x662ef4], 0
je 0x4b34aa
call fcn.004fe288
mov edx, ebx
call fcn.004fb5a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b34e4
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