Function at 0x104782e
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x106bd84
call fcn.0101da43
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
mov dword [ebp - 0x220], eax
jl 0x1047bf1
push ebx
lea ecx, [ebp - 0x238]
call fcn.0101b599
mov dword [ebp - 4], esi
mov dword [ebp - 0x22c], esi
xor ebx, ebx
inc ebx
push 0x4e9c
mov byte [ebp - 4], bl
call fcn.0102a42d
push eax
lea ecx, [ebp - 0x22c]
call fcn.01046a11
cmp dword [ebp - 0x238], esi
je 0x1047b51
cmp dword [ebp - 0x22c], esi
je 0x1047b51
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x100dbc0
push esi
push esi
push 0x8005
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, esi
mov dword [ebp - 0x220], eax
jl 0x1047b5b
push dword [edi + 0x20]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x238]
call sub.ScanSetting.DLL_GetDefaultProfileScan
cmp eax, esi
mov dword [ebp - 0x220], eax
jl 0x1047b5b
cmp dword [ebp - 0x228], esi
je 0x1047b5b
cmp dword [ebp - 0x224], esi
je 0x1047ba5
mov ecx, dword [ebp - 0x240]
cmp ecx, esi
je 0x1047b5b
xor eax, eax
lea edi, [ebp - 0x258]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], 7
stosd dword es:[edi], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x1047b5b
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
lea edx, [ebp - 0x23c]
push edx
push 0x1005f8c
push eax
call dword [ecx]
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x1047b5b
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
lea edx, [ebp - 0x258]
push edx
lea edx, [ebp - 0x260]
push edx
push ebx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x220], eax
cmp eax, esi
je 0x1047a07
mov dword [ebp - 0x220], 0x80004005
jmp 0x1047b5b
cmp word [ebp - 0x258], 8
jne 0x1047b45
mov eax, dword [ebp - 0x250]
cmp eax, esi
je 0x1047b45
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x250], esi
call dword [sym.imp.ole32.dll_PropVariantClear]
xor edi, edi
cmp dword [ebp - 0x228], esi
jle 0x1047a72
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push dword [ebp - 0x230]
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [ebp - 0x224]
push dword [eax + edi*4]
call fcn.0104faf9
inc edi
cmp edi, dword [ebp - 0x228]
jl 0x1047a46
push 0x4e6f
call fcn.01015eea
mov ecx, eax
call fcn.01018efa
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x244], esp
push eax
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 2
call fcn.01015eea
mov ecx, eax
call fcn.01047cee
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0104dc60
call fcn.01015eea
mov ecx, eax
call fcn.01047cee
push ebx
push esi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.01015eea
mov ecx, eax
call fcn.01047cee
mov edx, dword [eax]
push esi
push esi
push esi
mov ecx, eax
call dword [edx + 0xf4]
call fcn.01015eea
mov ecx, eax
call fcn.01047cee
mov ecx, eax
call fcn.0104be2f
mov eax, dword [ebp - 0x224]
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push dword [eax]
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 3
call fcn.01015eea
mov ecx, eax
call fcn.01047cee
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0104c333
push dword [ebp - 0x228]
push dword [ebp - 0x248]
push dword [ebp - 0x224]
call fcn.010477b0
mov dword [ebp - 0x224], esi
jmp 0x1047b91
mov dword [ebp - 0x220], 0x8000ffff
jmp 0x1047b5b
mov dword [ebp - 0x220], 0x8007000e
cmp dword [ebp - 0x224], esi
je 0x1047ba5
xor edi, edi
cmp dword [ebp - 0x228], esi
jle 0x1047b85
mov eax, dword [ebp - 0x224]
push dword [eax + edi*4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
cmp edi, dword [ebp - 0x228]
jl 0x1047b6d
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x230], esi
je 0x1047ba5
push dword [ebp - 0x230]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x23c]
cmp eax, esi
je 0x1047bb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x234]
cmp eax, esi
je 0x1047bc5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
cmp eax, esi
je 0x1047bd5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x238]
call esi
mov eax, dword [ebp - 0x220]
call fcn.0101dad5
ret 0xc