Function at 0x470bd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5258b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x587978]
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 0x530e54
call fcn.004071a0
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.0046cfb0
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.0041d8b0
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 0x470c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x470c7e
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x470c77
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x470dde
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 0x470cbb
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x470c77
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x470dde
inc dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x470dcb
lea ebx, [ebx]
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
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 0x470df5
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x470d16
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406e00
mov esi, dword [ebp - 0x1c]
cmp edi, dword [esi - 8]
jg 0x470df5
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.004eb8eb
add esp, 8
cmp eax, ebx
jl 0x470df5
cmp eax, dword [esi - 8]
jg 0x470df5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, ebx
jne 0x470dff
mov eax, dword [esi - 0xc]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.0040f630
mov edx, dword [ebp - 0x18]
dec edx
cmp dword [ebp - 0x14], edx
je 0x470d96
push 1
push 0x53c9bc
mov ecx, edi
call fcn.0040f630
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 0x470db5
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 0x470cd0
mov esi, dword [ebp - 0x2c]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x470ddc
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 0x470e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x470c66