Function at 0x466610
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4883ec
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8458
call fcn.004724e0
mov eax, dword [0x4bc00c]
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 dword [ebp - 4], 3
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov dword [ebp - 0x8424], edi
lea eax, [ebp - 0x8428]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x466716
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4666a3
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4666c5
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4666e7
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 8
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x14]
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46670f
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, esi
jmp 0x466a9d
push 0x208
push 0
lea eax, [ebp - 0x41c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x8438], 0x104
mov dword [ebp - 0x842c], 0
lea eax, [ebp - 0x8468]
push eax
lea eax, [ebp - 0x844c]
push eax
lea eax, [ebp - 0x8450]
push eax
lea eax, [ebp - 0x8454]
push eax
lea eax, [ebp - 0x8458]
push eax
lea eax, [ebp - 0x845c]
push eax
lea eax, [ebp - 0x8430]
push eax
lea eax, [ebp - 0x842c]
push eax
push 0
lea eax, [ebp - 0x8438]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x8428]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x842c]
test eax, eax
je 0x46692c
xor esi, esi
mov dword [ebp - 0x8448], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, eax
jae 0x46692c
mov dword [ebp - 0x843c], 0xff
lea eax, [ebp - 0x8468]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x843c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 0x8428]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46691a
lea eax, [ebp - 0x8420]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x8428]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46691a
mov dword [ebp - 0x8440], 0x7ffe
lea eax, [ebp - 0x8440]
push eax
lea eax, [ebp - 0x841c]
push eax
lea eax, [ebp - 0x8434]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x8420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46690e
mov edx, str.DWORD
lea ecx, [ebp + 0x10]
call fcn.0045f100
test al, al
je 0x466883
push dword [ebp + 0x14]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [ebp - 0x8444], eax
push 4
lea eax, [ebp - 0x8444]
push eax
push 4
jmp 0x4668f9
mov edx, str.STRING
lea ecx, [ebp + 0x10]
call fcn.0045f100
test al, al
je 0x4668a1
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
jmp 0x4668f9
mov edx, str.MULTI_STRING
lea ecx, [ebp + 0x10]
call fcn.0045f100
test al, al
je 0x4668bf
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 7
jmp 0x4668f9
mov edx, str.EXPANDABLE_STRING
lea ecx, [ebp + 0x10]
call fcn.0045f100
test al, al
je 0x4668dd
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 2
jmp 0x4668f9
mov edx, str.NONE
lea ecx, [ebp + 0x10]
call fcn.0045f100
test al, al
je 0x46690e
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x8420]
call ebx
mov edi, eax
mov dword [ebp - 0x8424], edi
push dword [ebp - 0x8420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [ebp - 0x8448], esi
mov eax, dword [ebp - 0x842c]
jmp 0x4667b0
push dword [ebp - 0x8428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 9
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46695d
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46697f
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4669a1
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4669c7
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, edi
jmp 0x466a9d
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.00471083
mov esp, ebp
pop ebp
ret