Function at 0x409ef0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415fb5
push eax
mov dword fs:[0], esp
mov ecx, dword [esp + 0x10]
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
push 0x41f0ac
call fcn.004143cc
lea eax, [esp + 0x6c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x409f53
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x41de08
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x420f68
call fcn.0040a480
xor eax, eax
jmp 0x40a462
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], 0x4190ec
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.004143d2
cmp esi, ebp
mov byte [esp + 0x274], 4
je 0x40a10e
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 0x40a106
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.00414408
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
push 0x41d404
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x41ddf0
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 0x41dde4
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.00414408
cmp esi, ebp
jl 0x40a0d5
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.00414408
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.00414408
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.0040b470
cmp edi, ebp
jne 0x409ff9
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::Close
mov edi, dword [esp + 0x28]
cmp edi, 1
mov dword [esp + 0x38], edi
jge 0x40a173
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040b6e0
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.004146a8
mov dword [esp + 0x20], 0x4190ec
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 7
cmp eax, ebp
je 0x40a30f
jmp 0x40a2f7
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x34], ebp
call fcn.004143d2
mov ebx, 8
xor esi, esi
cmp edi, ebp
mov byte [esp + 0x274], bl
jle 0x40a2a0
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.0040b440
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 9
call fcn.00414408
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.00414408
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.00414408
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 0x40a285
test eax, eax
jle 0x40a285
mov edx, edi
mov ecx, edi
sub edx, dword [esp + 0x34]
sub ecx, eax
cmp ecx, edx
jge 0x40a285
cmp edi, eax
jl 0x40a285
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40a1ab
mov eax, dword [esp + 0x3c]
test eax, eax
jge 0x40a343
xor ebp, ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040b6e0
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.004146a8
mov dword [esp + 0x20], 0x4190ec
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xc
cmp eax, ebp
je 0x40a30f
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], 0x418a50
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 0x40a462
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040b440
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 0xd
call fcn.00414408
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.00414408
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x41ddf0
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x40a3c5
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.004146a8
mov dword [esp + 0x20], 0x4190ec
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xe
cmp eax, esi
je 0x40a430
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], 0x418a50
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