Function at 0x4a28ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x4a290b
or eax, 0xffffffff
jmp 0x4a2b35
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, ecx
jne 0x4a291b
or eax, 0xffffffff
jmp 0x4a2b34
mov eax, dword [esi]
imul edi, dword [ebp + 0x10]
and eax, 0xf
sub eax, ecx
je 0x4a2a94
dec eax
je 0x4a2a6b
dec eax
je 0x4a2a53
dec eax
jne 0x4a2aae
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x14], ecx
mov ecx, dword [esi + 0xc]
lea edx, [ecx + edi]
cmp edx, eax
jl 0x4a2955
sub eax, ecx
mov edi, eax
test edi, edi
mov dword [ebp + 0xc], edi
je 0x4a29bb
mov ebx, 0x800
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov edi, eax
jl 0x4a29cf
cdq
mov ecx, ebx
idiv ecx
mov ecx, dword [esi + 0x18]
shl eax, 0xb
test ecx, ecx
jne 0x4a29c3
cmp dword [esi + 0x1c], ecx
jne 0x4a2982
mov edi, ebx
jmp 0x4a29d3
push dword [esi + 4]
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add ecx, eax
push 1
push ecx
call fcn.00482ca8
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x4a2a3a
mov dword [ebp + 0x14], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x14], 0
jne 0x4a2aab
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
jmp 0x4a2aa6
mov edi, ebx
sub edi, ecx
cmp edi, dword [ebp + 0xc]
jle 0x4a29cf
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a29f9
cmp dword [esi + 0x1c], 0
je 0x4a29f9
push dword [esi + 4]
push ebx
push 1
push dword [esi + 8]
call fcn.00482ca8
and dword [esi + 0x1c], 0
add esp, 0x10
test eax, eax
jge 0x4a29f9
mov dword [ebp + 0x14], 1
mov eax, ebx
sub eax, dword [esi + 0x18]
cmp edi, eax
jle 0x4a2a04
mov edi, eax
mov eax, dword [esi + 8]
add eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
push edi
push eax
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00483b90
add dword [esi + 0x18], edi
add esp, 0xc
cmp dword [esi + 0x18], ebx
jl 0x4a2a30
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
cmp dword [ebp + 0x14], 0
jne 0x4a29aa
test edi, edi
je 0x4a29aa
add dword [ebp - 4], edi
sub dword [ebp + 0xc], edi
jne 0x4a2961
jmp 0x4a29b8
mov eax, dword [0x4f34ec]
cmp eax, ecx
je 0x4a2aae
push dword [esi + 0x10]
push edi
push ebx
call eax
add dword [esi + 0xc], edi
mov dword [ebp - 4], eax
jmp 0x4a2aae
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jl 0x4a2a7c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.00483b90
add esp, 0xc
add dword [esi + 0xc], edi
mov dword [ebp - 4], edi
jmp 0x4a2aae
push dword [esi + 4]
push edi
push 1
push ebx
call fcn.00482ca8
add esp, 0x10
mov dword [ebp - 4], eax
add dword [esi + 0xc], eax
jmp 0x4a2aae
mov ebx, dword [ebp + 8]
cmp dword [ebp - 8], 2
jne 0x4a2adc
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
xor edi, edi
test eax, eax
jle 0x4a2b27
test byte [esi], 0x10
je 0x4a2ad5
movzx dx, byte [ebx + edi*2 + 1]
lea ecx, [ebx + edi*2]
mov dh, byte [ecx]
mov word [ecx], dx
inc edi
cmp edi, eax
jl 0x4a2ac2
jmp 0x4a2b27
cmp dword [ebp - 8], 4
jne 0x4a2b27
mov eax, dword [ebp - 4]
push 4
cdq
pop ecx
idiv ecx
xor edi, edi
test eax, eax
mov dword [ebp + 0x14], eax
jle 0x4a2b27
test byte [esi], 0x10
je 0x4a2b21
lea edx, [ebx + edi*4]
mov ecx, dword [edx]
mov eax, ecx
mov dword [ebp + 0xc], ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
movzx ecx, byte [ebx + edi*4 + 3]
shl eax, 8
or eax, ecx
xor ecx, ecx
mov ch, byte [ebp + 0xe]
or eax, ecx
mov dword [edx], eax
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x4a2af4
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
setl cl
mov dword [esi + 0x2c], ecx
pop ebx
pop edi
pop esi
leave
ret