Function at 0x488f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
jne 0x488fa1
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [ebp + 4]
sub ecx, 1
mov byte [esp + 0x28], 0
mov dword [esp + 0x1c], ecx
js 0x489467
cmp byte [ebp + 0x54], 0
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, ecx
jne 0x488fce
mov eax, dword [ebp + 4]
sub eax, ecx
sub eax, 1
test esi, esi
je 0x488fe4
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ebx, eax
mov dword [esp + 0x14], eax
jmp 0x488ff8
test edi, edi
je 0x488f92
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x10]
imul ecx, eax
lea ebx, [edx + ecx*4]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x488f92
cmp byte [ebp + 0x55], 0
mov dword [esp + 0x20], ebx
je 0x489035
test esi, esi
je 0x489015
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x489020
test edi, edi
je 0x48901e
mov eax, dword [edi + 8]
jmp 0x489020
xor eax, eax
add eax, eax
add eax, eax
push eax
push 0
push ebx
call fcn.0060c930
add esp, 0xc
jmp 0x4893b9
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x20
je 0x489291
cmp ecx, 0x18
je 0x489291
cmp ecx, 0x10
je 0x489291
cmp ecx, 8
jg 0x4893b9
xor ecx, ecx
cmp dword [ebp], ecx
mov dword [esp + 0x18], ecx
jle 0x4893b9
jmp 0x489070
mov eax, dword [ebp + 0xc]
cmp eax, 8
jne 0x4890f3
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
test edx, edx
je 0x4890bc
lea esi, [eax - 7]
mov eax, dword [edi + 0x1c]
cmp eax, esi
jb 0x48909a
mov ecx, dword [edi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
mov ebx, dword [esp + 0x14]
jbe 0x4890a3
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov esi, eax
je 0x4890df
add ecx, edx
push esi
push ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.0060d1b0
add dword [edi + 0x18], esi
add esp, 0xc
cmp esi, 1
jmp 0x4890dd
mov edx, dword [edi + 4]
push edx
push 1
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4890ea
cmp dword [edi + 4], eax
jne 0x4890df
cmp dword [edi + 0xc], eax
je 0x4890ea
mov byte [ebp + 0x55], 1
xor al, al
jmp 0x489248
mov al, byte [esp + 0x10]
jmp 0x489248
cmp eax, 4
jne 0x4891aa
and ecx, 0x80000001
jns 0x489109
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x48919f
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
test edx, edx
je 0x489155
mov eax, dword [edi + 0x1c]
mov esi, 1
cmp eax, esi
jb 0x489133
mov ecx, dword [edi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
mov ebx, dword [esp + 0x14]
jbe 0x48913c
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov esi, eax
je 0x489178
add ecx, edx
push esi
push ecx
lea ecx, [esp + 0x19]
push ecx
call fcn.0060d1b0
add dword [edi + 0x18], esi
add esp, 0xc
cmp esi, 1
jmp 0x489176
mov edx, dword [edi + 4]
push edx
push 1
lea eax, [esp + 0x19]
push 1
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x48918d
cmp dword [edi + 4], eax
jne 0x489178
cmp dword [edi + 0xc], eax
je 0x48918d
mov byte [esp + 0x28], 0
mov al, byte [esp + 0x28]
mov byte [ebp + 0x55], 1
shr al, 4
jmp 0x489248
mov cl, byte [esp + 0x11]
mov al, cl
mov byte [esp + 0x28], cl
shr al, 4
jmp 0x489248
mov al, byte [esp + 0x28]
and al, 0xf
jmp 0x489248
and ecx, 0x80000007
jns 0x4891b7
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x489235
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
test edx, edx
je 0x4891ff
mov eax, dword [edi + 0x1c]
mov esi, 1
cmp eax, esi
jb 0x4891dd
mov ecx, dword [edi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
mov ebx, dword [esp + 0x14]
jbe 0x4891e6
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov esi, eax
je 0x489222
add ecx, edx
push esi
push ecx
lea edx, [esp + 0x1a]
push edx
call fcn.0060d1b0
add dword [edi + 0x18], esi
add esp, 0xc
cmp esi, 1
jmp 0x489220
mov eax, dword [edi + 4]
push eax
push 1
lea ecx, [esp + 0x1a]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x48922d
cmp dword [edi + 4], eax
jne 0x489222
cmp dword [edi + 0xc], eax
je 0x48922d
mov byte [ebp + 0x55], 1
mov byte [esp + 0x28], 0
jmp 0x489235
mov dl, byte [esp + 0x12]
mov byte [esp + 0x28], dl
movzx eax, byte [esp + 0x18]
and al, 7
mov cl, 7
sub cl, al
mov al, byte [esp + 0x28]
shr al, cl
and al, 1
mov ecx, dword [ebp + 0x28]
movzx eax, al
lea eax, [eax + eax*2]
movzx edx, byte [ecx + eax + 2]
mov byte [ebx], dl
mov ecx, dword [ebp + 0x28]
movzx edx, byte [ecx + eax + 1]
mov byte [ebx + 1], dl
mov ecx, dword [ebp + 0x28]
movzx edx, byte [eax + ecx]
mov ecx, dword [esp + 0x18]
mov byte [ebx + 2], dl
mov byte [ebx + 3], 0xff
add ecx, 1
add ebx, 4
cmp ecx, dword [ebp]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jl 0x489070
jmp 0x4893b9
mov eax, dword [ebp]
mov edi, dword [ebp + 8]
imul eax, ecx
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
cmp dword [edi + 0x14], 0
je 0x4892b4
mov eax, esi
call fcn.00410220
jmp 0x4892cc
mov edi, dword [edi + 4]
test edi, edi
je 0x4892ca
push edi
push esi
push 1
push ebx
call fcn.0060860a
add esp, 0x10
jmp 0x4892cc
xor eax, eax
cmp eax, esi
je 0x4892e4
sub esi, eax
push esi
add eax, ebx
push 0
push eax
mov byte [ebp + 0x55], 1
call fcn.0060c930
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x20
jne 0x48934f
cmp dword [ebp + 0x20], 3
jne 0x4893b9
mov edi, dword [ebp]
sub edi, 1
js 0x4893b9
lea eax, [ebx + edi*4 + 2]
mov esi, dword [eax - 2]
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x44]
and edx, esi
shr edx, cl
mov ecx, dword [ebp + 0x50]
sub edi, 1
sub eax, 4
shl dl, cl
mov byte [eax + 2], dl
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x40]
and edx, esi
shr edx, cl
mov ecx, dword [ebp + 0x4c]
shl dl, cl
mov byte [eax + 3], dl
mov ecx, dword [ebp + 0x3c]
mov edx, esi
and edx, dword [ebp + 0x30]
shr edx, cl
mov ecx, dword [ebp + 0x48]
mov byte [eax + 5], 0xff
shl dl, cl
test edi, edi
mov byte [eax + 4], dl
jge 0x489306
jmp 0x4893b9
cmp eax, 0x18
jne 0x489360
mov edx, dword [ebp]
mov ecx, ebx
call fcn.004c0020
jmp 0x4893b9
cmp eax, 0x10
jne 0x4893b9
mov esi, dword [ebp]
sub esi, 1
js 0x4893b9
lea eax, [ebx + esi*4 + 2]
movzx edi, word [ebx + esi*2]
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x44]
and edx, edi
shr edx, cl
mov ecx, dword [ebp + 0x50]
sub esi, 1
sub eax, 4
shl dl, cl
mov byte [eax + 2], dl
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x40]
and edx, edi
shr edx, cl
mov ecx, dword [ebp + 0x4c]
shl dl, cl
mov byte [eax + 3], dl
mov ecx, dword [ebp + 0x3c]
mov edx, edi
and edx, dword [ebp + 0x30]
shr edx, cl
mov ecx, dword [ebp + 0x48]
mov byte [eax + 5], 0xff
shl dl, cl
test esi, esi
mov byte [eax + 4], dl
jge 0x489371
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x489446
cmp byte [ebp + 0x55], 0
jne 0x489446
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
test edx, edx
je 0x48940f
mov eax, dword [edi + 0x1c]
mov esi, 1
cmp eax, esi
jb 0x4893ed
mov ecx, dword [edi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
jbe 0x4893f6
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov esi, eax
je 0x489432
push esi
add ecx, edx
push ecx
lea eax, [esp + 0x1b]
push eax
call fcn.0060d1b0
add dword [edi + 0x18], esi
add esp, 0xc
cmp esi, 1
jmp 0x489430
mov ecx, dword [edi + 4]
push ecx
push 1
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x489436
cmp dword [edi + 4], eax
jne 0x489432
cmp dword [edi + 0xc], eax
je 0x489436
mov byte [ebp + 0x55], 1
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
jl 0x4893c7
mov eax, dword [ebp]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
push eax
call fcn.00477ef0
sub dword [esp + 0x1c], 1
js 0x489467
mov ecx, dword [esp + 0x1c]
jmp 0x488fb6
mov al, byte [ebp + 0x55]
neg al
pop edi
pop esi
pop ebp
pop ebx
sbb eax, eax
and eax, 3
add esp, 0x14
ret 0x10