Function at 0x4612df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5850c7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x81fc
call fcn.0055bf10
mov eax, dword [0x5fe480]
xor eax, esp
mov dword [esp + 0x81f8], eax
push ebx
push esi
push edi
mov eax, dword [0x5fe480]
xor eax, esp
push eax
lea eax, [esp + 0x8210]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18c], 7
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], ax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x17c]
mov dword [esp + 0x821c], ebx
call fcn.0046e610
pop ecx
test al, al
je 0x46169f
cmp dword [esp + 0x18c], 8
mov eax, dword [esp + 0x178]
jae 0x46138a
lea eax, [esp + 0x178]
lea ecx, [esp + 0x1c]
push ecx
push 0x201
push ebx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46169f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
xor eax, eax
mov byte [esp + 0x8218], 1
push 0x7ffe
mov word [esp + 0x208], ax
lea eax, [esp + 0x20a]
push ebx
push eax
call fcn.00543fe0
add esp, 0xc
mov dword [esp + 0x18], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x218]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
push dword [esp + 0x38]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
call edi
cmp eax, 0xea
jne 0x461676
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0042674d
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x218]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x40], 0x4000
push dword [esp + 0x38]
call edi
test eax, eax
je 0x46147d
lea esi, [esp + 0x2c]
mov byte [esp + 0x8218], 1
call fcn.004265f2
jmp 0x461676
push 7
pop eax
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1c4], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], cx
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x1e8]
push 0x5a372c
push eax
mov byte [esp + 0x8220], 3
call fcn.0041eef5
lea ecx, [esp + 0x20c]
push ecx
push eax
lea eax, [esp + 0x1dc]
mov byte [esp + 0x8228], 4
call fcn.0040b904
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x194]
mov byte [esp + 0x8218], 5
call fcn.00401c19
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.00401d98
push ebx
lea esi, [esp + 0x1ec]
mov byte [esp + 0x821c], 3
call fcn.00401d98
mov eax, dword [esp + 0x14]
test eax, eax
je 0x461648
cmp eax, 2
jbe 0x461627
cmp eax, 4
je 0x4615b7
cmp eax, 0xb
jne 0x461648
lea eax, [esp + 0xdc]
push eax
call fcn.004044d0
mov esi, eax
mov byte [esp + 0x8218], 8
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
push dword [eax]
push esi
call fcn.0040bc61
lea eax, [esp + 0x1e8]
push eax
mov eax, esi
call fcn.0040453a
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x1f0]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 9
call fcn.00401cfe
push ebx
lea esi, [esp + 0x1ec]
call fcn.00401d98
lea eax, [esp + 0xdc]
jmp 0x461618
lea eax, [esp + 0x44]
push eax
call fcn.004044d0
mov esi, eax
mov byte [esp + 0x8218], 6
mov eax, dword [esp + 0x2c]
push dword [eax]
push esi
call fcn.00409937
lea eax, [esp + 0x1cc]
push eax
mov eax, esi
call fcn.0040453a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 7
call fcn.00401cfe
push ebx
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.00401d98
lea eax, [esp + 0x44]
mov byte [esp + 0x8218], 3
call fcn.00403cb2
jmp 0x461638
push dword [esp + 0x2c]
lea eax, [esp + 0x1b4]
push eax
call fcn.00404c23
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x194]
call fcn.00461b23
push ebx
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.00401d98
push ebx
lea esi, [esp + 0x198]
call fcn.00401d98
lea esi, [esp + 0x2c]
mov byte [esp + 0x8218], bl
call fcn.004265f2
xor ebx, ebx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x400
jb 0x4613dc
mov byte [esp + 0x8218], bl
cmp dword [esp + 0x28], ebx
je 0x46169f
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [esp + 0x17c]
call fcn.00401d98
mov ecx, dword [esp + 0x8210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x81f8]
xor ecx, esp
call fcn.005413de
mov esp, ebp
pop ebp
ret