Function at 0x4508d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4624c6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9c
mov eax, dword [0x494680]
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.00405070
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0044f750
add esp, 0xc
cmp dword [0x498af4], 0
je 0x450951
cmp dword [0x498afc], 0
je 0x450951
lea ecx, [ebp - 0x38]
call fcn.004051c0
push eax
call dword [0x498afc]
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x450ab4
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x50], 4
lea ecx, [ebp - 0x6c]
call fcn.00405070
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [0x495c70]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.00405ef0
add esp, 0xc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00405120
call fcn.00402ff0
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.004051c0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4509e2
mov dword [ebp - 0xa0], 0
jmp 0x450a44
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3fffffff
jle 0x450a07
mov dword [ebp - 0xa4], 0
jmp 0x450a38
mov eax, dword [ebp - 0x3c]
shl eax, 1
call fcn.0042ddc0
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004061f0
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], ecx
lea edx, [ebp - 0x4c]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0xa0]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450a8c
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push str.OptIn
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x450a9b
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00405120
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x450ada
cmp dword [ebp - 0xac], 1
je 0x450ad1
jmp 0x450ae3
mov dword [ebp - 0x18], 1
jmp 0x450aea
mov dword [ebp - 0x18], 0
jmp 0x450aea
mov dword [ebp - 0x18], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x94], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405120
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.00427284
mov esp, ebp
pop ebp
ret