Function at 0x4dae90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b580
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x596c60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], esi
push eax
push 0x20019
push 0
push 0x56d0e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4db0a0
cmp dword [esi + 0x60], 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 4
jb 0x4daefe
mov eax, dword [esi + 0x4c]
jmp 0x4daf01
lea eax, [esi + 0x4c]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4db088
mov eax, dword [0x59f554]
test al, 1
jne 0x4daf50
or eax, 1
mov dword [0x59f554], eax
mov dword [ebp - 4], 0
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x597f88]
test byte [eax + 0x1c], 2
je 0x4daf65
cmp byte [eax + 0x19], 6
jb 0x4daf65
mov al, 1
jmp 0x4daf67
xor al, al
cmp byte [0x59f560], 0
jne 0x4daf81
cmp byte [0x59f561], 0
jne 0x4daf81
test al, al
je 0x4db088
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.0047b4d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004a1680
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.0047ee50
mov edx, str.._telemetry.cpp
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
push 0xdd
mov ecx, eax
call fcn.0047b130
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
mov edx, str.Failed_to_read_install_count_for_version
mov ecx, eax
call fcn.0047f0b0
lea edx, [esi + 0x4c]
mov ecx, eax
call fcn.004a1750
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x4db013
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4db013
push eax
call fcn.00507b54
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0047b620
mov edi, eax
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 0x10
jb 0x4db030
mov edi, dword [edi]
call fcn.004a1320
push edi
push 6
mov ecx, eax
call fcn.004a1510
cmp dword [ebp - 0x18], 0x10
jb 0x4db055
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4db055
push eax
call fcn.00507b54
add esp, 4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0047b5a0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x56b700
push eax
call fcn.00528f2f
add esp, 4
jmp 0x4db088
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x30], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db246
mov eax, dword [0x59f554]
test al, 1
jne 0x4db0d1
or eax, 1
mov dword [0x59f554], eax
mov dword [ebp - 4], 6
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x597f88]
test byte [eax + 0x1c], 2
je 0x4db0e6
cmp byte [eax + 0x19], 6
jb 0x4db0e6
mov al, 1
jmp 0x4db0e8
xor al, al
cmp byte [0x59f560], 0
jne 0x4db102
cmp byte [0x59f561], 0
jne 0x4db102
test al, al
je 0x4db246
sub esp, 8
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x170]
call fcn.0047b4d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004a1680
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x170]
call fcn.0047ee50
mov edx, str.._telemetry.cpp
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
push 0xe6
mov ecx, eax
call fcn.0047b130
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
mov edx, str.Failed_to_open_reg_key
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56d0e0
mov ecx, eax
call fcn.004a1820
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 0x10
jb 0x4db196
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4db196
push eax
call fcn.00507b54
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x170]
call fcn.0047b620
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 0x10
jb 0x4db1b3
mov edi, dword [edi]
mov eax, dword [0x59f554]
test al, 1
jne 0x4db1de
or eax, 1
mov dword [0x59f554], eax
mov byte [ebp - 4], 0xb
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov byte [ebp - 4], 0xa
push edi
push 6
mov ecx, 0x59f560
call fcn.004a1510
cmp dword [ebp - 0x18], 0x10
jb 0x4db201
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4db201
push eax
call fcn.00507b54
add esp, 4
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 7
call fcn.0047b5a0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x56b700
push eax
call fcn.00528f2f
add esp, 4
jmp 0x4db246
cmp dword [esi + 0xc], 0
jne 0x4db253
mov dword [esi + 0xc], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005072fd
mov esp, ebp
pop ebp
ret