Function at 0x421680
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b60e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareNotepad2
push 0x80000001
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], edi
call ebx
cmp eax, edi
jne 0x4216ea
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
push 4
lea edx, [esp + 0x28]
push edx
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.InternalVersion
push esi
mov dword [esp + 0x3c], 0x3ee
call edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareNotepad2Settings
push 0x80000001
mov dword [esp + 0x40], 0
call ebx
test eax, eax
jne 0x42174c
test esi, esi
je 0x421744
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov edx, dword [ebp + 0x50]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.FindFlag
push esi
mov dword [esp + 0x3c], edx
call edi
cmp dword [0x4e65d4], 0x10
mov edx, dword [0x4e65c0]
jae 0x42177a
mov edx, 0x4e65c0
mov eax, edx
lea ebx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421780
sub eax, ebx
add eax, 1
push eax
push edx
push 1
push 0
push str.OpenWithDir
push esi
call edi
cmp dword [0x4e65f0], 0x10
mov ecx, dword [0x4e65dc]
jae 0x4217b0
mov ecx, 0x4e65dc
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4217b5
sub eax, ebx
add eax, 1
push eax
push ecx
push 1
push 0
push str.Favorites
push esi
call edi
movzx ecx, byte [ebp + 0x30]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bShortPathNames
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x40]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bWordWrap
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, word [ebp + 0x34]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.iWordWrapIndent
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x36]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.iWordWrapSymbols
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x37]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bShowWordWrapSymbols
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x41]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.bMatchBraces
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x42]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bAutoIndent
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x43]
mov dword [esp + 0x24], eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bAutoCloseTags
push esi
call edi
movzx edx, byte [ebp + 0x44]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.bShowIndentGuides
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x38]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bTabsAsSpaces
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, word [ebp + 0x3a]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.iTabWidth
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x3f]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.bMarkLongLines
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, word [ebp + 0x3c]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.iLongLinesLimit
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x3e]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.iLongLineMode
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x45]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.bShowSelectionMargin
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x46]
mov dword [esp + 0x24], ecx
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bShowLineNumbers
push esi
call edi
movzx eax, byte [ebp + 0x47]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bViewWhiteSpace
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x48]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.bViewEOLs
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x49]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.iDefaultEOLMode
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x4a]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.iPrintHeader
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x4b]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.iPrintFooter
push esi
mov dword [esp + 0x3c], edx
call edi
movsx ecx, byte [ebp + 0x4c]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.iPrintZoom
add ecx, 0xa
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x31]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bSaveBeforeRunningTools
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, byte [ebp + 0x32]
mov dword [esp + 0x24], edx
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.iEscFunction
push esi
call edi
movzx ecx, byte [ebp + 0x2c]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bAlwaysOnTop
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x2d]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bMinimizeToTray
push esi
mov dword [esp + 0x3c], eax
call edi
movzx edx, word [ebp + 0x2e]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.iTransparent
push esi
mov dword [esp + 0x3c], edx
call edi
movzx ecx, byte [ebp + 0x4d]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push str.bShowToolbar
push esi
mov dword [esp + 0x3c], ecx
call edi
movzx eax, byte [ebp + 0x4e]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.bShowStatusbar
push esi
mov dword [esp + 0x3c], eax
call edi
push 0x10
push 0x4f11d0
push 3
push 0
push str.PrintMargin
push esi
call edi
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x421b09
push esi
call ebx
xor esi, esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareNotepad2Window
push 0x80000001
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421b4b
test esi, esi
je 0x421b43
push esi
call ebx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
push 0x14
push 0x4f11e4
push 3
push 0
push str.MainWnd
push esi
call edi
test esi, esi
je 0x421b6b
push esi
call ebx
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], CreateStatusWindowA
push str.SoftwareNotepad2Editors
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 1
call fcn.0042cab0
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x30], 0
je 0x421b96
push eax
call ebx
mov eax, dword [0x4f1204]
test eax, eax
je 0x421d20
mov ecx, dword [0x4f1208]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x421d20
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareNotepad2Editors
push 0x80000001
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421d20
test esi, esi
je 0x421c02
push esi
call ebx
test eax, eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x421d20
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea ebx, [ebx]
mov ecx, dword [0x4f1204]
test ecx, ecx
je 0x421d0f
mov ebx, dword [0x4f1208]
sub ebx, ecx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
cmp edx, eax
jae 0x421d09
mov ebx, dword [esp + 0x24]
cmp dword [ebx + ecx + 0x34], 0x10
jb 0x421c6a
mov edx, dword [ebx + ecx + 0x20]
mov dword [esp + 0x20], edx
jmp 0x421c72
lea eax, [ebx + ecx + 0x20]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x421c9e
mov eax, dword [0x4f1208]
sub eax, ecx
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, 0x92492493
imul edx
add edx, dword [esp + 0x24]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x421ca9
call fcn.0049ed6a
mov ecx, dword [0x4f1204]
cmp dword [ebx + ecx + 0x18], 0x10
jb 0x421cba
mov ecx, dword [ebx + ecx + 4]
mov dword [esp + 0x24], ecx
jmp 0x421cc2
lea edx, [ebx + ecx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x20], ecx
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421cd0
sub eax, dword [esp + 0x20]
add eax, 1
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push 1
push 0
push edx
push eax
call edi
add dword [esp + 0x18], 1
add ebx, 0x38
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421c20
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421d20
push eax
call ebx
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], CreateStatusWindowA
push 0x4c8618
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 2
call fcn.0042cab0
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x30], 0
je 0x421d4b
push eax
call ebx
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x421e87
mov ecx, dword [ebp + 0x5c]
sub ecx, eax
sar ecx, 2
je 0x421e87
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x4c8618
push 0x80000001
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421e87
test esi, esi
je 0x421da2
push esi
call ebx
test eax, eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x421e87
xor ebx, ebx
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x421e6c
mov eax, dword [ebp + 0x5c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x421e6c
test ecx, ecx
je 0x421ddf
mov eax, dword [ebp + 0x5c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x421de4
call fcn.0049ed6a
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx + ebx*4]
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x421dfc
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x421e03
add eax, 4
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x421e13
mov eax, dword [ebp + 0x5c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x421e18
call fcn.0049ed6a
mov eax, dword [ebp + 0x58]
mov eax, dword [eax + ebx*4]
cmp dword [eax + 0x18], 0x10
jb 0x421e2d
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
jmp 0x421e34
add eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
jmp 0x421e40
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421e40
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, 1
push eax
mov eax, dword [esp + 0x28]
push edx
push 1
push 0
push eax
push ecx
call edi
add ebx, 1
jmp 0x421db4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421e81
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.0041f930
mov ecx, ebp
call fcn.0041f0e0
test esi, esi
je 0x421e9c
push esi
call ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret