Function at 0x4a47b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi], 0
mov dword [ebp - 0x98], ebx
jne 0x4a47ea
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, 0x270f
mov eax, 1
cmp dword [esi + eax*4 + 0x11014], 0
jne 0x4a4806
mov edi, eax
mov eax, 0x100
inc eax
cmp eax, 0x100
jl 0x4a47f5
mov dword [ebp - 0x9c], edi
cmp edi, 0x270f
je 0x4a49bb
mov eax, dword [esi + edi*4 + 0x10004]
test eax, eax
je 0x4a483e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + edi*4 + 0x10004], 0
push 0x4e4714
push ebx
call fcn.004cdd4a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a49bb
push ebx
push 1
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.004cdfab
movsx ecx, word [ebp - 0x80]
movsx edx, word [ebp - 0x7c]
movsx eax, word [ebp - 0x7e]
sub edx, ecx
movsx ecx, word [ebp - 0x7a]
sub ecx, eax
inc edx
inc ecx
push ebx
mov dword [esi + edi*4 + 0x11414], edx
mov dword [esi + edi*4 + 0x11814], ecx
call fcn.004cda49
mov edx, dword [ebp - 0x98]
add esp, 0x14
push 0
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
je 0x4a49bb
mov ecx, dword [esi + 0x11008]
push 0x15f900
push ecx
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x88], eax
xor edx, edx
mov eax, 0x80
nop
cmp eax, dword [ebp - 0x88]
jae 0x4a49bb
mov ecx, dword [esi + 0x11008]
mov cl, byte [ecx + eax]
mov bl, cl
and bl, 0xc0
inc eax
cmp bl, 0xc0
jne 0x4a492b
movzx ecx, cl
and ecx, 0x3f
cmp eax, dword [ebp - 0x88]
jae 0x4a49bb
mov ebx, dword [esi + 0x11008]
mov bl, byte [ebx + eax]
inc eax
mov dword [ebp - 0x8c], eax
test ecx, ecx
je 0x4a4935
mov eax, dword [esi + 0x1100c]
mov byte [edx + eax], bl
inc edx
dec ecx
jne 0x4a4916
mov eax, dword [ebp - 0x8c]
jmp 0x4a4935
mov ebx, dword [esi + 0x1100c]
mov byte [edx + ebx], cl
inc edx
mov ecx, dword [esi + edi*4 + 0x11814]
imul ecx, dword [esi + edi*4 + 0x11414]
lea ecx, [ecx + ecx*2]
cmp edx, ecx
jb 0x4a48d0
mov ecx, dword [esi + 0x11010]
mov eax, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ebx, [esi + edi*4 + 0x10004]
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + edi*4 + 0x11814]
push 0
push 1
push ecx
mov ecx, dword [esi + edi*4 + 0x11414]
push ecx
push eax
call edx
test eax, eax
jne 0x4a49a7
push 0
push 0
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0xa4]
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
je 0x4a49d1
mov eax, dword [ebx]
test eax, eax
je 0x4a49bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0x19
jne 0x4a4b05
mov eax, dword [ebp - 0xa4]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + edi*4 + 0x11814], 0
mov dword [ebp - 0x88], 0
jbe 0x4a4b05
add eax, eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x8c], eax
lea esp, [esp]
xor ecx, ecx
cmp dword [esi + edi*4 + 0x11414], ecx
jbe 0x4a4ad2
mov dword [ebp - 0x94], eax
jmp 0x4a4a40
mov edx, dword [esi + edi*4 + 0x11414]
mov edi, dword [esi + 0x1100c]
mov eax, edx
imul eax, dword [ebp - 0x88]
lea ebx, [edi + eax*2]
add ebx, eax
movzx eax, byte [ebx + ecx]
shr al, 3
movzx ebx, al
mov eax, dword [ebp - 0x90]
dec eax
imul eax, edx
add eax, edi
movzx eax, byte [eax + ecx]
shr al, 3
movzx eax, al
shl bx, 5
or bx, ax
mov eax, dword [ebp - 0x90]
imul eax, edx
add eax, edi
mov dl, byte [eax + ecx]
shr dl, 3
movzx eax, dl
mov edx, dword [ebp - 0x94]
shl bx, 5
or bx, ax
movzx eax, bx
test ax, ax
je 0x4a4ab2
or eax, 0x8000
jmp 0x4a4ab4
xor eax, eax
mov edi, dword [ebp - 0x9c]
add dword [ebp - 0x94], 2
inc ecx
mov word [edx], ax
cmp ecx, dword [esi + edi*4 + 0x11414]
jb 0x4a4a40
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xa8]
add dword [ebp - 0x90], 3
inc ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], eax
cmp ecx, dword [esi + edi*4 + 0x11814]
jb 0x4a4a20
mov eax, dword [esi + edi*4 + 0x10004]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push eax
call edx
mov eax, dword [ebp - 0x98]
mov ecx, edi
shl ecx, 8
sub ecx, eax
lea edx, [ecx + esi + 4]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a4b27
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [esi + edi*4 + 0x11014], 1
mov dword [esi + edi*4 + 0x10804], edx
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ccd49
mov esp, ebp
pop ebp
ret 0xc