Function at 0x487b53
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x59c8b6
call fcn.0056be42
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x487d5a
cmp dword [ebx + 8], esi
je 0x487d5a
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
or dword [ebx + 0x34], 0xffffffff
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
jmp 0x487d48
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x487c1c
cmp eax, esi
je 0x487d6c
cmp eax, 1
je 0x487c17
cmp eax, 2
je 0x487bec
cmp eax, 3
jne 0x487d64
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x40], eax
lea esi, [eax + 1]
mov eax, dword [ebp + 0x10]
call fcn.0042b9f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x40]
mov edx, dword [eax]
mov byte [ecx + edx], 0
mov esi, dword [ebx + 0x40]
call fcn.0042b9f3
xor eax, eax
cmp dword [ebx + 0x40], eax
je 0x487be8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor esi, esi
jmp 0x487c2a
mov eax, dword [ebx + 0x30]
push dword [ebp - 0x1c]
mov dword [ebx + 0x40], eax
push dword [ebp - 0x20]
shr eax, 1
lea esi, [eax + 1]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x20]
call fcn.00453c2b
mov eax, esi
mov ecx, edi
call fcn.004882bc
mov eax, dword [ebp - 0x20]
jmp 0x487be8
lea eax, [ebx + 0x30]
jmp 0x487c23
mov eax, dword [ebp + 8]
or dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x40], 4
cmp byte [ebx + 0x2c], 0
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], esi
jne 0x487d64
lea eax, [ebx + 0x40]
cmp dword [eax], esi
jle 0x487cd1
cmp dword [ebx + 0x104c], esi
je 0x487c94
mov ecx, dword [ebx + 0x104c]
cmp ecx, dword [eax]
jge 0x487c5d
lea eax, [ebx + 0x104c]
mov edi, dword [eax]
cmp edi, esi
jle 0x487cc7
mov eax, dword [ebx + 0x1048]
lea eax, [eax + ebx + 0x48]
push edi
push eax
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x3c]
push eax
call fcn.0055fe20
add dword [ebx + 0x1048], edi
sub dword [ebx + 0x104c], edi
add dword [ebx + 0x44], edi
sub dword [ebx + 0x40], edi
add esp, 0xc
xor esi, esi
jmp 0x487cc7
push dword [ebx + 8]
lea eax, [ebx + 0x48]
push 0x1000
push 1
push eax
call fcn.0055e976
add esp, 0x10
cmp eax, esi
je 0x487d64
cmp eax, 0xffffffff
je 0x487d64
mov dword [ebx + 0x104c], eax
mov dword [ebx + 0x1048], esi
cmp byte [ebx + 0x2c], 0
je 0x487c3a
cmp byte [ebx + 0x2c], 0
jne 0x487d64
mov eax, dword [ebx + 0x44]
add dword [ebx + 4], eax
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x487d10
cmp eax, 1
je 0x487d30
cmp eax, 2
je 0x487cf8
cmp eax, 3
jmp 0x487d2e
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x487d05
mov eax, 0x5c8a04
push eax
push dword [ebp + 0xc]
call fcn.00404560
jmp 0x487d30
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, dword [eax*4 + 0x5d2db4]
je 0x487d28
inc eax
cmp eax, 3
jl 0x487d17
jmp 0x487d2b
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x487d64
inc dword [ebx + 0x38]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
imul ecx, ecx, 5
add ecx, dword [ebx + 0x38]
mov eax, dword [ecx*4 + 0x5d2dc0]
mov dword [ebx + 0x34], eax
cmp byte [ebx + 0x2c], 0
je 0x487b90
lea esi, [ebp - 0x20]
call fcn.0043460f
xor al, al
call fcn.0056bf1a
ret 0x10
mov byte [ebx + 0x2c], 1
xor bl, bl
jmp 0x487d76
inc dword [ebx]
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov bl, 1
lea esi, [ebp - 0x20]
call fcn.0043460f
mov al, bl
jmp 0x487d5c