Function at 0x41c680
Capabilities:
Get common file path
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4807c1
push eax
mov dword fs:[0], esp
sub esp, 0x82c
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x1c]
test al, al
je 0x41d136
push ebx
push esi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.0041e2d0
xor ebx, ebx
push str.config.xml
lea ecx, [esp + 0x20]
mov dword [esp + 0x848], ebx
call fcn.00463393
cmp dword [ebp + 0x2a8], ebx
je 0x41cc64
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00409c00
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41cc64
push esi
push str._sysconf__n
call fcn.0044d76c
push esi
push str._listcolor_
call fcn.0044d76c
mov edx, dword [ebp + 0x220]
add esp, 0x10
push edx
push str.0x_lx
push esi
call fcn.0044e4a2
push esi
push str.__listcolor__n
call fcn.0044d76c
push esi
push str._treecolor_
call fcn.0044d76c
mov eax, dword [ebp + 0x21c]
add esp, 0x1c
push eax
push str.0x_lx
push esi
call fcn.0044e4a2
push esi
push str.__treecolor__n
call fcn.0044d76c
push esi
push str._FrmWide_
call fcn.0044d76c
mov eax, dword [ebp + 0x224]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00409c40
mov edx, dword [eax]
add esp, 0x24
push edx
push 0x49e64c
push esi
call fcn.0044e4a2
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00462fb7
push esi
push str.__FrmWide__n
call fcn.0044d76c
push esi
push str._HitBefore_
call fcn.0044d76c
mov eax, dword [ebp + 0x228]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00409c40
mov ecx, dword [eax]
add esp, 0x18
push ecx
push 0x49e64c
push esi
call fcn.0044e4a2
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00462fb7
push esi
push str.__HitBefore__n
call fcn.0044d76c
push esi
push str._HitAfter_
call fcn.0044d76c
mov eax, dword [ebp + 0x22c]
lea edx, [esp + 0x20]
push eax
push edx
call fcn.00409c40
mov eax, dword [eax]
add esp, 0x18
push eax
push 0x49e64c
push esi
call fcn.0044e4a2
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00462fb7
push esi
push str.__HitAfter__n
call fcn.0044d76c
push esi
push str._PdfSplit_
call fcn.0044d76c
mov ecx, dword [ebp + 0x248]
add esp, 0x10
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__PdfSplit__n
call fcn.0044d76c
push esi
push str._FilenameTitle_
call fcn.0044d76c
mov edx, dword [ebp + 0x264]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__FilenameTitle__n
call fcn.0044d76c
push esi
push str._SaveMakedText_
call fcn.0044d76c
mov eax, dword [ebp + 0x24c]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__SaveMakedText__n
call fcn.0044d76c
push esi
push str._HideBase_
call fcn.0044d76c
mov ecx, dword [ebp + 0x238]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__HideBase__n
call fcn.0044d76c
push esi
push str._MaxCDSize_
call fcn.0044d76c
mov edx, dword [ebp + 0x23c]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MaxCDSize__n
call fcn.0044d76c
push esi
push str._ColvalMode_
call fcn.0044d76c
mov eax, dword [ebp + 0x250]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__ColvalMode__n
call fcn.0044d76c
push esi
push str._MenuCopy_
call fcn.0044d76c
mov ecx, dword [ebp + 0x268]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuCopy__n
call fcn.0044d76c
push esi
push str._MenuPrint_
call fcn.0044d76c
mov edx, dword [ebp + 0x26c]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuPrint__n
call fcn.0044d76c
push esi
push str._MenuSave_
call fcn.0044d76c
mov eax, dword [ebp + 0x270]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuSave__n
call fcn.0044d76c
push esi
push str._MenuSearch_
call fcn.0044d76c
mov ecx, dword [ebp + 0x274]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuSearch__n
call fcn.0044d76c
push esi
push str._MenuGohit_
call fcn.0044d76c
mov edx, dword [ebp + 0x278]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuGohit__n
call fcn.0044d76c
push esi
push str._MenuGorec_
call fcn.0044d76c
mov eax, dword [ebp + 0x27c]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuGorec__n
call fcn.0044d76c
push esi
push str._MenuHfont_
call fcn.0044d76c
mov ecx, dword [ebp + 0x280]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuHfont__n
call fcn.0044d76c
push esi
push str._MenuOutlineCol_
call fcn.0044d76c
mov edx, dword [ebp + 0x284]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuOutlineCol__n
call fcn.0044d76c
push esi
push str._MenuSearchCol_
call fcn.0044d76c
mov eax, dword [ebp + 0x290]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuSearchCol__n
call fcn.0044d76c
push esi
push str._MenuDetailCol_
call fcn.0044d76c
mov ecx, dword [ebp + 0x288]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuDetailCol__n
call fcn.0044d76c
push esi
push str._MenuSortCol_
call fcn.0044d76c
mov edx, dword [ebp + 0x28c]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuSortCol__n
call fcn.0044d76c
push esi
push str._MenuAddData_
call fcn.0044d76c
mov eax, dword [ebp + 0x294]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuAddData__n
call fcn.0044d76c
push esi
push str._MenuReg_
call fcn.0044d76c
mov ecx, dword [ebp + 0x298]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__MenuReg__n
call fcn.0044d76c
push esi
push str._AlwayChk_
call fcn.0044d76c
mov edx, dword [ebp + 0x240]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__AlwayChk__n
call fcn.0044d76c
push esi
push str._LayoutMode_
call fcn.0044d76c
mov eax, dword [ebp + 0x244]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__LayoutMode__n
call fcn.0044d76c
push esi
push str._NeedCD_
call fcn.0044d76c
mov ecx, dword [ebp + 0x254]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__NeedCD__n
call fcn.0044d76c
push esi
push str._NeedShare_
call fcn.0044d76c
mov edx, dword [ebp + 0x258]
add esp, 0x1c
push edx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__NeedShare__n
call fcn.0044d76c
push esi
push str._NeedMax_
call fcn.0044d76c
mov eax, dword [ebp + 0x25c]
add esp, 0x1c
push eax
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__NeedMax__n
call fcn.0044d76c
push esi
push str._StoreFile_
call fcn.0044d76c
mov ecx, dword [ebp + 0x260]
add esp, 0x1c
push ecx
push 0x49ccd4
push esi
call fcn.0044e4a2
push esi
push str.__StoreFile__n
call fcn.0044d76c
push esi
push str.__sysconf_
call fcn.0044d76c
push esi
call fcn.00409c30
add esp, 0x20
lea edx, [ebp + 0x11c]
lea ecx, [esp + 0x18]
push edx
call fcn.00463025
push str.config_trsmin.ini
lea ecx, [esp + 0x1c]
mov byte [esp + 0x848], 1
call fcn.00463393
mov eax, dword [ebp + 0x2ac]
mov esi, dword [esp + 0x18]
cmp eax, ebx
je 0x41cd16
mov ecx, dword [ebp + 0x29c]
lea eax, [esp + 0x28]
push 0xa
push eax
push ecx
call fcn.004508e3
lea edx, [esp + 0x34]
push esi
push edx
push str.prepage
push str.option
call fcn.0040e7d0
mov ecx, dword [ebp + 0x2a0]
lea eax, [esp + 0x44]
push 0xa
push eax
push ecx
call fcn.004508e3
lea edx, [esp + 0x50]
push esi
push edx
push str.ThumbWidth
push str.option
call fcn.0040e7d0
mov ecx, dword [ebp + 0x2a4]
lea eax, [esp + 0x60]
push 0xa
push eax
push ecx
call fcn.004508e3
add esp, 0x44
lea edx, [esp + 0x28]
push esi
push edx
push str.ThumbHeight
push str.option
call fcn.0040e7d0
add esp, 0x10
mov eax, dword [ebp + 0x808]
xor esi, esi
cmp eax, ebx
jle 0x41cd44
xor edi, edi
mov eax, dword [ebp + 0x804]
mov ecx, edi
add ecx, eax
call fcn.00410f00
mov eax, dword [ebp + 0x808]
inc esi
add edi, 0x274
cmp esi, eax
jl 0x41cd24
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41cd54
push eax
call fcn.0043f960
mov dword [ebp + 0x18], ebx
mov al, byte [0x4aa680]
mov ecx, 0x7f
mov byte [esp + 0x3c], al
xor eax, eax
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3c]
push ecx
push 0x1ff
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [esp + 0x3c]
test al, al
je 0x41cdcf
mov dl, 0x5c
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x3b], dl
je 0x41cdb5
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
movsx eax, byte [esp + ecx + 0x3b]
cmp eax, 0x2f2f
jne 0x41cdcf
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x3b], al
mov al, byte [esp + 0x3c]
test al, al
jne 0x41cd87
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x43c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x49ce00
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x440]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._shmtmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x440]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044d7eb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41cebd
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x41ceb4
push esi
lea ecx, [esp + 0x640]
push 0x1ff
push ecx
mov byte [esp + 0x648], 0
call fcn.0044e5a6
add esp, 0xc
lea edx, [esp + 0x63c]
lea ecx, [esp + 0x14]
push edx
call fcn.00463025
push 0x49e138
lea ecx, [esp + 0x18]
mov byte [esp + 0x848], 2
call fcn.00460383
mov eax, dword [esp + 0x14]
push eax
call fcn.0045fb2d
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x844], 1
call fcn.00462fb7
test byte [esi + 0xc], bl
je 0x41ce4c
push esi
call fcn.0044d6ef
add esp, 4
lea ecx, [esp + 0x43c]
push 0x49e75c
push ecx
call fcn.0044d7eb
mov esi, eax
add esp, 8
test esi, esi
je 0x41cfa8
mov edx, dword [0x4ab298]
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov ecx, dword [0x4ab298]
add esp, 0x10
add ecx, 4
lea edx, [esp + 0x3c]
push ecx
push edx
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov eax, dword [0x4ab298]
add esp, 0x10
add eax, 5
lea ecx, [esp + 0x3c]
push eax
push ecx
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov edx, dword [0x4ab298]
add esp, 0x10
add edx, 6
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov ecx, dword [0x4ab298]
add esp, 0x10
add ecx, 7
lea edx, [esp + 0x3c]
push ecx
push edx
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov eax, dword [0x4ab298]
add esp, 0x10
add eax, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
mov edx, dword [0x4ab298]
add esp, 0x10
add edx, 9
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.0044e4a2
push esi
call fcn.0044d6ef
add esp, 0x14
push 0
add ebp, 0x6b0
push str.trs_tmp.
push ebp
call fcn.0040c090
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ce00
mov eax, dword [eax]
push eax
call fcn.0045fb2d
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.00462fb7
call fcn.00403010
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [0x4ab290], 1
jne 0x41d074
test eax, eax
lea edx, [esp + 0x33c]
mov edi, str.SoftwareAdobeAcrobat_Reader5.0AdobeViewer
je 0x41d00e
mov edi, str.SoftwareAdobeAcrobat_Reader6.0AdobeViewer
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x33c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push reloc.t40shapi.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d074
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push 4
push eax
push 4
push 0
push str.TrustedMode
push ecx
mov dword [esp + 0x3c], 1
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebp
cmp dword [0x4ab290], 2
jne 0x41d0fc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x23c]
test eax, eax
mov edi, str..DEFAULTSoftwareAdobeAcrobat_Reader5.0AdobeViewer
je 0x41d096
mov edi, str..DEFAULTSoftwareAdobeAcrobat_Reader6.0AdobeViewer
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push reloc.t40shapi.dll_Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d0fc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push str.TrustedMode
push ecx
mov dword [esp + 0x38], 1
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x41cff0
lea ecx, [esp + 0x18]
mov byte [esp + 0x844], 0
call fcn.00462fb7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x844], 0xffffffff
call fcn.00462fb7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
pop ebp
mov dword fs:[0], ecx
add esp, 0x838
ret