Function at 0x488990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
cmp dword [esp + 0x28], 0
push ebp
push esi
push edi
jne 0x4889ab
mov eax, 4
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
cmp byte [ebx + 0x54], 0
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
jne 0x4889ca
sub eax, ecx
sub eax, 1
mov ecx, eax
mov eax, dword [esp + 0x38]
test eax, eax
mov edx, dword [esp + 0x3c]
je 0x4889e2
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x4889f6
test edx, edx
je 0x4889f4
mov eax, dword [edx + 4]
imul eax, ecx
mov ecx, dword [edx + 0x10]
lea eax, [ecx + eax*4]
jmp 0x4889f6
xor eax, eax
cmp byte [ebx + 0x55], 0
mov dword [esp + 0x1c], eax
jne 0x488f4e
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488a46
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488a24
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488a2d
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488a69
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x19]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488a67
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x19]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488aba
cmp dword [esi + 4], eax
jne 0x488a69
cmp dword [esi + 0xc], eax
je 0x488aba
mov byte [ebx + 0x55], 1
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488bd1
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488a91
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488a9e
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488bf4
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x1b]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488bf2
mov al, byte [esp + 0x11]
test al, al
mov byte [esp + 0xe], al
je 0x488a6d
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488b08
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488ae6
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488aef
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488b2b
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x1a]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488b29
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1a]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488b33
cmp dword [esi + 4], eax
jne 0x488b2b
cmp dword [esi + 0xc], eax
je 0x488b33
mov byte [ebx + 0x55], 1
xor cl, cl
jmp 0x488b37
mov cl, byte [esp + 0x12]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [esp + 0xf], cl
mov dword [esp + 0x24], 0
mov byte [esp + 0x10], cl
lea eax, [edi + esi*4 + 2]
add byte [esp + 0xe], 0xff
cmp esi, dword [ebx]
jge 0x488f44
cmp dword [ebx + 0xc], 4
jne 0x488b7d
test byte [esp + 0x24], 1
mov cl, byte [esp + 0xf]
je 0x488b76
and cl, 0xf
jmp 0x488b79
shr cl, 4
mov byte [esp + 0x10], cl
test esi, esi
jl 0x488bb2
test edi, edi
je 0x488bb2
mov edx, dword [ebx + 0x28]
movzx ecx, cl
lea ecx, [ecx + ecx*2]
movzx edx, byte [edx + ecx + 2]
mov byte [eax - 2], dl
mov edx, dword [ebx + 0x28]
movzx edx, byte [edx + ecx + 1]
mov byte [eax - 1], dl
mov edx, dword [ebx + 0x28]
movzx ecx, byte [ecx + edx]
mov byte [eax], cl
mov cl, byte [esp + 0x10]
mov byte [eax + 1], 0xff
mov esi, dword [esp + 0x18]
add dword [esp + 0x24], 1
add esi, 1
add eax, 4
cmp byte [esp + 0xe], 0
mov dword [esp + 0x18], esi
jne 0x488b53
jmp 0x488f44
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488bfa
cmp dword [esi + 4], eax
jne 0x488bf4
cmp dword [esi + 0xc], eax
je 0x488bfa
mov byte [ebx + 0x55], 1
jmp 0x488c0e
mov al, byte [esp + 0x13]
cmp al, 1
mov byte [esp + 0xe], al
je 0x488f5c
test al, al
jne 0x488c25
mov ebp, dword [esp + 0x20]
mov edx, dword [ebx]
mov dword [esp + 0x18], 0
sub ebp, 1
push edx
jmp 0x488d43
cmp al, 2
jne 0x488dad
cmp byte [ebx + 0x55], 0
jne 0x488f4e
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488c79
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488c57
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488c60
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488c9c
add ecx, edx
push edi
push ecx
lea ecx, [esp + 0x1c]
push ecx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488c9a
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488ca7
cmp dword [esi + 4], eax
jne 0x488c9c
cmp dword [esi + 0xc], eax
je 0x488ca7
mov byte [ebx + 0x55], 1
mov byte [esp + 0x10], 0
jmp 0x488caf
mov cl, byte [esp + 0x14]
mov byte [esp + 0x10], cl
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488cf1
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488ccf
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488cd8
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488d14
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x1d]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488d12
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1d]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488d1c
cmp dword [esi + 4], eax
jne 0x488d14
cmp dword [esi + 0xc], eax
je 0x488d1c
mov byte [ebx + 0x55], 1
xor cl, cl
jmp 0x488d20
mov cl, byte [esp + 0x15]
movzx eax, byte [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [ebx]
cmp edx, eax
mov dword [esp + 0x18], edx
jle 0x488d39
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x20]
movzx ecx, cl
sub ebp, ecx
push eax
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x24], ebp
call fcn.00477ef0
test ebp, ebp
jl 0x488f6c
cmp byte [ebx + 0x54], 0
mov eax, ebp
jne 0x488d6c
mov eax, dword [ebx + 4]
sub eax, ebp
sub eax, 1
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x488d85
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x1c], eax
jmp 0x488f44
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x488da2
mov edx, dword [ecx + 4]
imul edx, eax
mov eax, dword [ecx + 0x10]
lea eax, [eax + edx*4]
mov dword [esp + 0x1c], eax
jmp 0x488f44
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x488f44
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
lea edi, [edx + eax*4 + 2]
xor cl, cl
mov dword [esp + 0x28], edi
add byte [esp + 0xe], 0xff
cmp byte [ebx + 0x55], 0
jne 0x488ece
cmp dword [ebx + 0xc], 8
je 0x488de5
test byte [esp + 0x24], 1
jne 0x488e5f
mov ebp, dword [ebx + 8]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x488e2b
mov eax, dword [ebp + 0x1c]
mov esi, 1
cmp eax, esi
jb 0x488e09
mov ecx, dword [ebp + 0x18]
lea edi, [ecx + 1]
cmp edi, eax
mov edi, dword [esp + 0x28]
jbe 0x488e12
mov ecx, dword [ebp + 0x18]
sub eax, ecx
mov esi, eax
je 0x488e4e
add ecx, edx
push esi
push ecx
lea ecx, [esp + 0x1e]
push ecx
call fcn.0060d1b0
add dword [ebp + 0x18], esi
add esp, 0xc
cmp esi, 1
jmp 0x488e4c
mov edx, dword [ebp + 4]
push edx
push 1
lea eax, [esp + 0x1e]
push 1
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488e56
cmp dword [ebp + 4], eax
jne 0x488e4e
cmp dword [ebp + 0xc], eax
je 0x488e56
mov byte [ebx + 0x55], 1
xor cl, cl
jmp 0x488e5a
mov cl, byte [esp + 0x16]
add dword [esp + 0x2c], 1
cmp dword [ebx + 0xc], 4
mov al, cl
jne 0x488e75
test byte [esp + 0x24], 1
je 0x488e72
and al, 0xf
jmp 0x488e75
shr al, 4
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx]
jge 0x488ebe
test esi, esi
jl 0x488eb0
cmp dword [esp + 0x1c], 0
je 0x488eb0
mov edx, dword [ebx + 0x28]
movzx eax, al
lea eax, [eax + eax*2]
movzx edx, byte [edx + eax + 2]
mov byte [edi - 2], dl
mov edx, dword [ebx + 0x28]
movzx edx, byte [edx + eax + 1]
mov byte [edi - 1], dl
mov edx, dword [ebx + 0x28]
mov al, byte [eax + edx]
mov byte [edi], al
mov byte [edi + 1], 0xff
add esi, 1
add edi, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edi
add dword [esp + 0x24], 1
cmp byte [esp + 0xe], 0
jne 0x488dc9
test byte [esp + 0x2c], 1
je 0x488f44
cmp byte [ebx + 0x55], 0
jne 0x488f4e
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x488f1d
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x488efb
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x488f04
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x488f40
add ecx, edx
push edi
push ecx
lea ecx, [esp + 0x1f]
push ecx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x488f3e
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x488f44
cmp dword [esi + 4], eax
jne 0x488f40
cmp dword [esi + 0xc], eax
je 0x488f44
mov byte [ebx + 0x55], 1
cmp byte [ebx + 0x55], 0
je 0x488a04
mov eax, 3
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov ecx, dword [ebx]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push ecx
call fcn.00477ef0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret 0xc