Function at 0x420b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x30]
push eax
push 0x167
push ecx
call esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x30]
push edx
push 0x168
push eax
call esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x30]
push ecx
push 0x171
push edx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x30]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x168
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 0x30]
push 0x169
push edx
call esi
mov esi, eax
mov eax, dword [ebp + 0x4c]
mov ebx, 1
mov dword [esp + 0x14], esi
cmp eax, ebx
jne 0x420bec
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x104
push 0xc5
push esi
call edi
jmp 0x420bf2
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0x4c]
xor eax, eax
cmp edx, ebx
push 0
setg al
push eax
push 0xcf
push esi
call edi
mov eax, dword [ebp + 0x4c]
xor esi, esi
test eax, eax
jle 0x420c35
cmp esi, eax
jge 0x420c20
test esi, esi
jl 0x420c20
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + esi*4]
jmp 0x420c22
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
mov eax, dword [ebp + 0x4c]
inc esi
cmp esi, eax
jl 0x420c14
push ebx
call fcn.004985f0
mov esi, eax
mov eax, dword [ebp + 0x4c]
add esp, 4
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
jle 0x420cbe
cmp ebx, eax
jge 0x420c61
test ebx, ebx
jl 0x420c61
mov edx, dword [ebp + 0x48]
mov eax, dword [edx + ebx*4]
jmp 0x420c63
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp ebx, dword [ebp + 0x4c]
jge 0x420c7b
test ebx, ebx
jl 0x420c7b
mov ecx, dword [ebp + 0x48]
mov esi, dword [ecx + ebx*4]
jmp 0x420c7d
xor esi, esi
mov edi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [ebp + 0x4c]
inc ebx
mov dword [esp + 0x10], ecx
cmp ebx, eax
jge 0x420cb4
mov eax, ecx
mov byte [eax], 0x3b
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x4c]
cmp ebx, eax
jl 0x420c55
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push ecx
mov byte [eax], 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00498600
mov edx, dword [ebp + 0x30]
add esp, 4
push 0x170
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
mov ebx, eax
push 0x50
push 0x141
push ebx
call edi
push 0x1000
call fcn.004985f0
mov ecx, dword [str.SoftwareACD_SystemsACDSee32]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push DrawStatusTextA
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push esi
push eax
push 0
push str.HistFileFilters
push ecx
mov dword [esp + 0x28], 0xfff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420d7f
mov edx, dword [esp + 0x10]
mov byte [edx + esi - 1], al
mov eax, esi
cmp byte [eax], 0
je 0x420d7b
push esi
push 0
push 0x143
push ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x420d60
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00498600
mov edx, dword [ebp + 0x30]
add esp, 4
push 0x16f
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
mov ebx, eax
push 0x50
push 0x141
push ebx
call edi
push 0x1000
call fcn.004985f0
mov ecx, dword [str.SoftwareACD_SystemsACDSee32]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push ebp
push eax
push 0
push str.HistKeywords
push ecx
mov dword [esp + 0x30], 0xfff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420e32
mov edx, dword [esp + 0x18]
mov esi, ebp
mov byte [edx + ebp - 1], al
mov al, byte [ebp]
test al, al
je 0x420e32
push esi
push 0
push 0x143
push ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x420e17
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00498600
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret