Function at 0x4db000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54af09
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x595c60]
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
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
push eax
push 0x20019
push 0
push 0x56c0e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4db469
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x234], edi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0xff
push ecx
lea ecx, [ebp - 0x218]
mov eax, ebx
push ecx
push eax
push dword [ebp - 0x23c]
inc ebx
mov dword [ebp - 0x248], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4db2b3
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x244], 4
push eax
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4db2a8
mov eax, dword [0x59e598]
test al, 1
jne 0x4db113
or eax, 1
mov dword [0x59e598], eax
mov dword [ebp - 4], 0
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x596f88]
test byte [eax + 0x1c], 2
je 0x4db128
cmp byte [eax + 0x19], 6
jb 0x4db128
mov al, 1
jmp 0x4db12a
xor al, al
cmp byte [0x59e5a8], 0
jne 0x4db144
cmp byte [0x59e5a9], 0
jne 0x4db144
test al, al
je 0x4db067
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2e8]
call fcn.0047b550
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e8]
call fcn.0047eed0
mov edx, str.._telemetry.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x119
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Failed_to_read_install_count_for_version
mov ecx, eax
call fcn.0047f130
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.004a0e50
mov byte [ebp - 4], 2
cmp dword [ebp - 0x21c], 0x10
jb 0x4db1e2
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db1e2
push eax
call fcn.005074d4
add esp, 4
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0047b6a0
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x4db202
mov esi, dword [esi]
mov eax, dword [0x59e598]
test al, 1
jne 0x4db22d
or eax, 1
mov dword [0x59e598], eax
mov byte [ebp - 4], 5
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov byte [ebp - 4], 4
push esi
push 6
mov ecx, 0x59e5a8
call fcn.004a0b40
cmp dword [ebp - 0x21c], 0x10
jb 0x4db256
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db256
push eax
call fcn.005074d4
add esp, 4
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
call fcn.0047b620
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4db067
add edi, dword [ebp - 0x238]
jmp 0x4db061
test edi, edi
jne 0x4db43b
mov eax, dword [0x59e598]
test al, 1
jne 0x4db2ec
or eax, 1
mov dword [0x59e598], eax
mov dword [ebp - 4], 7
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x596f88]
test byte [eax + 0x1c], 2
je 0x4db301
cmp byte [eax + 0x19], 6
jb 0x4db301
mov al, 1
jmp 0x4db303
xor al, al
cmp byte [0x59e5a8], 0
jne 0x4db31d
cmp byte [0x59e5a9], 0
jne 0x4db31d
test al, al
je 0x4db43b
sub esp, 8
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x2e8]
call fcn.0047b550
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2e8]
call fcn.0047eed0
mov edx, str.._telemetry.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x125
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Failed_to_enumerate_any_values_of
mov ecx, eax
call fcn.0047f130
mov edx, 0x56c0e0
mov ecx, eax
call fcn.004a0e50
mov byte [ebp - 4], 9
cmp dword [ebp - 0x21c], 0x10
jb 0x4db3ba
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db3ba
push eax
call fcn.005074d4
add esp, 4
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0047b6a0
mov esi, eax
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 0x10
jb 0x4db3da
mov esi, dword [esi]
call fcn.004a0950
push esi
push 6
mov ecx, eax
call fcn.004a0b40
cmp dword [ebp - 0x21c], 0x10
jb 0x4db405
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db405
push eax
call fcn.005074d4
add esp, 4
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 8
call fcn.0047b620
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
jmp 0x4db43b
mov eax, dword [ebp - 0x240]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0x240]
inc dword [eax + 0x10]
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.00506c7d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59e598]
test al, 1
jne 0x4db49a
or eax, 1
mov dword [0x59e598], eax
mov dword [ebp - 4], 0xd
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x596f88]
test byte [eax + 0x1c], 2
je 0x4db4af
cmp byte [eax + 0x19], 6
jb 0x4db4af
mov al, 1
jmp 0x4db4b1
xor al, al
cmp byte [0x59e5a8], 0
jne 0x4db4cb
cmp byte [0x59e5a9], 0
jne 0x4db4cb
test al, al
je 0x4db444
sub esp, 8
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x380]
call fcn.0047b550
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x380]
call fcn.0047eed0
mov edx, str.._telemetry.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x12c
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Failed_to_open_reg_key
mov ecx, eax
call fcn.0047f130
mov edx, 0x56c0e0
mov ecx, eax
call fcn.004a0e50
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x21c], 0x10
jb 0x4db568
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db568
push eax
call fcn.005074d4
add esp, 4
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x380]
call fcn.0047b6a0
mov esi, eax
mov byte [ebp - 4], 0x11
cmp dword [esi + 0x14], 0x10
jb 0x4db588
mov esi, dword [esi]
mov eax, dword [0x59e598]
test al, 1
jne 0x4db5b3
or eax, 1
mov dword [0x59e598], eax
mov byte [ebp - 4], 0x12
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov byte [ebp - 4], 0x11
push esi
push 6
mov ecx, 0x59e5a8
call fcn.004a0b40
cmp dword [ebp - 0x21c], 0x10
jb 0x4db5dc
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4db5dc
push eax
call fcn.005074d4
add esp, 4
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0xe
call fcn.0047b620
lea eax, [ebp - 0x330]
mov dword [ebp - 0x330], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
jmp 0x4db444