Function at 0x471200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x4e6ea0
call fcn.00407200
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.0046d970
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [eax]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.0040b7a0
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47128f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x4712ae
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4712a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x47140e
mov esi, dword [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x4712eb
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x4712a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x47140e
inc dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x4713fb
lea ebx, [ebx]
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov edi, ecx
cmp ecx, ebx
jl 0x471425
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x471346
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406e80
mov esi, dword [ebp - 0x1c]
cmp edi, dword [esi - 8]
jg 0x471425
mov edx, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
xor eax, eax
push esi
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab44b
add esp, 8
cmp eax, ebx
jl 0x471425
cmp eax, dword [esi - 8]
jg 0x471425
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, ebx
jne 0x47142f
mov eax, dword [esi - 0xc]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.004104a0
mov edx, dword [ebp - 0x18]
dec edx
cmp dword [ebp - 0x14], edx
je 0x4713c6
push 1
push 0x4f2b0c
mov ecx, edi
call fcn.004104a0
mov byte [ebp - 4], bl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4713e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jb 0x471300
mov esi, dword [ebp - 0x2c]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x47140c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
mov al, 1
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406170
mov byte [ebp - 4], bl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47144e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x471296