Function at 0x458950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c497
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9c
mov eax, dword [0x4a0b70]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x38]
call fcn.004052a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004587a0
add esp, 8
cmp dword [0x4a4adc], 0
je 0x4589cd
cmp dword [0x4a4ae0], 0
je 0x4589cd
lea ecx, [ebp - 0x38]
call fcn.004053f0
push eax
call dword [0x4a4ae0]
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x458b2f
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x50], 4
lea ecx, [ebp - 0x6c]
call fcn.004052a0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x38]
push edx
mov eax, dword [0x4a1c5c]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.00406140
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00405370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00405350
call fcn.004034d0
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.004053f0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x458a5d
mov dword [ebp - 0xa0], 0
jmp 0x458abf
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3fffffff
jle 0x458a82
mov dword [ebp - 0xa4], 0
jmp 0x458ab3
mov eax, dword [ebp - 0x3c]
shl eax, 1
call fcn.00436900
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00406470
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0xa0]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x458b07
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push str.OptIn
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x458b16
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00405350
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x458b55
cmp dword [ebp - 0xac], 1
je 0x458b4c
jmp 0x458b5e
mov dword [ebp - 0x18], 1
jmp 0x458b65
mov dword [ebp - 0x18], 0
jmp 0x458b65
mov dword [ebp - 0x18], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405350
mov eax, dword [ebp - 0x94]
lea esp, [ebp - 0xbc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042e0e3
mov esp, ebp
pop ebp
ret