Function at 0x4bafd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x4bb010
lea eax, [ecx - 0x66]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
add edx, dword [esi + 0xc]
cmp byte [ecx], 0
je 0x4bb038
cmp byte [ecx + 1], 0
je 0x4bb049
mov eax, dword [ecx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4bb03b
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
call fcn.004baad0
test eax, eax
je 0x4bb04e
or edi, 0xffffffff
jmp 0x4bb05d
cmp dword [ebp - 0x10], 0x2014b50
mov eax, 0xffffff99
cmovne edi, eax
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x4bb093
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb093
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], eax
jmp 0x4bb09d
mov dword [ebp - 0x74], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb0d3
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb0d3
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
jmp 0x4bb0dd
mov dword [ebp - 0x70], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb113
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb113
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
jmp 0x4bb11d
mov dword [ebp - 0x6c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb153
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb153
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
jmp 0x4bb15d
mov dword [ebp - 0x68], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x64]
call fcn.004baad0
mov edx, dword [ebp - 0x64]
or ecx, 0xffffffff
test eax, eax
cmovne edi, ecx
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
and eax, 0x1f
mov dword [ebp - 0x30], eax
mov eax, ecx
shr eax, 5
and eax, 0xf
shr ecx, 9
dec eax
add ecx, 0x7bc
mov dword [ebp - 0x2c], eax
mov eax, edx
shr eax, 0xb
and eax, 0x1f
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, edx
and edx, 0x1f
shr eax, 5
add edx, edx
and eax, 0x3f
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x38], eax
call fcn.004baad0
test eax, eax
lea edx, [ebp - 0x5c]
mov ecx, 0xffffffff
cmovne edi, ecx
mov ecx, dword [esi]
call fcn.004baad0
mov ecx, dword [esi]
lea edx, [ebp - 0x58]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.004baad0
test eax, eax
lea edx, [ebp - 0x10]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb227
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb227
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
jmp 0x4bb231
mov dword [ebp - 0x54], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb267
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb267
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4bb271
mov dword [ebp - 0x50], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb2a7
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb2a7
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
jmp 0x4bb2b1
mov dword [ebp - 0x4c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb2e7
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb2e7
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
jmp 0x4bb2f1
mov dword [ebp - 0x48], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004baa20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4bb327
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004baa20
test eax, eax
jne 0x4bb327
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
jmp 0x4bb331
mov dword [ebp - 0x44], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x40]
call fcn.004baad0
mov ecx, dword [esi]
lea edx, [ebp - 0x14]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.004baad0
test eax, eax
je 0x4bb367
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
mov eax, edi
test edi, edi
jne 0x4bb40b
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4bb40f
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp + 0x10]
cmp edx, eax
jae 0x4bb391
mov byte [ecx + edx], 0
mov ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x4bb396
mov ecx, eax
mov dword [ebp - 0x10], eax
mov eax, edi
test edx, edx
je 0x4bb40b
cmp dword [ebp + 0x10], 0
jbe 0x4bb40b
mov ebx, dword [esi]
cmp byte [ebx], 0
je 0x4bb3c9
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bb3c4
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0xc]
jmp 0x4bb3f4
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x18]
add eax, edx
mov ecx, dword [ebx + 0x14]
sub esi, edx
cmp eax, dword [ebx + 0x18]
cmovbe esi, dword [ebp - 0x10]
add ecx, edx
push esi
push ecx
push dword [ebp - 0x18]
call fcn.004d6e20
add esp, 0xc
mov eax, esi
add dword [ebx + 0x1c], esi
xor edx, edx
mov ebx, dword [ebp - 0x1c]
div dword [ebp - 0x10]
mov ecx, eax
mov eax, edi
cmp ecx, 1
mov ecx, 0xffffffff
cmovne eax, ecx
test eax, eax
jne 0x4bb446
test ebx, ebx
je 0x4bb43a
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebx + 0x40], xmm0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4bb446
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret