Function at 0x49fb18
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov eax, 0x56f4c6
call fcn.0051f140
sub esp, 0x358
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x49fb64
push 0x5c987c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x49fb6b
push 0x36b
push str.E:CQ2ClientRelease_17.1.93DGameMap3DGameMap.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005185c3
add esp, 0x10
xor eax, eax
jmp 0x49fdfe
mov ecx, dword [ebp - 0x10]
call fcn.0049f186
mov ecx, dword [ebp - 0x10]
call fcn.004a0710
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x260]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push edi
push 1
lea eax, [ebp - 0x15c]
pop edi
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x364]
push str._s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
call fcn.0049f602
test eax, eax
je 0x49fb64
lea ecx, [ebp - 0x364]
push ecx
mov ecx, eax
call fcn.004ab4bc
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push ebx
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call esi
push ebx
push edi
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
mov ecx, dword [ebp - 0x10]
add esp, 0x20
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0049f8ef
xor eax, eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp + 8], eax
jle 0x49fd09
jmp 0x49fc3f
xor eax, eax
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jle 0x49fce1
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049f960
mov edi, eax
test edi, edi
jne 0x49fc7b
push str.E:CQ2ClientRelease_17.1.93DGameMap3DGameMap.cpp
push 0x38e
push 0x5c984c
call fcn.005185c3
add esp, 0xc
jmp 0x49fccf
push ebx
lea eax, [edi + 2]
push 1
push 2
push eax
mov dword [ebp - 0x24], eax
call esi
push ebx
push 1
push 2
push edi
call esi
push ebx
lea eax, [edi + 4]
push 1
push 2
push eax
mov dword [ebp - 0x28], eax
call esi
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
movzx eax, word [edi]
movsx ecx, word [ecx]
add esp, 0x30
inc ecx
inc ecx
lea edx, [eax + edx + 1]
imul ecx, edx
mov edx, dword [ebp + 8]
lea eax, [eax + edx + 1]
mov edx, dword [ebp - 0x24]
movzx edx, word [edx]
imul eax, edx
add eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0x49fc4e
push 1
pop edi
push ebx
push edi
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x49fb64
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x1c]
jl 0x49fc3d
mov ecx, dword [ebp - 0x10]
call fcn.0049f602
test eax, eax
je 0x49fd1d
push ebx
mov ecx, eax
call fcn.004ab644
mov ecx, dword [ebp - 0x10]
call fcn.0049f661
test eax, eax
je 0x49fd31
push ebx
mov ecx, eax
call fcn.004a98e2
push ebx
push edi
lea eax, [ebp - 0x30]
push 4
push eax
call esi
and dword [ebp + 8], 0
add esp, 0x10
cmp dword [ebp - 0x30], 0
jle 0x49fdeb
push ebx
push edi
lea eax, [ebp - 0x14]
push 4
push eax
call esi
push ebx
push edi
lea eax, [ebp - 0x24]
push 4
push eax
call esi
add esp, 0x20
cmp dword [ebp - 0x24], 4
jne 0x49fddc
push 0x34
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x49fd88
mov ecx, eax
call fcn.004adcd9
mov dword [ebp - 0x18], eax
jmp 0x49fd8c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x49fb64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 8]
lea eax, [ebp - 0x28]
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f417e
mov ecx, eax
call fcn.004a1eaa
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 8]
call fcn.004a1e18
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.004adf6a
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jl 0x49fd4c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 0x10]
pop ecx
mov dword [eax + 0x1c4], edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4