Function at 0x413747
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x15], bl
call fcn.004143df
test al, al
je 0x413772
mov eax, 0x80004005
jmp 0x413867
xor edi, edi
mov dword [ebp - 0x28], 0x439b84
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov cl, bl
call fcn.00413211
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov edx, dword [eax + 4]
cmp edx, 0x407827
jne 0x4137a0
push 0xffffffffffffffff
call dword [eax + 0xc]
jmp 0x4137a2
call edx
mov dword [ebp - 0x40], 0x438d8c
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x200
call fcn.00411c4a
mov eax, str.HKLMSoftwareBraveSoftwareUpdate_
test bl, bl
jne 0x4137c6
mov eax, str.HKCUSoftwareBraveSoftwareUpdate_
push edi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00407a25
mov ebx, eax
test ebx, ebx
js 0x413826
push edi
push edi
push edi
push edi
push 0x43c120
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4137f8
mov ebx, edi
jmp 0x413826
lea ecx, [ebp - 0x20]
call fcn.00401692
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 0x413876
mov esi, dword [ebp - 0x20]
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.00401622
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0x438d8c
je 0x413846
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 - 0x28]
lea ecx, [ebp - 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x439b84
je 0x413865
push dword [ebp - 0x24]
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.00415d04
leave
ret
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00403b3d
push eax
lea ecx, [ebp - 0x20]
call fcn.0040163a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
push 1
push esi
push 0x43c120
call fcn.00407f31
mov ebx, eax
test ebx, ebx
js 0x41381c
mov ecx, 0x440c18
call fcn.00409844
lea ecx, [ebp - 0x40]
call fcn.004136f0
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00412f39
mov edi, dword [ebp - 0x34]
test eax, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
js 0x413970
cmp edi, eax
je 0x413970
sub esp, 0xc
xor eax, eax
mov ebx, esp
mov dword [ebp - 0x4c], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], ecx
cmp eax, ecx
je 0x413958
mov edi, ecx
sub edi, eax
sar edi, 2
push edi
call fcn.00404ab1
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x44]
lea eax, [eax + edi*4]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x48]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0040180c
add eax, 0x10
add edi, 4
mov dword [esi], eax
add esi, 4
cmp edi, ebx
jne 0x413936
mov ebx, dword [ebp - 0x4c]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x20]
mov cl, byte [ebp - 0x15]
call fcn.00413272
mov edi, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x413973
xor ebx, ebx
inc ebx
test edi, edi
je 0x41381c
cmp edi, eax
je 0x413999
mov esi, dword [ebp - 0x1c]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00401622
add edi, 4
cmp edi, esi
jne 0x413982
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.004049b4
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
jmp 0x41381e