Function at 0x406530
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x414c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esp + 0xbc], esi
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 1
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 2
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 3
call sub.MFC42u.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 4
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x14], esi
jmp 0x4065d4
mov esi, dword [esp + 0x14]
push 0x41e3d0
push esi
lea ecx, [edi + 0x380]
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea eax, [esi + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x41c71c
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
call fcn.0040b3b0
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 5
call fcn.0040c620
test al, al
je 0x40663a
mov ecx, dword [edi + 0x384]
lea eax, [esp + 0x10]
push eax
lea ecx, [ecx + esi*4]
call fcn.00413186
cmp esi, 4
ja case.default.0x40663f
jmp dword [esi*4 + 0x406960]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41c6f0
jmp 0x40668a
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41c6c4
jmp 0x40668a
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41c698
jmp 0x40668a
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41c66c
jmp 0x40668a
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41c640
call ebp
mov ebx, eax
mov dword [esp + 0x20], ebx
push 0x41c628
call ebp
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x398]
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push 8
push 8
push eax
mov byte [esp + 0xd4], 6
call fcn.00405e80
push esi
mov dword [esp + 0x20], eax
mov byte [esp + 0xc0], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x406849
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040b3b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 7
call fcn.0040c620
test al, al
je 0x40672a
mov eax, dword [edi + 0x384]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + ecx*4]
call fcn.00413186
jmp 0x406838
push 0x41c628
call ebp
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x398]
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 8
push 8
push eax
mov byte [esp + 0xd4], 8
call fcn.00405e80
push esi
mov dword [esp + 0x20], eax
mov byte [esp + 0xc0], 7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x406821
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 9
call fcn.00413186
lea ecx, [esp + 0x44]
mov byte [esp + 0xbc], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.0040b3b0
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 0xa
call fcn.0040c620
test al, al
je 0x4067f7
mov eax, dword [edi + 0x384]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + ecx*4]
call fcn.00413186
jmp 0x40680e
mov edx, dword [edi + 0x384]
mov eax, dword [esp + 0x14]
push 0x41e3d0
lea ecx, [edx + eax*4]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 7
call sub.MFC42u.DLL_CString::CString
jmp 0x406838
mov ecx, dword [edi + 0x384]
mov edx, dword [esp + 0x14]
push 0x41e3d0
lea ecx, [ecx + edx*4]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 4
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x3c]
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x4065d0
mov eax, dword [edi + 0x340]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x40], ebp
je 0x4068f0
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x54]
push edx
push 0x19
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4068f0
jbe 0x4068f0
lea esi, [esp + 0x50]
mov eax, dword [edi + 0x340]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x60]
mov eax, dword [edi + 0x340]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4068e4
mov ecx, dword [esi]
lea eax, [esp + 0x40]
push eax
push ecx
push 0
lea ecx, [edi + 0x394]
call fcn.004126c0
test eax, eax
jge 0x406903
mov eax, dword [esp + 0x38]
inc ebp
add esi, 4
cmp ebp, eax
jb 0x40689b
mov ecx, dword [edi + 0x384]
push 0x41e3d0
add ecx, 0xc
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 1
call sub.MFC42u.DLL_CString::CString
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret