Function at 0x40b550
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x416a85
push eax
mov dword fs:[0], esp
mov ecx, dword [esp + 0x10]
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
push 0x42054c
call fcn.00414a9c
lea eax, [esp + 0x6c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40b5b3
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x41f3f0
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x422448
call fcn.0040bae0
xor eax, eax
jmp 0x40bac2
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], 0x41a69c
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.00414aa2
cmp esi, ebp
mov byte [esp + 0x274], 4
je 0x40b76e
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 0x40b766
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.00414ad8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x274], 4
call sub.MFC42.DLL_CString::CString
push 0x41e3ec
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x41f3d8
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 0x41f3cc
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.00414ad8
cmp esi, ebp
jl 0x40b735
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.00414ad8
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.00414ad8
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.0040c870
cmp edi, ebp
jne 0x40b659
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::Close
mov edi, dword [esp + 0x28]
cmp edi, 1
mov dword [esp + 0x38], edi
jge 0x40b7d3
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040cae0
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.00414d96
mov dword [esp + 0x20], 0x41a69c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 7
cmp eax, ebp
je 0x40b96f
jmp 0x40b957
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x34], ebp
call fcn.00414aa2
mov ebx, 8
xor esi, esi
cmp edi, ebp
mov byte [esp + 0x274], bl
jle 0x40b900
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.0040c840
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 9
call fcn.00414ad8
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.00414ad8
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.00414ad8
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 0x40b8e5
test eax, eax
jle 0x40b8e5
mov edx, edi
mov ecx, edi
sub edx, dword [esp + 0x34]
sub ecx, eax
cmp ecx, edx
jge 0x40b8e5
cmp edi, eax
jl 0x40b8e5
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40b80b
mov eax, dword [esp + 0x3c]
test eax, eax
jge 0x40b9a3
xor ebp, ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.0040cae0
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.00414d96
mov dword [esp + 0x20], 0x41a69c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xc
cmp eax, ebp
je 0x40b96f
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], 0x41a008
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 0x40bac2
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040c840
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 0xd
call fcn.00414ad8
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.00414ad8
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x41f3d8
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x40ba25
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.00414d96
mov dword [esp + 0x20], 0x41a69c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 0xe
cmp eax, esi
je 0x40ba90
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], 0x41a008
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