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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4b9950
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0x14]
call fcn.004b8914
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b9934
xor edx, edx
push ebp
push 0x4b992d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.00402b48
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4b990f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4b98f9
cmp ebx, dword [ebp - 0x10]
jne 0x4b98f9
lea eax, [ebp - 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b95f0
test eax, eax
je 0x4b97a1
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x4b967c]
call fcn.00406070
add esp, 4
mov dword [ebp - 0x1c], 0x7fffffff
mov eax, dword [ebp - 0x18]
call fcn.00405e9c
mov esi, eax
test esi, esi
jl 0x4b97a8
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + eax*2 + 0x12]
mov edx, dword [ebp - 0x18]
mov dword [edx + ebx*4], eax
cmp eax, dword [ebp - 0x1c]
jge 0x4b979b
mov dword [ebp - 0x1c], eax
inc ebx
dec esi
jne 0x4b977e
jmp 0x4b97a8
mov dword [ebp - 0x1c], 0x32
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b9964
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
imul eax, eax, 0xe
add eax, 6
call fcn.00402b48
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4b98f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, 6
call fcn.00402e04
mov eax, dword [ebp - 8]
movzx esi, word [eax + 4]
dec esi
test esi, esi
jl 0x4b98b3
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
lea edx, [edx + eax*2 + 6]
mov edi, ebx
add edi, edi
mov eax, dword [ebp - 8]
lea eax, [eax + edi*8 + 6]
mov ecx, 0xe
call fcn.00402e04
mov eax, dword [ebp - 0x18]
call fcn.00405e94
cmp ebx, eax
jge 0x4b9847
mov eax, dword [ebp - 0x18]
mov ax, word [eax + ebx*4]
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x14]
mov word [ecx + edx*2 + 0x12], ax
jmp 0x4b9860
push ebp
lea eax, [ebp - 0x1c]
call fcn.004b9618
pop ecx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x14]
mov word [ecx + edx*2 + 0x12], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*8 + 0xe]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*8 + 0x12]
add eax, dword [ebp - 8]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + eax*2 + 0x12]
push eax
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.004b93c4
test eax, eax
jne 0x4b98ab
call fcn.004046f8
call fcn.004046f8
call fcn.004046f8
jmp 0x4b9934
inc ebx
dec esi
jne 0x4b9800
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
imul eax, eax, 0xe
add eax, 6
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0xe
mov eax, dword [ebp + 8]
push eax
call fcn.004b93c4
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b98f9
mov eax, dword [ebp - 0x14]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9916
mov eax, dword [ebp - 8]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9957
lea eax, [ebp - 0x18]
mov edx, dword [0x4b967c]
call fcn.0040607c
ret