Function at 0x487f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x604e14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 8], 0
jne 0x487f45
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x38]
call fcn.0048b4e0
xor al, al
jmp 0x48819f
mov ecx, dword [ebp - 0x38]
call fcn.00486ae0
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.00489bc0
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0055b6f3
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055b5fb
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0055b6f3
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x487fab
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x38]
call fcn.0048b4e0
xor al, al
jmp 0x48819f
lea ecx, [ebp - 0x20]
call fcn.00486510
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00486100
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0055b441
add esp, 0x10
cmp eax, 1
je 0x48803c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052604e
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x38]
call fcn.0048b4e0
mov byte [ebp - 0x29], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00448160
mov al, byte [ebp - 0x29]
jmp 0x48819f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4880ff
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x488091
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x20]
call fcn.00486290
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x4880fa
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x4880f1
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x4880b9
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00486290
push 0xa
lea ecx, [ebp - 0x20]
call fcn.00489ab0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x4880e0
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x4880ef
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x4880fa
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x488051
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
je 0x48811a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00486290
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0052604e
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00486670
push eax
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [ebp - 0x38]
call fcn.0048a3a0
movzx eax, al
test eax, eax
je 0x488178
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00448160
mov al, byte [ebp - 0x31]
jmp 0x48819f
mov byte [ebp - 0x32], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00448160
mov al, byte [ebp - 0x32]
jmp 0x48819f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8