Function at 0x406830
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d151e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x7d0]
mov ecx, dword [esi + 0x7c8]
push eax
lea edx, [esp + 0x18]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x140], ebx
call fcn.00401fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 1
call fcn.004d0c8c
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004d0c74
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x406907
lea ecx, [esp + 0x14]
push ecx
call fcn.00403510
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 2
call fcn.004d0c8c
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004d0c74
lea edi, [esi + 0x9c]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x14]
jmp 0x406942
push 0x4ed358
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea edi, [esi + 0x9c]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 4
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x14]
call fcn.004d0c74
push 0x4ed35c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
lea ebp, [esi + 0x80c]
push ebp
push str.rockeng
push 1
push ebx
push edx
call fcn.0048500d
cmp eax, 1
mov dword [esi + 0x7bc], eax
jne 0x406aae
lea eax, [esp + 0x28]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov edi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 5
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push 0x4ed358
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x140], 6
call sub.MFC42.DLL_operator
push edi
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x13c], 7
push eax
call sub.MFC42.DLL_operator_1
push str.101162.ini
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x140], 8
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0xd
call fcn.004d0c74
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0xc
call fcn.004d0c74
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 0xb
call fcn.004d0c74
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 0xa
call fcn.004d0c74
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
or edi, 0xffffffff
push 9
push eax
mov dword [esi + 0x7bc], 1
mov dword [esp + 0x24], edi
call fcn.00484d9d
cmp eax, 1
mov dword [esi + 0x7bc], eax
jne 0x406a95
mov ecx, dword [esi + 0x7c8]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x406a95
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004d0c74
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], edi
call fcn.004d0c74
mov al, 1
jmp 0x406ace
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004d0c74
mov dword [esp + 0x134], edi
jmp 0x406ac3
mov dword [esi + 0x7b8], 0xb
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004d0c74
xor al, al
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret