Function at 0x49f360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
push 0x4ddee0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49f4a4
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49f49f
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx]
test eax, eax
je 0x49f499
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x5c
jne 0x49f458
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 1]
cmp ecx, 0xa
jne 0x49f458
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
jmp 0x49f497
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x93
je 0x49f475
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x94
jne 0x49f47b
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0x22
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x49f429
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
jmp 0x49f55b
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 1
je 0x49f4bd
cmp dword [ebp - 0x18], 0xd
je 0x49f4bd
jmp 0x49f50d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x49f4d7
xor ecx, ecx
test ecx, ecx
je 0x49f4d7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x49f4de
mov dword [ebp - 0x1c], 0xffffffe2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0x5b
push 0xffffffffffffffe2
mov edx, dword [ebp + 8]
push edx
call fcn.00463180
add esp, 0x1c
jmp 0x49f55b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x49f527
xor ecx, ecx
test ecx, ecx
je 0x49f527
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x20], eax
jmp 0x49f52e
mov dword [ebp - 0x20], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x14], edx
push 0
push 0xff
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0x5c
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call fcn.00463180
add esp, 0x1c
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret