Function at 0x4709f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a58
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.00407100
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.0046cdd0
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.0041dc50
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 0x470a7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x470a9e
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x470a97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x470bfe
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 0x470adb
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x470a97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
xor al, al
jmp 0x470bfe
inc dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x470beb
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 0x470c15
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x470b36
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406d20
mov esi, dword [ebp - 0x1c]
cmp edi, dword [esi - 8]
jg 0x470c15
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.004ebabf
add esp, 8
cmp eax, ebx
jl 0x470c15
cmp eax, dword [esi - 8]
jg 0x470c15
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, ebx
jne 0x470c1f
mov eax, dword [esi - 0xc]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.0040f910
mov edx, dword [ebp - 0x18]
dec edx
cmp dword [ebp - 0x14], edx
je 0x470bb6
push 1
push 0x53c98c
mov ecx, edi
call fcn.0040f910
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 0x470bd5
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 0x470af0
mov esi, dword [ebp - 0x2c]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x470bfc
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 0x470c3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x470a86