Function at 0x52b640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571f6c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x661850]
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 0x52b685
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x38]
call fcn.0052eaf0
xor al, al
jmp 0x52b8df
mov ecx, dword [ebp - 0x38]
call fcn.0052a170
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0052d3e0
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0054aa89
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054a99a
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0054aa89
add esp, 0xc
cmp dword [ebp - 0x14], 0
jg 0x52b6eb
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x38]
call fcn.0052eaf0
xor al, al
jmp 0x52b8df
lea ecx, [ebp - 0x20]
call fcn.00529b60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00529750
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.00542ae0
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.005461ac
add esp, 0x10
cmp eax, 1
je 0x52b77c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00544d5d
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x38]
call fcn.0052eaf0
mov byte [ebp - 0x29], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00410eb0
mov al, byte [ebp - 0x29]
jmp 0x52b8df
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 0x52b83f
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x52b7d1
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.005298e0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x52b83a
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x52b831
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x52b7f9
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.005298e0
push 0xa
lea ecx, [ebp - 0x20]
call fcn.0052d2d0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x52b820
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x52b82f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x52b83a
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x52b791
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
je 0x52b85a
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.005298e0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00544d5d
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00529cc0
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.0052d880
movzx eax, al
test eax, eax
je 0x52b8b8
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00410eb0
mov al, byte [ebp - 0x31]
jmp 0x52b8df
mov byte [ebp - 0x32], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00410eb0
mov al, byte [ebp - 0x32]
jmp 0x52b8df
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8