Function at 0x41a439
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x154], ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov edi, eax
push 0x522d98
shr edi, 1
push edi
push ebx
push 0x4c3098
mov dword [ebp - 0x150], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
mov edx, str.SaveSettings
inc esi
mov ecx, ebx
push esi
call fcn.0040f633
test eax, eax
mov edx, str.SaveRecentFiles
mov ecx, ebx
cmovne eax, esi
xor esi, esi
push esi
mov dword [0x5278b8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.SaveFindReplace
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x52a6c4], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.CloseFind
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x526cd4], eax
call fcn.0040f633
mov ecx, dword [0x524fb8]
test eax, eax
push 1
mov dword [0x524fb4], eax
mov edx, str.CloseReplace
pop eax
cmovne ecx, eax
mov dword [0x524fb8], ecx
mov ecx, ebx
push esi
call fcn.0040f633
push 1
test eax, eax
mov edx, str.NoFindWrap
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x524fb8], eax
call fcn.0040f633
push 1
pop ecx
test eax, eax
mov edx, str.OpenWithDir
push 0x104
cmovne eax, ecx
mov ecx, ebx
push 0x52aba0
push 0x4bc498
mov dword [0x524fbc], eax
call fcn.0040f575
add esp, 0x24
test eax, eax
jne 0x41a565
inc eax
push eax
push 0x10
push 0x52aba0
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41a579
push ecx
push 0x104
xor edx, edx
mov ecx, 0x52aba0
call fcn.004109df
pop ecx
pop ecx
push 0x104
push 0x52a6e0
push 0x4bc498
mov edx, 0x4c32ac
mov ecx, ebx
call fcn.0040f575
add esp, 0xc
test eax, eax
jne 0x41a5ad
push 0x52a6e0
push esi
push esi
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x41a5c1
push ecx
push 0x104
xor edx, edx
mov ecx, 0x52a6e0
call fcn.004109df
pop ecx
pop ecx
push esi
mov edx, str.PathNameFormat
mov ecx, ebx
call fcn.0040f633
push 2
pop ecx
cmp eax, ecx
mov edx, str.WordWrap
push esi
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x5278e0], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.WordWrapMode
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x52a5f0], eax
mov dword [0x52a660], eax
call fcn.0040f633
xor edx, edx
inc edx
cmp eax, edx
mov ecx, edx
push esi
cmovl ecx, eax
mov edx, str.WordWrapIndent
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52ab64], eax
call fcn.0040f633
push 6
pop edx
cmp eax, edx
mov ecx, edx
push 0x16
cmovl ecx, eax
mov edx, str.WordWrapSymbols
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52adb4], eax
call fcn.0040f633
add esp, 0x14
mov dword [ebp - 0x14c], eax
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, edx
cmp ecx, 2
jge 0x41a673
test ecx, ecx
jle 0x41a676
mov esi, ecx
jmp 0x41a676
push 2
pop esi
mov eax, dword [ebp - 0x14c]
cdq
mov dword [ebp - 0x14c], 0x64
idiv dword [ebp - 0x14c]
push 0xa
sub edx, ecx
mov eax, edx
cdq
pop ecx
idiv ecx
cmp eax, 2
jge 0x41a6a4
test eax, eax
jg 0x41a6a7
xor eax, eax
jmp 0x41a6a7
push 2
pop eax
imul eax, eax, 0xa
mov edx, str.ShowWordWrapSymbols
mov ecx, ebx
add eax, esi
xor esi, esi
push esi
mov dword [0x52a6ac], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.MatchBraces
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x52adb8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.AutoCloseTags
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x5278d0], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.HighlightCurrentLine
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x5278cc], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.AutoIndent
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x52a5b4], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.AutoCompleteWords
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x5278c8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.ShowIndentGuides
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x526ce8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.TabsAsSpaces
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x527684], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.TabIndents
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x52a6c0], eax
mov dword [0x52a5e8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.BackspaceUnindents
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x52a6a8], eax
mov dword [0x52a684], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.TabWidth
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 2
mov dword [0x52ab90], eax
call fcn.0040f633
mov esi, 0x100
cmp eax, esi
mov ecx, esi
push 0
cmovl ecx, eax
xor edx, edx
inc edx
cmp ecx, edx
mov eax, edx
mov edx, str.IndentWidth
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52ab88], eax
mov dword [0x52a680], eax
call fcn.0040f633
cmp eax, esi
mov ecx, esi
push 0
cmovl ecx, eax
mov edx, str.MarkLongLines
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52ab68], eax
mov dword [0x52a5e0], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.LongLinesLimit
pop esi
cmovne eax, esi
mov ecx, ebx
push 0x48
mov dword [0x52a5b0], eax
call fcn.0040f633
mov ecx, 0x1000
mov edx, str.LongLineMode
cmp eax, ecx
push esi
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52a678], eax
mov dword [0x52a670], eax
call fcn.0040f633
push 2
pop ecx
cmp eax, ecx
mov edx, str.ShowSelectionMargin
push 0
cmovl ecx, eax
mov eax, esi
cmp ecx, esi
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52ab60], eax
call fcn.0040f633
add esp, 0x40
test eax, eax
cmovne eax, esi
mov edx, str.ShowLineNumbers
push esi
mov ecx, ebx
mov dword [0x52a134], eax
call fcn.0040f633
test eax, eax
mov edx, str.ShowCodeFolding
push esi
cmovne eax, esi
mov ecx, ebx
mov dword [0x5278ac], eax
call fcn.0040f633
test eax, eax
mov edx, str.MarkOccurrences
push 3
cmovne eax, esi
mov ecx, ebx
pop esi
push esi
mov dword [0x526f0c], eax
call fcn.0040f633
push 0
mov edx, str.MarkOccurrencesMatchCase
mov dword [0x5275e4], eax
mov ecx, ebx
call fcn.0040f633
mov dword [0x526cdc], eax
mov edx, str.MarkOccurrencesMatchWholeWords
xor eax, eax
mov ecx, ebx
inc eax
push eax
call fcn.0040f633
push 0
mov edx, str.ViewWhiteSpace
mov dword [0x5278c4], eax
mov ecx, ebx
call fcn.0040f633
push 1
test eax, eax
mov edx, str.ViewEOLs
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 0
mov dword [0x526ce0], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.DefaultEncoding
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 0
mov dword [0x5278f0], eax
call fcn.0040f633
mov dword [0x52a688], eax
xor eax, eax
lea ecx, [eax + 1]
call fcn.004058ce
mov ecx, eax
mov dword [0x52a688], eax
call fcn.00405a89
mov ecx, dword [0x52a688]
test eax, eax
push 6
pop eax
cmove ecx, eax
mov edx, str.SkipUnicodeDetection
mov dword [0x52a688], ecx
mov ecx, ebx
push 0
call fcn.0040f633
push 1
test eax, eax
mov edx, str.LoadASCIIasUTF8
pop ecx
cmovne eax, ecx
mov dword [0x52adb0], eax
push 0
mov ecx, ebx
call fcn.0040f633
push 1
test eax, eax
mov edx, str.LoadNFOasOEM
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x52ab7c], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.NoEncodingTags
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 0
mov dword [0x52ab6c], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.DefaultEOLMode
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 0
mov dword [0x52a6b0], eax
call fcn.0040f633
push 2
pop ecx
cmp eax, ecx
mov edx, str.FixLineEndings
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52a66c], eax
xor eax, eax
inc eax
push eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.FixTrailingBlanks
pop ecx
cmovne eax, ecx
mov ecx, ebx
push 0
mov dword [0x52a6b8], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.PrintHeader
pop ecx
cmovne eax, ecx
push ecx
mov ecx, ebx
mov dword [0x52a694], eax
call fcn.0040f633
add esp, 0x40
mov ecx, esi
cmp eax, esi
mov edx, str.PrintFooter
cmovl ecx, eax
xor eax, eax
test ecx, ecx
push 0
cmovg eax, ecx
mov ecx, ebx
mov dword [0x527548], eax
call fcn.0040f633
xor edx, edx
inc edx
cmp eax, edx
mov ecx, edx
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
push esi
mov edx, str.PrintColorMode
mov dword [0x52768c], eax
mov ecx, ebx
call fcn.0040f633
push 4
pop ecx
cmp eax, ecx
mov edx, str.PrintZoom
push 0xa
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x5278c0], eax
pop eax
push eax
call fcn.0040f633
add eax, 0xfffffff6
push 0x14
pop edx
cmp eax, edx
mov ecx, edx
push 0xfffffffffffffff6
cmovl ecx, eax
cmovl edx, eax
pop eax
cmp ecx, eax
mov ecx, ebx
cmovg eax, edx
or esi, 0xffffffff
push esi
mov edx, str.PrintMarginLeft
mov dword [0x52a5c8], eax
call fcn.0040f633
cmp eax, esi
mov ecx, esi
push esi
cmovg ecx, eax
mov edx, str.PrintMarginTop
mov dword [0x52a5d0], ecx
mov ecx, ebx
call fcn.0040f633
cmp eax, esi
mov ecx, esi
push esi
cmovg ecx, eax
mov edx, str.PrintMarginRight
mov dword [0x52a5d4], ecx
mov ecx, ebx
call fcn.0040f633
cmp eax, esi
mov ecx, esi
push esi
cmovg ecx, eax
mov edx, str.PrintMarginBottom
mov dword [0x52a5d8], ecx
mov ecx, ebx
call fcn.0040f633
cmp eax, esi
mov edx, str.SaveBeforeRunningTools
mov ecx, ebx
cmovg esi, eax
mov dword [0x52a5dc], esi
xor esi, esi
push esi
call fcn.0040f633
push 1
test eax, eax
mov edx, str.FileWatchingMode
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x52a5c4], eax
call fcn.0040f633
push 2
pop ecx
cmp eax, ecx
cmovl ecx, eax
xor eax, eax
mov edx, str.ResetFileWatching
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52a6b4], eax
xor eax, eax
inc eax
push eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.EscFunction
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x52ada8], eax
call fcn.0040f633
push 2
pop ecx
cmp eax, ecx
mov edx, str.AlwaysOnTop
push esi
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [0x52754c], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.MinimizeToTray
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x526cd0], eax
call fcn.0040f633
push 1
test eax, eax
mov edx, str.TransparentMode
pop ecx
cmovne eax, ecx
mov ecx, ebx
push esi
mov dword [0x5275e8], eax
call fcn.0040f633
add esp, 0x38
test eax, eax
push 1
pop esi
push str.SetLayeredWindowAttributes
cmovne eax, esi
push str.User32
mov dword [0x527688], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
mov edx, str.ToolbarButtons
push 0x200
sbb eax, eax
mov ecx, ebx
neg eax
push 0x526f20
push 0x4bc498
mov dword [0x52a5c0], eax
call fcn.0040f575
push esi
mov edx, str.ShowToolbar
mov ecx, ebx
call fcn.0040f633
test eax, eax
mov edx, str.ShowStatusbar
push esi
cmovne eax, esi
mov ecx, ebx
mov dword [0x527550], eax
call fcn.0040f633
test eax, eax
mov edx, str.EncodingDlgSizeX
push 0x100
cmovne eax, esi
mov ecx, ebx
mov dword [0x5278ec], eax
call fcn.0040f633
xor ecx, ecx
mov esi, 0x106
test eax, eax
mov edx, str.EncodingDlgSizeY
push esi
cmovg ecx, eax
mov dword [0x52ab84], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.RecodeDlgSizeX
test eax, eax
push 0x100
cmovg ecx, eax
mov dword [0x52adac], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.RecodeDlgSizeY
test eax, eax
push esi
cmovg ecx, eax
mov dword [0x52ab5c], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.FileMRUDlgSizeX
test eax, eax
push 0x19c
cmovg ecx, eax
mov dword [0x52ab78], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.FileMRUDlgSizeY
test eax, eax
push 0x178
cmovg ecx, eax
mov dword [0x52ab80], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.OpenWithDlgSizeX
test eax, eax
push 0x180
cmovg ecx, eax
mov dword [0x52a6bc], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.OpenWithDlgSizeY
test eax, eax
push 0x182
cmovg ecx, eax
mov dword [0x52a6a4], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.FavoritesDlgSizeX
test eax, eax
push 0x14e
cmovg ecx, eax
mov dword [0x52ab70], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
mov edx, str.FavoritesDlgSizeY
test eax, eax
push 0x13c
cmovg ecx, eax
mov dword [0x52a69c], ecx
mov ecx, ebx
call fcn.0040f633
xor ecx, ecx
test eax, eax
mov edx, str.FindReplaceDlgPosX
push 0
cmovg ecx, eax
mov dword [0x52ab58], ecx
mov ecx, ebx
call fcn.0040f633
add esp, 0x40
mov dword [0x52a674], eax
mov edx, str.FindReplaceDlgPosY
mov ecx, ebx
push 0
call fcn.0040f633
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp], 0x522d98
push edi
push ebx
push str.Settings2
mov dword [0x52a668], eax
call esi
push 0
mov edx, str.StickyWindowPosition
mov ecx, ebx
call fcn.0040f633
push 1
pop ecx
test eax, eax
mov edx, str.DefaultExtension
push 0x40
cmovne eax, ecx
mov ecx, ebx
push 0x527560
push 0x4c3b24
mov dword [0x5278b0], eax
call fcn.0040f575
add esp, 0x10
push str.__t._
push 0x527560
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0x104
push 0x526d00
push 0x4bc498
mov edx, str.DefaultDirectory
mov ecx, ebx
call fcn.0040f575
push 0x2800
push 0
push 0x527900
call fcn.00489f20
push 0x13fe
push 0x527900
push 0x4bc498
mov edx, str.FileDlgFilters
mov ecx, ebx
call fcn.0040f575
push 0x7d0
mov edx, str.FileCheckInverval
mov ecx, ebx
call fcn.0040f633
push 0x7d0
mov edx, str.AutoReloadTimeout
mov dword [0x5278dc], eax
mov ecx, ebx
call fcn.0040f633
add esp, 0x2c
mov dword [0x527690], eax
push 0x522d98
push edi
push ebx
push str.Toolbar_Images
call esi
mov esi, 0x104
mov edi, 0x4bc498
push esi
push 0x5276a0
push edi
mov edx, str.BitmapDefault
mov ecx, ebx
call fcn.0040f575
push esi
push 0x52a140
push edi
mov edx, str.BitmapHot
mov ecx, ebx
call fcn.0040f575
push esi
push 0x527340
push edi
mov edx, str.BitmapDisabled
mov ecx, ebx
call fcn.0040f575
add esp, 0x24
cmp dword [0x523a14], 0
jne 0x41afe9
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov ebx, eax
xor eax, eax
inc eax
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, eax
push edi
push ebx
lea eax, [ebp - 0x48]
push str._ix_i_PosX
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x88]
push str._ix_i_PosY
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0xc8]
push str._ix_i_SizeX
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x108]
push str._ix_i_SizeY
push eax
call esi
add esp, 0x40
lea eax, [ebp - 0x148]
push edi
push ebx
push str._ix_i_Maximized
push eax
call esi
mov ebx, dword [ebp - 0x154]
add esp, 0x10
push 0x522d98
push dword [ebp - 0x150]
push ebx
push str.Window
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov esi, 0x80000000
lea edx, [ebp - 0x48]
push esi
mov ecx, ebx
call fcn.0040f633
push esi
lea edx, [ebp - 0x88]
mov dword [0x52a120], eax
mov ecx, ebx
call fcn.0040f633
push esi
lea edx, [ebp - 0xc8]
mov dword [0x52a124], eax
mov ecx, ebx
call fcn.0040f633
push esi
lea edx, [ebp - 0x108]
mov dword [0x52a128], eax
mov ecx, ebx
call fcn.0040f633
push 0
lea edx, [ebp - 0x148]
mov dword [0x52a12c], eax
mov ecx, ebx
call fcn.0040f633
add esp, 0x14
test eax, eax
push 1
pop ecx
cmovne eax, ecx
mov dword [0x52a130], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x52a664], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a4
je 0x41b027
cmp eax, 0x3a8
je 0x41b027
cmp eax, 0x3b5
je 0x41b027
cmp eax, 0x3b6
je 0x41b027
cmp eax, 0x551
je 0x41b027
mov eax, dword [0x52a664]
jmp 0x41b02c
mov dword [0x52a664], eax
push 2
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [0x52a100], eax
call fcn.0041fe6a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret