Function at 0x4b854e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44c
mov ebx, eax
mov dword [ebp - 0x444], edx
call fcn.0049b412
mov dword [ebp - 0x438], eax
mov edx, 0x5eba8d
mov eax, ebx
call fcn.00427968
mov dword [ebp - 0x420], eax
mov ebx, 0xfffffff4
test eax, eax
je 0x4b8804
mov dword [esp], 2
xor edx, edx
xor ecx, ecx
call fcn.00425b5e
mov eax, dword [ebp - 0x420]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], edx
xor eax, eax
mov dword [esp], eax
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x420]
call fcn.00425b5e
call fcn.00428d11
mov dword [ebp - 0x434], eax
xor eax, eax
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x438], 0
je 0x4b85fa
xor edx, edx
mov eax, dword [ebp - 0x420]
call fcn.0042600f
mov dword [ebp - 0x41c], eax
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x440]
cmp dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x42c]
sbb eax, dword [ebp - 0x43c]
jae 0x4b87c5
cmp dword [ebp - 0x438], 0
je 0x4b8759
xor ebx, ebx
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov edx, 0x20
mov eax, dword [ebp - 0x41c]
call fcn.004273b3
mov ebx, eax
mov dword [ebp - 0x428], eax
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [esp], 4
xor edi, edi
mov dword [esp + 4], edi
mov edx, 0x20
mov eax, dword [ebp - 0x41c]
call fcn.004273b3
mov esi, eax
test ebx, ebx
jne 0x4b86a5
mov eax, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
sub eax, dword [ebp - 0x430]
sbb edx, dword [ebp - 0x42c]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], edx
jmp 0x4b86d3
dec ebx
jne 0x4b86d3
mov dword [esp], 8
xor edx, edx
mov dword [esp + 4], edx
mov edx, 0x40
mov eax, dword [ebp - 0x41c]
call fcn.004273b3
mov dword [ebp - 0x428], eax
xor ecx, ecx
mov dword [ebp - 0x424], ecx
xor ebx, ebx
cmp esi, 0x6d647269
jne 0x4b86f9
mov edx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x41c]
call fcn.00427443
jmp 0x4b87a8
mov eax, ebx
xor edx, edx
mov ecx, dword [ebp - 0x428]
cmp ebx, ecx
mov edi, edx
sbb edi, dword [ebp - 0x424]
jae 0x4b87a8
mov esi, dword [ebp - 0x428]
mov edi, dword [ebp - 0x424]
sub esi, eax
sbb edi, edx
mov eax, 0x400
xor edx, edx
cmp eax, esi
sbb edx, edi
cmovb esi, eax
lea edi, [ebp - 0x418]
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 0x41c]
call fcn.0042755d
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 0x434]
call fcn.00428d64
add ebx, esi
jmp 0x4b86f9
mov eax, dword [ebp - 0x420]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea esi, [ebp - 0x418]
mov dword [esp], esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ebx, eax
test eax, eax
js 0x4b87c9
mov ecx, eax
mov edx, esi
mov eax, dword [ebp - 0x434]
call fcn.00428d64
add dword [ebp - 0x430], ebx
adc dword [ebp - 0x42c], 0
jmp 0x4b8608
mov ecx, dword [ebp - 0x428]
mov ebx, dword [ebp - 0x424]
add dword [ebp - 0x430], ecx
adc dword [ebp - 0x42c], ebx
jmp 0x4b8608
xor ebx, ebx
jmp 0x4b87ce
mov ebx, 0xfffffffd
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x64], 0
jne 0x4b87e5
mov edx, dword [ebp - 0x444]
call fcn.00428dc9
cmp dword [ebp - 0x41c], 0
je 0x4b87f9
mov eax, dword [ebp - 0x41c]
call fcn.004260fd
mov eax, dword [ebp - 0x420]
call fcn.00425b84
mov eax, ebx
add esp, 0x44c
pop ebx
pop esi
pop edi
pop ebp
ret