Function at 0x18000ad50
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
cmp byte [rcx + 0x4c], 0
mov rbx, rcx
jne 0x18000ad8e
mov eax, dword [rcx + 0x3c]
cmp dword [rcx + 0xa8], eax
je 0x18000b6ce
mov rcx, qword [0x1800818d0]
lea r9, [rbp - 0x40]
mov edx, 0x816
mov r8d, 0x104
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000ae16
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000ae16
lea rax, [rbp - 0x40]
mov edx, 0x184
lea r9, str.Notepad_plugins_config_folder_n_s_ndoesnt_exist_and_failed_to_be_created._nCannot_write_configuration_file.
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call fcn.1800017b0
mov rcx, qword [0x1800818d0]
lea r8, [0x18005dc60]
mov r9d, 0x30
lea rdx, [rbp + 0x1d0]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x18000b6ce
mov qword [rsp + 0x608], rsi
lea rdx, str.ComparePlus.ini
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x610], rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, str.w__ccsUNICODE
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.180042bac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000ae5b
call fcn.180042de8
cmp dword [rbx + 4], 1
lea rdi, [0x18005daf4]
mov r8, rdi
lea rsi, [0x18005daf0]
cmove r8, rsi
lea r9, [rbp - 0x40]
lea rdx, str.new_in_sub_view
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x18000aede
lea rax, [rbp - 0x40]
mov edx, 0x144
lea r9, str.Failed_to_write_n_s_nconfiguration_file.
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call fcn.1800017b0
mov rcx, qword [0x1800818d0]
lea r8, [0x18005dc60]
mov r9d, 0x30
lea rdx, [rbp + 0x1d0]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x18000b6be
cmp byte [rbx], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.set_first_as_new
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 8], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.default_compare_to_prev
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 9], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.check_encodings
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xa], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.align_all_matches
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xb], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.never_colorize_ignored_lines
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xc], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.following_caret
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xd], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.wrap_around
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xe], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.go_to_first_on_recompare
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0xf], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.prompt_to_close_on_match
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x10], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.detect_moves
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x11], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.detect_character_diffs
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x12], 0
lea r9, [rbp - 0x40]
mov r8, rdi
cmovne r8, rsi
lea rdx, str.best_seq_changed_lines
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x13], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ignore_changed_spaces
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x14], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ignore_all_spaces
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x15], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ignore_empty_lines
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x16], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ignore_case
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x17], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ignore_regex
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rbx + 0x30], 8
lea r8, [rbx + 0x18]
jb 0x18000b13e
mov r8, qword [r8]
lea r9, [rbp - 0x40]
lea rdx, str.ignore_regex_string
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x38], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.show_only_diffs
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x39], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.show_only_selections
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x3a], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.navigation_bar
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x3b], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.recompare_on_change
cmovne r8, rsi
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x3c]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
mov dword [rbx + 0xa8], ecx
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.status_type
lea rcx, str.main_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x50]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.added
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x54]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.removed
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x5c]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.moved
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x58]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.changed
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x68]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.added_highlight
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x6c]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.removed_highlight
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x70]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.highlight_transparency
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x74]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.caret_line_transparency
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x78]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.added_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x7c]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.removed_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x84]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.moved_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x80]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.changed_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.added_highlight_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x94]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.removed_highlight_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x98]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.highlight_transparency_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x9c]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.caret_line_transparency_dark
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [rbx + 0x40]
lea rdx, [rsp + 0x40]
mov r9d, 0xa
lea r8d, [r9 + 0x36]
call fcn.180042d44
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rdx, str.changed_threshold_percentage
lea rcx, str.color_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x44], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.enable_toolbar
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x45], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.set_as_first_tb
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x46], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.compare_tb
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x47], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.compare_selection_tb
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x48], 0
mov r8, rdi
cmovne r8, rsi
lea r9, [rbp - 0x40]
lea rdx, str.clear_compare_tb
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x49], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.navigation_tb
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x4a], 0
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.show_only_diffs_tb
cmovne r8, rsi
lea rcx, str.toolbar_settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x4b], 0
lea r9, [rbp - 0x40]
lea rdx, str.nav_bar_tb
cmovne rdi, rsi
lea rcx, str.toolbar_settings
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [rbx + 0x4c], 0
mov rsi, qword [rsp + 0x608]
mov rdi, qword [rsp + 0x610]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180037cc0
mov rbx, qword [rsp + 0x618]
add rsp, 0x5f0
pop rbp
ret