Function at 0x40cf80
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418eb5
push eax
mov dword fs:[0], esp
mov ecx, dword [esp + 0x10]
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
push 0x42267c
call fcn.00416d6c
lea eax, [esp + 0x6c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40cfe3
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x421424
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x424728
call fcn.0040d510
xor eax, eax
jmp 0x40d4f2
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
push str.data_
lea ecx, [esp + 0x20]
mov dword [esp + 0x278], ebp
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
push str..mdb
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 1
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x20], 0x41c87c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x274], 2
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x14]
push ebp
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x27c], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00416d72
cmp esi, ebp
mov byte [esp + 0x274], 4
je 0x40d19e
mov bl, 5
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x50]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40d196
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], bl
call fcn.00416da8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
push 0x4203e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x42140c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight_1
push str..MDB
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeReverse
push 0x421400
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov esi, eax
call fcn.00416da8
cmp esi, ebp
jl 0x40d165
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 6
call fcn.00416da8
lea ecx, [esp + 0x34]
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00416da8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeReverse
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
call fcn.0040dfc0
cmp edi, ebp
jne 0x40d089
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::Close
mov edi, dword [esp + 0x28]
cmp edi, 1
mov dword [esp + 0x38], edi
jge 0x40d203
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040e230
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x274], 2
call fcn.00417048
mov dword [esp + 0x20], 0x41c87c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 7
cmp eax, ebp
je 0x40d39f
jmp 0x40d387
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x34], ebp
call fcn.00416d72
mov ebx, 8
xor esi, esi
cmp edi, ebp
mov byte [esp + 0x274], bl
jle 0x40d330
mov edi, dword [esp + 0x280]
mov ebp, dword [sym.imp.MSVCRT.dll_atol]
lea eax, [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.0040df90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 9
call fcn.00416da8
lea ecx, [esp + 0x44]
mov byte [esp + 0x274], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
push ebx
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0xa
call fcn.00416da8
lea ecx, [esp + 0x48]
mov byte [esp + 0x274], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x4c]
push 4
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0xb
call fcn.00416da8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x274], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push 0
push 0
push 1
push 1
push eax
call sub.MFC42.DLL_CTime::CTime
mov eax, dword [esp + 0x40]
cmp eax, edi
jg 0x40d315
test eax, eax
jle 0x40d315
mov edx, edi
mov ecx, edi
sub edx, dword [esp + 0x34]
sub ecx, eax
cmp ecx, edx
jge 0x40d315
cmp edi, eax
jl 0x40d315
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40d23b
mov eax, dword [esp + 0x3c]
test eax, eax
jge 0x40d3d3
xor ebp, ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040e230
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x274], 2
call fcn.00417048
mov dword [esp + 0x20], 0x41c87c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xc
cmp eax, ebp
je 0x40d39f
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0x41c1f0
mov byte [esp + 0x274], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x274], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40d4f2
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040df90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 0xd
call fcn.00416da8
lea ecx, [esp + 0x38]
mov byte [esp + 0x274], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x27c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00416da8
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x42140c
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x40d455
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x274], 2
call fcn.00417048
mov dword [esp + 0x20], 0x41c87c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xe
cmp eax, esi
je 0x40d4c0
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0x41c1f0
mov byte [esp + 0x274], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x274], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x268
ret