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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b851
push eax
mov dword fs:[0], esp
sub esp, 0x82c
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x1c]
test al, al
je 0x41a4c2
push ebx
push esi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.0041b910
xor ebx, ebx
push str.config.xml
lea ecx, [esp + 0x20]
mov dword [esp + 0x848], ebx
call fcn.0046eb2f
cmp dword [ebp + 0x2ac], ebx
je 0x419fef
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004090a0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419fef
push esi
push str._sysconf__n
call fcn.0045871c
push esi
push str._listcolor_
call fcn.0045871c
mov edx, dword [ebp + 0x220]
add esp, 0x10
push edx
push str.0x_lx
push esi
call fcn.00459452
push esi
push str.__listcolor__n
call fcn.0045871c
push esi
push str._treecolor_
call fcn.0045871c
mov eax, dword [ebp + 0x21c]
add esp, 0x1c
push eax
push str.0x_lx
push esi
call fcn.00459452
push esi
push str.__treecolor__n
call fcn.0045871c
push esi
push str._FrmWide_
call fcn.0045871c
mov eax, dword [ebp + 0x224]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004090e0
mov edx, dword [eax]
add esp, 0x24
push edx
push 0x4b151c
push esi
call fcn.00459452
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0046e753
push esi
push str.__FrmWide__n
call fcn.0045871c
push esi
push str._HitBefore_
call fcn.0045871c
mov eax, dword [ebp + 0x228]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004090e0
mov ecx, dword [eax]
add esp, 0x18
push ecx
push 0x4b151c
push esi
call fcn.00459452
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0046e753
push esi
push str.__HitBefore__n
call fcn.0045871c
push esi
push str._HitAfter_
call fcn.0045871c
mov eax, dword [ebp + 0x22c]
lea edx, [esp + 0x20]
push eax
push edx
call fcn.004090e0
mov eax, dword [eax]
add esp, 0x18
push eax
push 0x4b151c
push esi
call fcn.00459452
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0046e753
push esi
push str.__HitAfter__n
call fcn.0045871c
push esi
push str._PdfSplit_
call fcn.0045871c
mov ecx, dword [ebp + 0x24c]
add esp, 0x10
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__PdfSplit__n
call fcn.0045871c
push esi
push str._FilenameTitle_
call fcn.0045871c
mov edx, dword [ebp + 0x268]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__FilenameTitle__n
call fcn.0045871c
push esi
push str._SaveMakedText_
call fcn.0045871c
mov eax, dword [ebp + 0x250]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__SaveMakedText__n
call fcn.0045871c
push esi
push str._HideBase_
call fcn.0045871c
mov ecx, dword [ebp + 0x238]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__HideBase__n
call fcn.0045871c
push esi
push str._MaxCDSize_
call fcn.0045871c
mov edx, dword [ebp + 0x23c]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MaxCDSize__n
call fcn.0045871c
push esi
push str._ColvalMode_
call fcn.0045871c
mov eax, dword [ebp + 0x254]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__ColvalMode__n
call fcn.0045871c
push esi
push str._MenuCopy_
call fcn.0045871c
mov ecx, dword [ebp + 0x26c]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuCopy__n
call fcn.0045871c
push esi
push str._MenuPrint_
call fcn.0045871c
mov edx, dword [ebp + 0x270]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuPrint__n
call fcn.0045871c
push esi
push str._MenuSave_
call fcn.0045871c
mov eax, dword [ebp + 0x274]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuSave__n
call fcn.0045871c
push esi
push str._MenuSearch_
call fcn.0045871c
mov ecx, dword [ebp + 0x278]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuSearch__n
call fcn.0045871c
push esi
push str._MenuGohit_
call fcn.0045871c
mov edx, dword [ebp + 0x27c]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuGohit__n
call fcn.0045871c
push esi
push str._MenuGorec_
call fcn.0045871c
mov eax, dword [ebp + 0x280]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuGorec__n
call fcn.0045871c
push esi
push str._MenuHfont_
call fcn.0045871c
mov ecx, dword [ebp + 0x284]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuHfont__n
call fcn.0045871c
push esi
push str._MenuOutlineCol_
call fcn.0045871c
mov edx, dword [ebp + 0x288]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuOutlineCol__n
call fcn.0045871c
push esi
push str._MenuSearchCol_
call fcn.0045871c
mov eax, dword [ebp + 0x294]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuSearchCol__n
call fcn.0045871c
push esi
push str._MenuDetailCol_
call fcn.0045871c
mov ecx, dword [ebp + 0x28c]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuDetailCol__n
call fcn.0045871c
push esi
push str._MenuSortCol_
call fcn.0045871c
mov edx, dword [ebp + 0x290]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuSortCol__n
call fcn.0045871c
push esi
push str._MenuAddData_
call fcn.0045871c
mov eax, dword [ebp + 0x298]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuAddData__n
call fcn.0045871c
push esi
push str._MenuReg_
call fcn.0045871c
mov ecx, dword [ebp + 0x29c]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__MenuReg__n
call fcn.0045871c
push esi
push str._AlwayChk_
call fcn.0045871c
mov edx, dword [ebp + 0x240]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__AlwayChk__n
call fcn.0045871c
push esi
push str._QuickExit_
call fcn.0045871c
mov eax, dword [ebp + 0x244]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__QuickExit__n
call fcn.0045871c
push esi
push str._LayoutMode_
call fcn.0045871c
mov ecx, dword [ebp + 0x248]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__LayoutMode__n
call fcn.0045871c
push esi
push str._NeedCD_
call fcn.0045871c
mov edx, dword [ebp + 0x258]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__NeedCD__n
call fcn.0045871c
push esi
push str._NeedShare_
call fcn.0045871c
mov eax, dword [ebp + 0x25c]
add esp, 0x1c
push eax
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__NeedShare__n
call fcn.0045871c
push esi
push str._NeedMax_
call fcn.0045871c
mov ecx, dword [ebp + 0x260]
add esp, 0x1c
push ecx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__NeedMax__n
call fcn.0045871c
push esi
push str._StoreFile_
call fcn.0045871c
mov edx, dword [ebp + 0x264]
add esp, 0x1c
push edx
push 0x4afc7c
push esi
call fcn.00459452
push esi
push str.__StoreFile__n
call fcn.0045871c
push esi
push str.__sysconf_
call fcn.0045871c
push esi
call fcn.004090d0
add esp, 0x20
lea eax, [ebp + 0x11c]
lea ecx, [esp + 0x18]
push eax
call fcn.0046e7c1
push str.config_trsmin.ini
lea ecx, [esp + 0x1c]
mov byte [esp + 0x848], 1
call fcn.0046eb2f
mov eax, dword [ebp + 0x2b0]
mov esi, dword [esp + 0x18]
cmp eax, ebx
je 0x41a0a1
mov edx, dword [ebp + 0x2a0]
lea ecx, [esp + 0x28]
push 0xa
push ecx
push edx
call fcn.0045ac5b
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea eax, [esp + 0x28]
push esi
push eax
push str.prepage
push str.option
call edi
mov edx, dword [ebp + 0x2a4]
lea ecx, [esp + 0x28]
push 0xa
push ecx
push edx
call fcn.0045ac5b
add esp, 0xc
lea eax, [esp + 0x28]
push esi
push eax
push str.ThumbWidth
push str.option
call edi
mov edx, dword [ebp + 0x2a8]
lea ecx, [esp + 0x28]
push 0xa
push ecx
push edx
call fcn.0045ac5b
add esp, 0xc
lea eax, [esp + 0x28]
push esi
push eax
push str.ThumbHeight
push str.option
call edi
mov eax, dword [ebp + 0x80c]
xor esi, esi
cmp eax, ebx
jle 0x41a0cf
xor edi, edi
mov eax, dword [ebp + 0x808]
mov ecx, edi
add ecx, eax
call fcn.0040ecb0
mov eax, dword [ebp + 0x80c]
inc esi
add edi, 0x274
cmp esi, eax
jl 0x41a0af
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41a0df
push eax
call fcn.0043f480
mov dword [ebp + 0x18], ebx
mov cl, byte [0x4bfab8]
xor eax, eax
mov byte [esp + 0x3c], cl
mov ecx, 0x7f
lea edi, [esp + 0x3d]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x1ff
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [esp + 0x3c]
test al, al
je 0x41a15b
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 0x41a141
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 0x41a15b
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 0x41a113
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 0x4afd1c
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.0045879b
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41a249
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x41a240
push esi
lea ecx, [esp + 0x640]
push 0x1ff
push ecx
mov byte [esp + 0x648], 0
call fcn.00459556
add esp, 0xc
lea edx, [esp + 0x63c]
lea ecx, [esp + 0x14]
push edx
call fcn.0046e7c1
push 0x4b0fe4
lea ecx, [esp + 0x18]
mov byte [esp + 0x848], 2
call fcn.0046bb1f
mov eax, dword [esp + 0x14]
push eax
call fcn.0046b2fd
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x844], 1
call fcn.0046e753
test byte [esi + 0xc], bl
je 0x41a1d8
push esi
call fcn.0045869f
add esp, 4
lea ecx, [esp + 0x43c]
push 0x4b162c
push ecx
call fcn.0045879b
mov esi, eax
add esp, 8
test esi, esi
je 0x41a334
mov edx, dword [0x4c0664]
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.00459452
mov ecx, dword [0x4c0664]
add esp, 0x10
add ecx, 4
lea edx, [esp + 0x3c]
push ecx
push edx
push str._s_shm_lu_n
push esi
call fcn.00459452
mov eax, dword [0x4c0664]
add esp, 0x10
add eax, 5
lea ecx, [esp + 0x3c]
push eax
push ecx
push str._s_shm_lu_n
push esi
call fcn.00459452
mov edx, dword [0x4c0664]
add esp, 0x10
add edx, 6
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.00459452
mov ecx, dword [0x4c0664]
add esp, 0x10
add ecx, 7
lea edx, [esp + 0x3c]
push ecx
push edx
push str._s_shm_lu_n
push esi
call fcn.00459452
mov eax, dword [0x4c0664]
add esp, 0x10
add eax, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
push str._s_shm_lu_n
push esi
call fcn.00459452
mov edx, dword [0x4c0664]
add esp, 0x10
add edx, 9
lea eax, [esp + 0x3c]
push edx
push eax
push str._s_shm_lu_n
push esi
call fcn.00459452
push esi
call fcn.0045869f
add esp, 0x14
push 0
add ebp, 0x6b4
push str.trs_tmp.
push ebp
call fcn.0040b080
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040bdf0
mov eax, dword [eax]
push eax
call fcn.0046b2fd
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.0046e753
call fcn.00403120
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 [0x4c065c], 1
jne 0x41a400
test eax, eax
lea edx, [esp + 0x33c]
mov edi, str.SoftwareAdobeAcrobat_Reader5.0AdobeViewer
je 0x41a39a
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 0x41a400
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 [0x4c065c], 2
jne 0x41a488
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x23c]
test eax, eax
mov edi, str..DEFAULTSoftwareAdobeAcrobat_Reader5.0AdobeViewer
je 0x41a422
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 0x41a488
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 0x41a37c
lea ecx, [esp + 0x18]
mov byte [esp + 0x844], 0
call fcn.0046e753
lea ecx, [esp + 0x1c]
mov dword [esp + 0x844], 0xffffffff
call fcn.0046e753
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
pop ebp
mov dword fs:[0], ecx
add esp, 0x838
ret