Function at 0x4b46d4
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 0x4b46dd
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 0x4b49be
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 0x80000000
mov eax, esi
call fcn.00660d68
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b4754
mov eax, 0x4b49d0
mov edx, esi
call fcn.00629744
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [eax + 0xd], 1
jmp 0x4b498b
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 0x4b4820
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0065d0b8
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.0065d088
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, 0x4b49e8
mov ecx, 2
call fcn.0065d81c
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 0x4b47c8
push ebp
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004b428c
pop ecx
mov eax, esi
mov edx, dword [0x674bd8]
call fcn.00403bd0
jne 0x4b4871
push ebp
mov eax, dword [0x674bd4]
mov edx, dword [eax + 8]
mov eax, dword [0x674bd4]
mov eax, dword [eax + 4]
call fcn.004b4494
pop ecx
mov ebx, eax
mov eax, 0x674bd8
call fcn.00403880
mov eax, dword [0x674bd4]
call fcn.004028c0
jmp 0x4b493c
mov bl, 1
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
cmp byte [0x66b844], 0
je 0x4b48c5
call fcn.00501d74
lea ecx, [ebp - 0x4084]
mov edx, dword [ebp - 0x14]
call fcn.004febb0
mov edx, dword [ebp - 0x4084]
lea ecx, [ebp - 0x4080]
mov eax, 0x4b49f4
call fcn.0065d910
mov eax, dword [ebp - 0x4080]
push eax
call fcn.00501d74
mov edx, dword [ebp - 0x28]
pop ecx
call fcn.004fec24
xor esi, esi
cmp esi, dword [ebp - 0x28]
jge 0x4b493c
mov eax, dword [ebp - 0x28]
sub eax, esi
cmp eax, 0x4000
jle 0x4b48e1
mov dword [ebp - 0x2c], 0x4000
jmp 0x4b48e4
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 0x4b4933
push ebp
lea eax, [ebp - 0x4064]
mov edx, dword [ebp - 0x30]
call fcn.004b4494
pop ecx
test al, al
je 0x4b4933
add esi, dword [ebp - 0x30]
cmp byte [0x66b844], 0
je 0x4b4937
call fcn.00501d74
mov eax, dword [eax + 0x268]
mov edx, esi
call fcn.004f9e50
jmp 0x4b4937
xor ebx, ebx
jmp 0x4b493c
cmp esi, dword [ebp - 0x28]
jl 0x4b48cc
push ebp
call fcn.004b456c
pop ecx
and bl, al
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x4b495c
test bl, bl
je 0x4b495c
xor eax, eax
jmp 0x4b495e
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx + 0xd], al
test bl, bl
je 0x4b4976
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 [0x66b844], 0
je 0x4b498b
call fcn.00501d74
mov edx, ebx
call fcn.004fec6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b49c5
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