Function at 0x609a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0x6a0ffc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00599070
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x609c08
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00538e1f
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.005391f7
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00538e1f
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00534c8a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x609c03
cmp dword [ebp - 0x14], 0xffffffff
je 0x609c03
push 0
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005286a0
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00538ce4
add esp, 0x10
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x609b7a
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x609b53
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x609b53
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
mov dword [ebp - 0x20], ecx
jmp 0x609b78
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x609b14
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
test edx, edx
je 0x609bfd
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x609bbe
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 1]
cmp eax, 0xa
jne 0x609bbe
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x609bfb
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
cmp eax, 0x93
je 0x609bd9
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
cmp edx, 0x94
jne 0x609bdf
mov eax, dword [ebp - 0x18]
mov byte [eax], 0x22
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x609b92
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
jmp 0x609cd6
call fcn.00534f8e
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 1
je 0x609c20
cmp dword [ebp - 0x24], 0xd
je 0x609c20
jmp 0x609c7c
cmp dword [ebp + 8], 0
je 0x609c7a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x609c44
xor eax, eax
je 0x609c44
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x28], edx
jmp 0x609c4b
mov dword [ebp - 0x28], 0xffffffe2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x80], ecx
push 0
push 0xff
mov edx, dword [ebp + 0xc]
push edx
call fcn.00534f8e
mov eax, dword [eax]
push eax
push 0x5b
push 0xffffffffffffffe2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00576350
add esp, 0x1c
jmp 0x609cd6
cmp dword [ebp + 8], 0
je 0x609cd6
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x609ca0
xor eax, eax
je 0x609ca0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x2c], edx
jmp 0x609ca7
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
mov edx, dword [ebp + 0xc]
push edx
call fcn.00534f8e
mov eax, dword [eax]
push eax
push 0x5c
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.00576350
add esp, 0x1c
cmp dword [ebp - 8], 0
je 0x609cef
mov edx, dword [ebp - 8]
push edx
call fcn.0053875b
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret