Function at 0x421a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x800
mov dword [ebp - 0xc], 0
call fcn.004928c4
mov esi, eax
add esp, 4
test esi, esi
jne 0x421a36
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push edi
mov ecx, 0x4ae214
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
mov dword [ebp - 4], ebx
call edx
lea edi, [eax + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
push str.SOFTWAREBaiduBaiduBrowser
push 0x80000002
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421c92
cmp dword [ebp - 0xc], eax
je 0x421ca0
push str.from
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x400
call fcn.00405740
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0
push ebx
push edx
call edi
test eax, eax
jne 0x421c8f
push esi
lea ecx, [ebp - 0x10]
call fcn.00405740
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x421c8f
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00420e50
mov ebx, dword [ebp + 8]
add esp, 8
lea ecx, [ebx + 0x14]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00406470
lea ecx, [ebp - 0x14]
call fcn.00405660
push 0x800
push 0
push esi
mov dword [ebp - 8], 0x400
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.Hao123Entry
lea ecx, [ebp - 4]
call fcn.00405740
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x421b55
push esi
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 0xc], eax
push 0x800
push 0
push esi
mov dword [ebp - 8], 0x400
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.BaiduEntry
lea ecx, [ebp - 4]
call fcn.00405740
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x421ba3
push esi
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 0x10], eax
push 0x800
push 0
push esi
mov dword [ebp - 8], 0x400
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.SearchEntry
lea ecx, [ebp - 4]
call fcn.00405740
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x421bf1
push esi
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 8], eax
push 0x800
push 0
push esi
mov dword [ebp - 8], 0x400
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x4978d0
lea ecx, [ebp - 4]
call fcn.00405740
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x421c35
push esi
lea ecx, [ebx + 0x2c]
call fcn.00405740
mov eax, dword [ebp - 0x18]
add ebx, 0x18
push ebx
call fcn.00422230
push 0x800
push 0
push esi
mov dword [ebp - 8], 0x400
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0x497940
lea ecx, [ebp - 4]
call fcn.00405740
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push ebx
push ecx
call edi
test eax, eax
jne 0x421c88
mov ecx, dword [ebp + 8]
push esi
add ecx, 0x1c
call fcn.00405740
mov dword [ebp - 0x14], 1
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x421ca0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
lea eax, [edi - 0x10]
add esp, 4
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ce2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret