Function at 0x421670
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5e18
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, dword [esp + 0x70]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push str.SoftwareNotepad2Settings
push 0x80000001
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x41ecd8
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.bReuseWindow
mov ebp, esi
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x18], 0
sete cl
test esi, esi
mov byte [ebx + 0x10], cl
je 0x41ecd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp byte [edi], 0
je 0x41ef60
xor esi, esi
mov eax, edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ed00
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.004068a0
cmp dword [esp + 0x38], 0
mov byte [esp + 0x68], 1
jbe 0x41ef57
push 2
push esi
push 0x4c858c
lea ecx, [esp + 0x30]
call fcn.0041c600
mov esi, eax
cmp esi, 0xffffffff
je 0x41ef90
cmp esi, dword [esp + 0x38]
jbe 0x41ed4d
call fcn.0049ed6a
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov ebp, 0x10
cmp edx, ebp
mov eax, ecx
jae 0x41ed64
lea eax, [esp + 0x28]
cmp byte [eax + esi], 0x2f
jne 0x41efbc
add esi, 1
cmp esi, dword [esp + 0x38]
jae 0x41efbc
cmp edx, ebp
jae 0x41ed83
lea ecx, [esp + 0x28]
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x41ed93
cmp al, 0x5a
jg 0x41ed93
add al, 0x20
mov byte [ecx + esi], al
movsx eax, byte [ecx + esi]
add eax, 0xffffffc1
cmp eax, 0x36
ja case.0x41edaa.64
movzx edx, byte [eax + 0x41f0a0]
jmp dword [edx*4 + 0x41f078]
mov byte [ebx + 0x17], 1
jmp case.0x41edaa.64
mov byte [ebx + 0x10], 1
jmp case.0x41edaa.64
mov byte [ebx + 0x11], 1
jmp case.0x41edaa.64
mov byte [ebx + 0x14], 1
jmp case.0x41edaa.64
mov byte [ebx + 0x15], 1
jmp case.0x41edaa.64
push 2
add esi, 1
push esi
push 0x4c858c
lea ecx, [esp + 0x30]
call fcn.0041c600
mov esi, eax
cmp esi, 0xffffffff
je 0x41ef90
cmp dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x28]
jae 0x41ee0b
lea eax, [esp + 0x28]
push 0x4f11f4
push 0x4f11f0
push 0x4f11ec
push 0x4f11e8
push 0x4f11e4
add eax, esi
push str._i__i__i__i__i
push eax
call fcn.004a09d5
add esp, 0x1c
cmp eax, 4
je 0x41ee3e
cmp eax, 5
jne 0x41ee89
mov ecx, 1
mov byte [ebx + 0x13], 1
cmp dword [0x4f11ec], ecx
jge 0x41ee59
mov dword [0x4f11ec], 0x80000000
cmp dword [0x4f11f0], ecx
jge 0x41ee6b
mov dword [0x4f11f0], 0x80000000
cmp dword [0x4f11f4], 0
je 0x41ee7a
mov dword [0x4f11f4], ecx
cmp eax, 4
jne 0x41ee89
mov dword [0x4f11f4], 0
add esi, 1
jmp 0x41eee7
push 2
push esi
push 0x4c858c
lea ecx, [esp + 0x30]
call fcn.0041c600
mov esi, eax
cmp esi, 0xffffffff
je 0x41ef90
cmp dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x28]
jae 0x41eeb8
lea eax, [esp + 0x28]
lea edi, [ebx + 0x20]
push edi
lea ebp, [ebx + 0x1c]
push ebp
add eax, esi
push str._i__i
push eax
call fcn.004a09d5
add esp, 0x10
cmp eax, 1
je 0x41eee7
cmp eax, 2
je 0x41eee7
mov dword [edi], 0
mov dword [ebp], 0
push 2
push esi
push 0x4c858c
lea ecx, [esp + 0x30]
call fcn.0041c570
mov esi, eax
cmp esi, 0xffffffff
je 0x41ef90
cmp esi, dword [esp + 0x38]
jbe 0x41ef0e
call fcn.0049ed6a
mov eax, dword [esp + 0x28]
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jae 0x41ef21
lea eax, [esp + 0x28]
cmp byte [eax + esi], 0x20
je 0x41ef49
cmp esi, dword [esp + 0x38]
jbe 0x41ef32
call fcn.0049ed6a
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x28]
jae 0x41ef40
lea eax, [esp + 0x28]
cmp byte [eax + esi], 9
je 0x41ef49
add esi, 1
cmp esi, dword [esp + 0x38]
jb 0x41ed26
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00490500
test ebp, ebp
je 0x41ef6b
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049ec31
add esp, 0x58
ret 4
mov byte [ebx + 0x12], 1
lea ecx, [esp + 0x24]
call fcn.00490500
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41ef6b
push eax
jmp 0x41ef65
lea ecx, [esp + 0x24]
mov byte [ebx + 0x16], 1
call fcn.00490500
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41ef6b
push eax
jmp 0x41ef65
cmp edx, ebp
mov eax, ecx
jae 0x41efc6
lea eax, [esp + 0x28]
add eax, esi
push eax
lea ecx, [esp + 0x44]
call fcn.00407d80
lea eax, [esp + 0x40]
push 0x4c8570
push eax
mov byte [esp + 0x70], 2
call fcn.0041d8d0
mov eax, dword [esp + 0x4c]
add esp, 8
cmp dword [esp + 0x58], ebp
jae 0x41eff7
lea eax, [esp + 0x44]
push eax
call fcn.0042ca70
add esp, 4
test al, al
jne 0x41f01d
cmp dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
jae 0x41f012
lea eax, [esp + 0x44]
push eax
mov ecx, 0x4e65f4
call fcn.0041e3e0
cmp dword [esp + 0x58], ebp
jb 0x41f030
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0049ea7d
add esp, 4
xor edi, edi
cmp dword [esp + 0x3c], ebp
mov esi, 0xf
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x41f057
mov edx, dword [esp + 0x28]
push edx
call fcn.0049ea7d
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
je 0x41ef6b
push eax
jmp 0x41ef65
jmp 0x41ec20