Function at 0x4bbce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0906
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4f4970]
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 0x4bbd28
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x54]
call fcn.004b4ae0
xor al, al
jmp 0x4bbf82
mov ecx, dword [ebp - 0x54]
call fcn.004ba5c0
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.00402160
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00486fbd
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00486ec5
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00486fbd
add esp, 0xc
cmp dword [ebp - 0x14], 0
jg 0x4bbd8e
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x54]
call fcn.004b4ae0
xor al, al
jmp 0x4bbf82
lea ecx, [ebp - 0x3c]
call fcn.00402b90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402e50
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.0046cf6d
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.00486bbb
add esp, 0x10
cmp eax, 1
je 0x4bbe1f
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0046df1a
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x54]
call fcn.004b4ae0
mov byte [ebp - 0x45], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402c40
mov al, byte [ebp - 0x45]
jmp 0x4bbf82
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 0x4bbee2
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x4bbe74
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.00402d30
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x4bbedd
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x4bbed4
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x4bbe9c
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.00402d30
push 0xa
lea ecx, [ebp - 0x3c]
call fcn.00402ce0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x4bbec3
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x4bbed2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x4bbedd
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x4bbe34
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
je 0x4bbefd
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.00402d30
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0046df1a
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x3c]
call fcn.00402e30
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.00402740
movzx eax, al
test eax, eax
je 0x4bbf5b
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402c40
mov al, byte [ebp - 0x4d]
jmp 0x4bbf82
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402c40
mov al, byte [ebp - 0x4e]
jmp 0x4bbf82
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0046da8a
mov esp, ebp
pop ebp
ret 8