Function at 0x41b870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2224
call fcn.00492d40
push ebx
push esi
push edi
push str.void_ClearInstallDir_was_called
push str.ClearInstallDir_
mov esi, 0x25
call fcn.0040b830
add esp, 8
push 0x1000
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.SOFTWARE_baiduBaiduBrowser
lea ecx, [ebp - 0x10]
call fcn.00405690
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push edx
lea edi, [eax + 0x10]
push 0x80000002
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b96d
push str.void_ClearInstallDir_open_CBdRegKey_failed
push str.ClearInstallDir_
mov dword [ebp - 8], ebx
call fcn.0040b830
mov eax, dword [ebp - 4]
add esp, 8
cmp eax, ebx
je 0x41b918
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x41b929
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea eax, [edi - 0x10]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0xc]
mov ecx, 0x4ae214
mov dword [ebp - 0x18], eax
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
call edx
lea edi, [eax + 0x10]
xor esi, esi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x18], ebx
jbe 0x41ba2d
mov edx, dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push esi
push edx
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41ba02
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41b9e0
sub eax, edx
sar eax, 1
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 0xc]
call fcn.004069f0
mov edi, dword [ebp - 0xc]
push str.SilentInstallHistory
push edi
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x41ba1d
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x41b9b0
jmp 0x41ba2d
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea esi, [ebp - 0x14]
call fcn.00426640
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
jne 0x41bab9
push str.void_ClearInstallDir_install_path_is_empty
push str.ClearInstallDir_
mov esi, 0x25
call fcn.0040b830
mov eax, dword [ebp - 4]
add esp, 8
cmp eax, ebx
je 0x41ba61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41ba74
push eax
call esi
mov dword [ebp - 8], ebx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ba90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x41baa1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x41baae
push eax
call esi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x41b92c
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x41bae6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x41baf7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret