Function at 0x6aee90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
push 0x779a3c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0068e940
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x6aefd8
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6aefd3
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x6aefcd
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x5c
jne 0x6aef8b
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 1]
cmp edx, 0xa
jne 0x6aef8b
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x6aefcb
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x93
je 0x6aefa9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x94
jne 0x6aefaf
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x22
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x6aef5c
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x6af0a1
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x6aeff1
cmp dword [ebp - 0x18], 0xd
je 0x6aeff1
jmp 0x6af04a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x6af011
xor edx, edx
test edx, edx
je 0x6af011
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x1c], ecx
jmp 0x6af018
mov dword [ebp - 0x1c], 0xffffffe2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x80], eax
push 0
push 0xff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push 0x5b
push 0xffffffffffffffe2
mov eax, dword [ebp + 8]
push eax
call fcn.00651d00
add esp, 0x1c
jmp 0x6af0a1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x6af06a
xor edx, edx
test edx, edx
je 0x6af06a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x20], ecx
jmp 0x6af071
mov dword [ebp - 0x20], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x80], eax
push 0
push 0xff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push 0x5c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00651d00
add esp, 0x1c
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret