Function at 0x4b8e0b
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ea6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
push str.ERDI_READ_NOREPLACE
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.0040adf0
and eax, 0xff
test eax, eax
jne 0x4b8e79
push 0x5f24e4
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
call fcn.0040adf0
and eax, 0xff
test eax, eax
je 0x4b8e80
mov dword [ebp - 0x14], 0
push str.ERDI_F_READ
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
call fcn.0040adf0
and eax, 0xff
test eax, eax
jne 0x4b8eb4
push str.ERDI_F_READ_NOREPLACE
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.0040adf0
and eax, 0xff
test eax, eax
je 0x4b8ebf
mov word [0x5fe66c], 0x12c
jmp 0x4b8ec8
mov word [0x5fe66c], 0x64
lea ecx, [ebp - 0x140]
push ecx
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 0x210]
mov ecx, dword [edx + 0x80]
call fcn.00405b20
add eax, 0x484
push eax
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
push 0x5f2520
lea ecx, [ebp - 0x144]
call fcn.0058e586
lea ecx, [ebp - 0x144]
call fcn.00403d90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x80]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x200], esp
push 0x5f2528
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x218], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x204], esp
push 0x5f252c
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x208], esp
lea edx, [ebp - 0x144]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 1
call fcn.00434c72
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1fc]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
jne 0x4b9094
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00435e19
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x230]
push edx
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20c]
call fcn.0058df86
cmp dword [ebp - 0x14], 0
je 0x4b902e
push 0
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x210]
call fcn.004bc31e
cmp dword [ebp - 0x14], 0
jne 0x4b9048
push 5
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.004bc31e
mov ecx, 0x5fe470
call fcn.0040fea0
mov edx, dword [ebp - 0x210]
mov ecx, dword [edx + 0x118]
mov word [ecx + 0xdc], ax
mov edx, dword [ebp - 0x210]
mov ecx, dword [edx + 0x118]
call fcn.004228b4
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x118]
call fcn.004238f4
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
mov edx, dword [ebp - 0x210]
mov ecx, dword [edx + 0x80]
call fcn.00412100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1fc]
call fcn.00434db6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.0058df86
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0058df86
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4