Function at 0x48b1c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d6a3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4af7d0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
cmp dword [ebp + 8], 0
jne 0x48b208
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x54]
call fcn.004851f0
xor al, al
jmp 0x48b462
mov ecx, dword [ebp - 0x54]
call fcn.00489b40
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.00402050
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0047771d
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00477625
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0047771d
add esp, 0xc
cmp dword [ebp - 0x14], 0
jg 0x48b26e
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x54]
call fcn.004851f0
xor al, al
jmp 0x48b462
lea ecx, [ebp - 0x3c]
call fcn.00402a60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402d20
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.0045dbed
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
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.0047731b
add esp, 0x10
cmp eax, 1
je 0x48b2ff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0045eb9a
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x54]
call fcn.004851f0
mov byte [ebp - 0x45], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402b10
mov al, byte [ebp - 0x45]
jmp 0x48b462
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 0x48b3c2
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x48b354
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 - 0x3c]
call fcn.00402c00
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x48b3bd
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x48b3b4
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x48b37c
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402c00
push 0xa
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x48b3a3
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x48b3b2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x48b3bd
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x48b314
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
je 0x48b3dd
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402c00
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0045eb9a
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x3c]
call fcn.00402d00
push eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [ebp - 0x54]
call fcn.004027e0
movzx eax, al
test eax, eax
je 0x48b43b
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402b10
mov al, byte [ebp - 0x4d]
jmp 0x48b462
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402b10
mov al, byte [ebp - 0x4e]
jmp 0x48b462
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0045e70a
mov esp, ebp
pop ebp
ret 8