Function at 0x41a8d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51809b
mov eax, dword fs:[0]
push eax
mov eax, 0x8460
call fcn.00455430
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x843c], ebx
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x8438]
push edx
push 0x20019
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41abed
push dword [ebp - 0x843c]
lea eax, [ebp - 0x8431]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0041b600
mov eax, dword [edi]
push dword [ebp - 0x843c]
mov dword [edi + 4], eax
lea eax, [ebp - 0x8431]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.0041b600
mov eax, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00455160
add esp, 0x2c
mov dword [ebp - 0x844c], 0x104
lea eax, [ebp - 0x8460]
mov dword [ebp - 0x8440], 0
mov dword [ebp - 0x8448], 0x3fff
push eax
lea eax, [ebp - 0x8454]
push eax
lea eax, [ebp - 0x8468]
push eax
lea eax, [ebp - 0x8458]
push eax
lea eax, [ebp - 0x8444]
push eax
lea eax, [ebp - 0x8464]
push eax
lea eax, [ebp - 0x846c]
push eax
lea eax, [ebp - 0x8440]
push eax
push 0
lea eax, [ebp - 0x844c]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x8438]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8440]
test eax, eax
je 0x41aaf2
xor esi, esi
test eax, eax
je 0x41aaf2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41aa30
lea eax, [ebp - 0x8460]
mov dword [ebp - 0x8450], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x8450]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x8438]
call ebx
test eax, eax
jne 0x41aadf
mov dword [ebp - 0x841c], 7
mov dword [ebp - 0x8420], eax
mov word [ebp - 0x8430], ax
cmp word [ebp - 0x210], ax
jne 0x41aa86
xor ecx, ecx
jmp 0x41aa9f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x8430]
call fcn.004197f0
lea eax, [ebp - 0x8430]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0041c1f0
cmp dword [ebp - 0x841c], 8
mov byte [ebp - 4], 0
jb 0x41aadf
push dword [ebp - 0x8430]
call fcn.00406890
add esp, 4
inc esi
cmp esi, dword [ebp - 0x8440]
jb 0x41aa30
mov ebx, dword [ebp - 0x843c]
mov eax, dword [ebp - 0x8444]
test eax, eax
je 0x41abcc
xor esi, esi
test eax, eax
je 0x41abcc
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
mov dword [ebp - 0x8448], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8418], ax
lea eax, [ebp - 0x8448]
push eax
lea eax, [ebp - 0x8418]
push eax
push esi
push dword [ebp - 0x8438]
call edi
test eax, eax
jne 0x41abbf
mov dword [ebp - 0x841c], 7
mov dword [ebp - 0x8420], eax
mov word [ebp - 0x8430], ax
cmp word [ebp - 0x8418], ax
je 0x41ab7f
lea eax, [ebp - 0x8418]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ab70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x8418]
push eax
lea ecx, [ebp - 0x8430]
call fcn.004197f0
lea eax, [ebp - 0x8430]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.0041c1f0
cmp dword [ebp - 0x841c], 8
mov byte [ebp - 4], 0
jb 0x41abbf
push dword [ebp - 0x8430]
call fcn.00406890
add esp, 4
inc esi
cmp esi, dword [ebp - 0x8444]
jb 0x41ab10
push dword [ebp - 0x8438]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x20], 8
jb 0x41abe9
push dword [ebp + 0xc]
call fcn.00406890
add esp, 4
mov al, 1
jmp 0x41ac00
cmp dword [ebp + 0x20], 8
jb 0x41abfe
push dword [ebp + 0xc]
call fcn.00406890
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret