Function at 0x40dd90
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x444e9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x45d018]
xor eax, esp
mov dword [esp + 0x2ec], eax
push ebp
push esi
push edi
mov eax, dword [0x45d018]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, ebx
call fcn.0040ec00
test eax, eax
je 0x40e52c
lea esi, [esp + 0x14]
call fcn.00402a20
push str.Settings
push 0x104
mov ecx, esi
mov dword [esp + 0x310], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [esp + 0x14]
call fcn.00415440
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40de4c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.ShowToolbarText
push esi
mov dword [esp + 0x30], 4
call edi
test eax, eax
jne 0x40de4c
mov eax, dword [esp + 0x10]
jmp 0x40de54
push esi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40de91
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.IncludeNested
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40de91
mov eax, dword [esp + 0x18]
jmp 0x40de96
push esi
call ebp
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40ded3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.WriteLog
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40ded3
mov eax, dword [esp + 0x18]
jmp 0x40dedb
push esi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], eax
lea eax, [esp + 0x10]
push str.LogFileName
push eax
call fcn.00415640
add esp, 8
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x30c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x10]
mov byte [esp + 0x308], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x40df69
lea edx, [esp + 0xf4]
push edx
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
mov ecx, esi
jl 0x40df5e
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x449c04
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
jmp 0x40df69
push str.log.txt
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x10]
push str.ExportFolderName
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00415640
add esp, 8
push eax
lea ecx, [ebx + 0x20]
mov byte [esp + 0x30c], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x10]
mov byte [esp + 0x308], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push str.AddFolderName
push edx
call fcn.00415640
add esp, 8
push eax
lea ecx, [ebx + 0x1c]
mov byte [esp + 0x30c], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x10]
mov byte [esp + 0x308], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push str.ProfileName
push eax
call fcn.00415640
add esp, 8
push eax
lea ecx, [ebx + 0x28]
mov byte [esp + 0x30c], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x10]
mov byte [esp + 0x308], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x14]
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e051
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.ShowFullPath
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e051
mov eax, dword [esp + 0x18]
jmp 0x40e059
push esi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x10], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e096
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.ViewByDWG
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e096
mov eax, dword [esp + 0x18]
jmp 0x40e09e
push esi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x14], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e0db
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.UpdateDwgFormat
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e0db
mov eax, dword [esp + 0x18]
jmp 0x40e0e0
push esi
call ebp
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x18], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e11d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.AlertDialogs
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e11d
mov eax, dword [esp + 0x18]
jmp 0x40e123
push esi
call ebp
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e160
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.SortBy
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e160
mov eax, dword [esp + 0x18]
jmp 0x40e168
push esi
call ebp
mov eax, 0x64
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x44], eax
call fcn.00415440
mov esi, eax
test esi, esi
je 0x40e1a5
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.SortOrder
push esi
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x40e1a5
mov eax, dword [esp + 0x18]
jmp 0x40e1ad
push esi
call ebp
mov eax, 1
lea ecx, [esp + 0x38]
push str.ColumnWidth
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x48], eax
call fcn.00415640
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x308], 5
call sub.MFC80U.DLL_Ordinal_557
push 0x448d6c
lea ecx, [esp + 0xa8]
mov byte [esp + 0x30c], 6
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
mov byte [esp + 0x308], 7
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x6c]
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x30c], 8
call fcn.00414bc0
add esp, 4
lea ecx, [esp + 0x68]
mov byte [esp + 0x308], 7
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0xa4]
mov byte [esp + 0x308], 6
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0xe0]
call sub.MFC80U.DLL_Ordinal_573
mov byte [esp + 0x308], 9
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.MSVCR80.dll__wtoi]
xor esi, esi
test eax, eax
jle 0x40e2c1
test esi, esi
jl 0x40e553
cmp esi, eax
jge 0x40e553
mov ecx, dword [esp + 0x24]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
push eax
add esi, 1
call ebp
add esp, 4
cmp esi, dword [esp + 0x28]
mov edi, eax
jge 0x40e2c1
test esi, esi
jl 0x40e553
mov edx, dword [esp + 0x24]
mov eax, dword [edx + esi*4]
push eax
call ebp
add esp, 4
push eax
mov edx, ebx
call fcn.0040eb00
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
jl 0x40e26f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_6002
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push str.ColumnOrder
push eax
call fcn.00415640
add esp, 8
push 0x448d6c
lea ecx, [esp + 0x6c]
mov byte [esp + 0x30c], 0xa
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
mov byte [esp + 0x308], 0xb
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0xa8]
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x30c], 0xc
call fcn.00414bc0
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x308], 0xb
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0x68]
mov byte [esp + 0x308], 0xa
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0x54]
call sub.MFC80U.DLL_Ordinal_573
mov byte [esp + 0x308], 0xd
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x40e3aa
test esi, esi
jl 0x40e553
cmp esi, eax
jge 0x40e553
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
push eax
call ebp
mov ecx, dword [esp + 0x60]
add esp, 4
push eax
push ecx
lea ecx, [esp + 0x5c]
call sub.MFC80U.DLL_Ordinal_5714
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
jl 0x40e373
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_6002
lea edx, [esp + 0x54]
push edx
mov ecx, ebx
call fcn.0040e990
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push str.HiddenColumns
push eax
call fcn.00415640
add esp, 8
push 0x448d6c
lea ecx, [esp + 0x6c]
mov byte [esp + 0x30c], 0xe
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
mov byte [esp + 0x308], 0xf
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0xa8]
call sub.acdb17.dll_public:_void___thiscall_AdString::constructor_wchar_t_const__
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x30c], 0x10
call fcn.00414bc0
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x308], 0xf
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0x68]
mov byte [esp + 0x308], 0xe
call sub.acdb17.dll_public_virtual:_void___thiscall_AdString::destructor_void_
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_573
mov byte [esp + 0x308], 0x11
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x40e49f
test esi, esi
jl 0x40e553
cmp esi, eax
jge 0x40e553
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
push eax
call ebp
mov ecx, dword [esp + 0x4c]
add esp, 4
push eax
push ecx
lea ecx, [esp + 0x48]
call sub.MFC80U.DLL_Ordinal_5714
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
jl 0x40e468
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_6002
lea edx, [esp + 0x40]
push edx
mov edi, ebx
call fcn.0040eb50
lea ecx, [esp + 0x40]
mov byte [esp + 0x308], 0xe
call sub.MFC80U.DLL_Ordinal_761
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x54]
mov byte [esp + 0x308], 0xa
call sub.MFC80U.DLL_Ordinal_761
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x308], 6
call sub.MFC80U.DLL_Ordinal_761
lea ecx, [esp + 0x20]
mov byte [esp + 0x308], 5
call sub.MFC80U.DLL_Ordinal_745
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2ec]
xor ecx, esp
call fcn.0043f41f
add esp, 0x2fc
ret
jmp fcn.0043ebfa