Function at 0x4e6f84
Capabilities:
Get common file path

Disassembly:
mov eax, 0x5fca85
call fcn.0059d590
sub esp, 0x35c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
je 0x4e714d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4e714d
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4e6fd9
push dword [ebp + 8]
mov ecx, eax
call fcn.005986dc
mov esi, eax
jmp 0x4e6fdb
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.004eaf0e
push 1
lea eax, [ebp - 0x10]
pop ebx
push esi
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00564a31
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 2
cmp ecx, edi
je 0x4e701a
call fcn.005987c7
test al, al
jne 0x4e70bc
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
push dword [ebp + 8]
call fcn.00402bfa
mov esi, 0x67ea44
mov byte [ebp - 4], 5
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x40]
call fcn.00460e45
mov esi, eax
cmp esi, edi
jle 0x4e70ac
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov byte [ebp - 4], 6
je 0x4e7082
push esi
lea eax, [ebp - 0x58]
push edi
push eax
lea ecx, [ebp - 0x40]
call fcn.00460669
mov dword [ebp - 0x1c], ebx
push dword [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 7
call fcn.005986dc
jmp 0x4e7084
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 8
call fcn.004ea49f
test byte [ebp - 0x1c], bl
mov dword [ebp - 4], 5
je 0x4e70ac
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00402b84
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00402b84
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
call fcn.004e6513
mov ecx, dword [ebp - 0x18]
call fcn.004e7e00
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00598947
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00598947
lea eax, [ebp - 0x264]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00598947
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x368]
push str._s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
call fcn.004e69d9
cmp eax, edi
jne 0x4e7160
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ecx, edi
je 0x4e714d
call fcn.004039fd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea ecx, [ebp - 0x368]
push ecx
mov ecx, eax
call fcn.004fc67e
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x2c]
push 4
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.00598947
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.00598947
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x2c]
call fcn.004e6cc6
cmp dword [ebp - 0x28], edi
mov dword [ebp + 8], edi
jle 0x4e7284
cmp dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
jle 0x4e725a
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004e6d33
mov esi, eax
cmp esi, edi
jne 0x4e71f2
push 0x3a9
push str.E:CQ2ClientRelease_18.26.83DGameMap3DGameMap.cpp
push str.pCellInfo
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
jmp 0x4e724b
mov ecx, dword [ebp - 0x14]
lea edi, [esi + 2]
push ebx
push 2
push edi
call fcn.00598947
mov ecx, dword [ebp - 0x14]
push ebx
push 2
push esi
call fcn.00598947
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 4]
push ebx
push 2
push eax
mov dword [ebp - 0x30], eax
call fcn.00598947
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
movzx eax, word [esi]
movsx edx, word [edx]
inc edx
lea ecx, [eax + ecx + 1]
inc edx
imul ecx, edx
mov edx, dword [ebp + 8]
lea eax, [eax + edx + 1]
movzx edx, word [edi]
imul eax, edx
add eax, dword [ebp - 0x1c]
add eax, ecx
xor edi, edi
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jl 0x4e71bb
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x24]
push 4
push eax
call fcn.00598947
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jne 0x4e713d
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x28]
jl 0x4e71ac
mov ecx, dword [ebp - 0x18]
call fcn.004e69d9
cmp eax, edi
je 0x4e729a
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004fc80a
mov ecx, dword [ebp - 0x18]
call fcn.004e6a38
cmp eax, edi
je 0x4e72b0
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004fa256
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.00598947
cmp dword [ebp - 0x34], edi
mov dword [ebp + 8], edi
jle 0x4e736c
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.00598947
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.00598947
cmp dword [ebp - 0x30], 4
jne 0x4e735d
push 0x34
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
mov byte [ebp - 4], 0xb
je 0x4e730d
mov ecx, eax
call fcn.004fe6e1
mov esi, eax
jmp 0x4e730f
xor esi, esi
cmp esi, edi
mov byte [ebp - 4], 2
je 0x4e713d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
lea ecx, [eax + 8]
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0057ad85
mov ecx, eax
call fcn.004e98ea
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 8]
call fcn.004e9858
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004fe9ae
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x34]
jl 0x4e72cb
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ecx, edi
mov dword [eax + 0xdc], ebx
je 0x4e7385
call fcn.004039fd
mov eax, ebx
jmp 0x4e714f