Function at 0x413ac2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x15], bl
call fcn.0041473c
test al, al
je 0x413aed
mov eax, 0x80004005
jmp 0x413be2
xor edi, edi
mov dword [ebp - 0x20], 0x4362f4
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
mov cl, bl
call fcn.004135f7
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
mov edx, dword [eax + 4]
cmp edx, 0x407f90
jne 0x413b1b
push 0xffffffffffffffff
call dword [eax + 0xc]
jmp 0x413b1d
call edx
mov dword [ebp - 0x40], 0x43546c
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x200
call fcn.00411ff3
mov eax, str.HKLMSoftwareBraveSoftwareUpdate_
test bl, bl
jne 0x413b41
mov eax, str.HKCUSoftwareBraveSoftwareUpdate_
push edi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004081ab
mov ebx, eax
test ebx, ebx
js 0x413ba1
push edi
push edi
push edi
push edi
push 0x4388b8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413b73
mov ebx, edi
jmp 0x413ba1
lea ecx, [ebp - 0x24]
call fcn.0040171e
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test ebx, ebx
jns 0x413bf1
mov esi, dword [ebp - 0x24]
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.004016ae
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0x43546c
je 0x413bc1
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x200
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 8]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x4362f4
je 0x413be0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.00403a3a
push eax
lea ecx, [ebp - 0x24]
call fcn.004016c6
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
push 1
push esi
push 0x4388b8
call fcn.004086ee
mov ebx, eax
test ebx, ebx
js 0x413b97
mov ecx, 0x43cc98
call fcn.00409ee2
lea ecx, [ebp - 0x40]
call fcn.00413a6b
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00413324
mov edi, dword [ebp - 0x34]
test eax, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
js 0x413c89
cmp edi, eax
je 0x413c89
sub esp, 0xc
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00412b15
mov cl, byte [ebp - 0x15]
call fcn.00413658
mov edi, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x28], eax
jmp 0x413c8c
xor ebx, ebx
inc ebx
test edi, edi
je 0x413b97
cmp edi, eax
je 0x413cb2
mov esi, dword [ebp - 0x28]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004016ae
add edi, 4
cmp edi, esi
jne 0x413c9b
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.00404721
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
jmp 0x413b99