Function at 0x421b6d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c59c
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x56d790]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push edi
mov eax, dword [0x56d790]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
xor ebx, ebx
lea ecx, [esi + 0x28]
mov dword [esi + 0x24], ebx
call fcn.0040154d
lea ecx, [esi + 0x2c]
mov dword [esp + 0x30], ecx
call fcn.0040154d
lea ecx, [esi + 0x30]
mov dword [esp + 0x2c], ecx
call fcn.0040154d
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
push ebx
call fcn.004c3882
push 0xffffffffffffffff
lea ecx, [esi + 0x48]
push ebx
mov dword [esp + 0x40], ecx
call fcn.004c3882
push 0xffffffffffffffff
lea ecx, [esi + 0x5c]
push ebx
mov dword [esp + 0x30], ecx
call fcn.004c3882
call fcn.0041ce7d
lea eax, [esp + 0x20]
push eax
push 9
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esp + 0x10], eax
call fcn.0040dffe
mov edi, str..CoreInternetExplorer.cpp
cmp dword [esp + 0x10], ebx
je 0x421c8b
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CCoreInternetExplorer::DetectSearchProviders
call fcn.00401769
mov dword [esp + 0x35c], ebx
push 0x1f0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.00401769
mov byte [esp + 0x364], 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.RegOpenCurrentUser_failed_
call fcn.00401769
mov byte [esp + 0x368], 2
push dword [esp + 0x20]
or dword [esp + 0x36c], 0xffffffff
call fcn.0041129b
mov dword [esp + 0x20], SysStringLen
call fcn.0041ce7d
push str.SearchScopes
lea ecx, [esp + 0x38]
call fcn.00401769
mov dword [esp + 0x18], eax
mov dword [esp + 0x358], 3
push str.SoftwareMicrosoftInternet_Explorer
lea ecx, [esp + 0x14]
call fcn.00401769
mov byte [esp + 0x358], 4
push dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040403d
add esp, 0xc
mov byte [esp + 0x358], 6
lea ecx, [esp + 0x10]
call fcn.00401898
mov byte [esp + 0x358], 7
lea ecx, [esp + 0x34]
call fcn.00401898
lea eax, [esp + 0x1c]
push eax
push 9
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], eax
call fcn.0040dffe
cmp dword [esp + 0x10], ebx
je 0x421dc6
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.CCoreInternetExplorer::DetectSearchProviders
call fcn.00401769
mov byte [esp + 0x35c], 8
push 0x1fb
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00401769
mov byte [esp + 0x364], 9
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
lea ecx, [esp + 0x34]
push ecx
push str.Failed_to_get_search_scopes_key:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [esp + 0x368], 0xa
push dword [esp + 0x20]
mov byte [esp + 0x36c], 7
call fcn.0041129b
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x358], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00401898
mov eax, ebx
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x33c]
xor ecx, esp
call fcn.004dd215
mov esp, ebp
pop ebp
ret
mov edi, pe_nt_image_headers32
mov dword [esp + 0x14], edi
call fcn.0041ce7d
push dword [esp + 0x14]
lea ecx, [esi + 0x28]
call fcn.00401673
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push ebx
push str.DefaultScope
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
call fcn.0040dffe
cmp dword [esp + 0x10], ebx
jne 0x421e14
mov eax, dword [esp + 0x14]
dec eax
push eax
lea ecx, [esi + 0x28]
call fcn.00404286
call fcn.0041ce7d
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x30], ebx
push ebx
jmp 0x421f08
lea eax, [esp + 0x10]
push eax
push 1
push ebx
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x158], bl
mov byte [esp + 0x258], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421eb0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x148]
push eax
push ebx
push ebx
push str.DisplayName
push dword [esp + 0x24]
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x248]
push eax
push ebx
push ebx
push 0x5247a4
push dword [esp + 0x24]
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi + 0x34]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.004c3cb8
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x144]
push edx
push eax
call fcn.004c3cb8
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x244]
push edx
push eax
call fcn.004c3cb8
inc dword [esi + 0x24]
inc dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x30]
push dword [esp + 0x38]
mov byte [esp + 0x64], bl
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x421e35
push dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [esp + 0x20]
call edi
call fcn.0040dffe
lea edi, [esi + 0x28]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x421f91
cmp dword [esi + 0x24], ebx
jle 0x421f91
mov eax, ebx
lea ecx, [esi + 0x34]
call fcn.004080c5
push eax
push edi
call fcn.0040415c
pop ecx
pop ecx
test al, al
jne 0x421f67
inc ebx
cmp ebx, dword [esi + 0x24]
jl 0x421f48
jmp 0x421f91
mov ecx, dword [esp + 0x38]
mov eax, ebx
call fcn.004080c5
mov ecx, dword [esp + 0x30]
push eax
call fcn.004043ce
mov ecx, dword [esp + 0x28]
mov eax, ebx
call fcn.004080c5
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004043ce
xor ebx, ebx
inc ebx
jmp 0x421d90