Function at 0x487bea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [eax]
push 1
mov eax, dword [ebp - 8]
push dword [eax + 8]
push dword [ebp + 8]
call fcn.00469312
add esp, 0x10
cmp eax, 1
jne 0x487c19
mov dword [ebp - 0x1c], 1
jmp 0x487c1d
and dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 8]
cdq
idiv dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
movzx eax, byte [ebp - 1]
test eax, eax
je 0x487e3b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push 0x18
mov eax, dword [ebp - 8]
add eax, 0x38
push ecx
mov ecx, esp
push eax
call fcn.00415bbe
push ecx
mov ecx, esp
push 0x4be054
call fcn.004017f0
mov eax, dword [ebp - 8]
add eax, 0x20
push eax
call fcn.00489c79
add esp, 0x18
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 1
jne 0x487cb2
mov dword [ebp - 0x20], 1
jmp 0x487cb6
and dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 2], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x30], 0
je 0x487d71
movzx eax, byte [ebp - 2]
test eax, eax
je 0x487cfa
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
test eax, eax
jne 0x487cee
mov dword [ebp - 0x24], 1
jmp 0x487cf2
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x487d17
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test eax, eax
jne 0x487d0d
mov dword [ebp - 0x28], 1
jmp 0x487d11
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x487d60
cmp dword [ebp - 0xc], 0
je 0x487d4d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x487d4d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
imul ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
call fcn.00457760
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
jmp 0x487cbc
cmp dword [ebp - 0xc], 0
je 0x487da1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x487da1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
imul ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
call fcn.00457760
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x487de3
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 1
push ecx
mov ecx, esp
push 0
call fcn.004017f0
push ecx
mov ecx, esp
push 0x4be1ac
call fcn.004017f0
mov eax, dword [ebp - 8]
add eax, 0x20
push eax
call fcn.00489c79
add esp, 0x18
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 1
jle 0x487e3b
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.00488f59
pop ecx
movzx eax, al
test eax, eax
je 0x487e3b
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push dword [ebp + 8]
call fcn.00488f13
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.004017f0
push ecx
mov ecx, esp
push 0x4be3a4
call fcn.004017f0
mov eax, dword [ebp - 8]
add eax, 0x20
push eax
call fcn.00489c79
add esp, 0x18
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x487e4b
mov ecx, dword [ebp - 8]
call fcn.0048856f
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4