Function at 0x4149a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
test eax, eax
je 0x4149bd
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp byte [ebp + 0xc], 0
je 0x414ed0
mov eax, dword [str.Editor]
push eax
lea edi, [ebp - 4]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x414a01
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x25c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.BackColor
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x260]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.ForeColor
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x264]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.TabSize
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x26c]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.WordWrap
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x268]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.LineInterval9
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x248]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.ColByPixel
push eax
mov dword [ebp - 4], ecx
call ebx
lea edi, [ebp - 0x114]
mov esi, 0x80
mov dword [ebp - 8], 0x425090
nop
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
push 0x4210d4
call fcn.0041d9d0
mov eax, edi
add esp, 8
add dword [ebp - 8], 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414b00
sub eax, edx
sar eax, 1
sub esi, eax
cmp dword [ebp - 8], 0x4250b0
lea edi, [edi + eax*2]
jl 0x414ae0
lea eax, [ebp - 0x114]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414b26
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 1
push 0
push str.BackCustomColor
push edx
call ebx
lea edi, [ebp - 0x114]
mov esi, 0x80
mov dword [ebp - 8], 0x425094
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
push 0x4210d4
call fcn.0041d9d0
mov eax, edi
add esp, 8
add dword [ebp - 8], 8
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414b80
sub eax, edx
sar eax, 1
sub esi, eax
cmp dword [ebp - 8], 0x4250b4
lea edi, [edi + eax*2]
jl 0x414b62
lea eax, [ebp - 0x114]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414ba6
mov ecx, dword [ebp - 0xc]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push str.ForeCustomColor
push ecx
call ebx
mov edx, dword [str.Settings]
push edx
lea edi, [ebp - 4]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x414c0b
mov dword [ebp + 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x425304]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.Behavior
push eax
mov dword [ebp - 4], ecx
call ebx
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x274]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x414c4f
mov ecx, 0x420450
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414c54
sub eax, esi
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
push ecx
push 1
push 0
push str.HanfntName
push eax
call ebx
mov ecx, dword [edi + 0x274]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x414c8a
mov ecx, 0x420450
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414c90
sub eax, esi
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
push ecx
push 1
push 0
push str.EngfntName
push eax
call ebx
mov ecx, dword [edi + 0x274]
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x414cc6
mov ecx, 0x420450
mov eax, ecx
lea edi, [eax + 2]
jmp 0x414cd0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414cd0
sub eax, edi
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
push ecx
push 1
push 0
push str.HanwfntName
push eax
call ebx
movzx ecx, word [0x4257ec]
mov eax, dword [ebp + 0xc]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.Language
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x425614]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.DefaultEncoding
push eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x425610]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.DefaultLineBreak
push eax
mov dword [ebp - 4], ecx
call ebx
mov ecx, dword [str.Recent_File_List]
push ecx
lea edi, [ebp - 4]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x414d8a
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov ecx, dword [0x425630]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0xc
lea esp, [esp]
push edi
push str.File_d
lea esi, [ebp - 0x114]
call fcn.0040bb00
mov edx, dword [ebp + 8]
add esp, 8
cmp edi, dword [edx + 0x280]
jg 0x414e52
mov eax, edx
mov ecx, dword [eax + 0x27c]
mov edx, dword [ebp - 4]
lea edi, [ecx + edx - 0xc]
mov ecx, dword [edi]
test ecx, ecx
jne 0x414ded
mov ecx, 0x420450
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414df2
mov edx, dword [ebp - 0x14]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
lea ecx, [ebp - 0x114]
push ecx
push edx
call ebx
mov eax, dword [ebp - 8]
push eax
push str.Encoding
push 0x420308
lea esi, [ebp - 0x114]
call fcn.0040bb00
mov ecx, dword [edi + 8]
add esp, 0xc
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push 0
mov eax, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call ebx
mov edi, dword [ebp - 8]
jmp 0x414e63
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
add eax, 0xc
inc edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
cmp eax, 0xa8
jle 0x414db0
mov ebx, dword [ebp + 8]
push str.TextFilterMRU
lea ecx, [ebp + 0xc]
add ebx, 0x284
push ecx
call fcn.004151c0
mov ebx, dword [ebp + 8]
push str.InputToolMRU
lea edx, [ebp + 0xc]
add ebx, 0x2a8
push edx
call fcn.004151c0
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x414eb9
push eax
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414ec3
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x414ecd
push eax
call esi
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [0x425810], edi
jle 0x414ef9
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, dword [0x4257f0]
mov ecx, dword [edi*8 + 0x425750]
push eax
push ecx
call ebx
inc edi
cmp edi, dword [0x425810]
jl 0x414ee0
mov eax, dword [0x4257f4]
mov ecx, dword [0x4257f0]
mov edx, 0x412
mov dword [0x425810], 0
mov edi, ecx
mov word [0x4257ec], dx
test eax, eax
je 0x414f2b
cmp eax, ecx
je 0x414f2b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esi + 0x278]
mov dword [0x4257f4], edi
test ecx, ecx
je 0x414f43
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov edi, dword [0x425624]
mov ebx, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
test edi, edi
je 0x414f83
lea eax, [edi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
lea edi, [edi + eax*4]
dec eax
mov dword [ebp + 8], eax
js 0x414f70
sub edi, 4
mov ecx, edi
call ebx
dec dword [ebp + 8]
jns 0x414f64
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x425630]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x425620]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x414fa6
call ebx
mov edx, dword [ebp + 8]
mov eax, dword [0x425630]
push edx
push 0
push eax
call edi
mov ecx, dword [0x42561c]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x414fc4
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [0x425630]
push ecx
push 0
push edx
call edi
mov eax, dword [esi + 0x274]
test eax, eax
je 0x415005
lea ecx, [eax - 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
lea edi, [eax + ecx*4]
dec ecx
mov dword [ebp + 8], ecx
js 0x414fec
nop
sub edi, 4
mov ecx, edi
call ebx
dec dword [ebp + 8]
jns 0x414fe0
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x425630]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esi + 0x27c]
test ecx, ecx
je 0x41504d
lea eax, [ecx - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
lea edx, [eax + eax*2]
dec eax
lea edi, [ecx + edx*4]
mov dword [ebp + 8], eax
js 0x415034
sub edi, 0xc
lea ecx, [edi + 4]
call ebx
mov ecx, edi
call ebx
dec dword [ebp + 8]
jns 0x415023
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x425630]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
test eax, eax
je 0x415069
mov ecx, eax
call ebx
mov edx, dword [ebp + 8]
mov eax, dword [0x425630]
push edx
push 0
push eax
call edi
mov ebx, dword [0x42562c]
test ebx, ebx
je 0x4150a9
mov edi, dword [ebx - 4]
lea eax, [ebx - 4]
lea ebx, [ebx + edi*4]
dec edi
mov dword [ebp + 8], eax
js 0x415090
sub ebx, 4
mov ecx, ebx
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_CEvaluator::destructor_void_]
dec edi
jns 0x415082
mov ecx, dword [ebp + 8]
mov edx, dword [0x425630]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x250]
mov ecx, dword [0x425630]
push eax
xor ebx, ebx
push ebx
push ecx
call edi
mov edx, dword [esi + 0x254]
mov eax, dword [0x425630]
push edx
push ebx
push eax
call edi
mov ecx, dword [esi + 0x258]
mov edx, dword [0x425630]
push ecx
push ebx
push edx
call edi
mov eax, dword [esi + 0x23c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp eax, ebx
je 0x4150f6
push eax
call edi
mov dword [esi + 0x23c], ebx
mov eax, dword [esi + 0x240]
cmp eax, ebx
je 0x415109
push eax
call edi
mov dword [esi + 0x240], ebx
cmp dword [0x4257d0], ebx
je 0x415144
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x415121
call dword [sym.imp.Ngs3.dll_public:_long_int___thiscall_CNgsObject::Release_void_]
mov dword [esi + 8], ebx
push 1
call dword [sym.imp.Ngs3.dll_public:_static_void___cdecl_CNgsUIHost::DestroyCommonData_bool_]
add esp, 4
call dword [sym.imp.Ngs3.dll_ngsUninitialize]
mov eax, dword [0x4257d0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4257d0], ebx
cmp dword [esi + 0x2cc], ebx
je 0x4151b0
mov eax, dword [esi + 0x2d0]
cmp eax, ebx
je 0x415164
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2d0], ebx
mov eax, dword [esi + 0x2d4]
cmp eax, ebx
je 0x41517c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2d4], ebx
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
je 0x415194
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2d8], ebx
mov eax, dword [esi + 0x2cc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov esi, dword [esi + 0x2cc]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8