Function at 0x1004a4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cb329
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x80a0
call fcn.10187310
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x80a0], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x80a4], esi
mov dword [ebp - 0x8098], 0
mov eax, dword [eax]
test eax, eax
je 0x1004a718
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x8094]
mov dword [ebp - 0x8094], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004a739
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x8098], 1
cmp dword [ebp - 0x8094], edi
jbe 0x1004a6ad
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x809c], 0x4000
push eax
push eax
push eax
push eax
mov word [ebp - 0x8018], ax
lea eax, [ebp - 0x809c]
push eax
lea eax, [ebp - 0x8018]
push eax
mov eax, dword [ebp - 0x80a0]
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1004a6ad
test eax, eax
jne 0x1004a6cf
mov dword [ebp - 0x8020], eax
mov word [ebp - 0x8030], ax
lea eax, [ebp - 0x8018]
mov dword [ebp - 0x801c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a617
sub eax, edx
lea ecx, [ebp - 0x8030]
sar eax, 1
push eax
lea eax, [ebp - 0x8018]
push eax
call fcn.10005040
mov dword [ebp - 4], 5
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x1004a682
movups xmm0, xmmword [ebp - 0x8030]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8020]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x8020], 0
mov dword [ebp - 0x801c], 7
mov word [ebp - 0x8030], ax
jmp 0x1004a691
lea ecx, [ebp - 0x8030]
push ecx
push eax
mov ecx, esi
call fcn.1000e870
lea ecx, [ebp - 0x8030]
mov byte [ebp - 4], 0
call fcn.10004e60
inc edi
cmp edi, dword [ebp - 0x8094]
jb 0x1004a5b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10186332
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, eax
lea ecx, [ebp - 0x8078]
call fcn.10049a50
push eax
mov edx, str.RegEnumValueW_failed:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x8090]
call fcn.10006160
add esp, 4
push eax
lea ecx, [ebp - 0x8024]
mov byte [ebp - 4], 4
call fcn.10001430
push 0x10229d38
lea eax, [ebp - 0x8024]
push eax
call fcn.101878e5
push str.key_is_NULL
lea ecx, [ebp - 0x8024]
call fcn.100013a0
push 0x10229e9c
lea eax, [ebp - 0x8024]
push eax
call fcn.101878e5
mov edx, eax
lea ecx, [ebp - 0x8048]
call fcn.10049a50
push eax
mov edx, str.RegQueryInfoKey_failed:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x8060]
call fcn.10006160
add esp, 4
push eax
lea ecx, [ebp - 0x80b0]
mov byte [ebp - 4], 2
call fcn.10001430
push 0x10229d38
lea eax, [ebp - 0x80b0]
push eax
call fcn.101878e5
int3