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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd01
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
cmp eax, edi
jne 0x470d1c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
push edi
push edi
push edi
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x470d06
inc dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x34], edi
jbe 0x4711c6
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x40], esi
cmp esi, edi
jl 0x4711dc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x470d99
push esi
lea ecx, [ebp - 0x10]
call fcn.00406e80
mov ecx, dword [ebp - 0x10]
cmp esi, dword [ecx - 8]
jg 0x4711dc
push edi
push edi
mov dword [ecx - 0xc], esi
mov edx, dword [ebp - 0x10]
push edi
xor eax, eax
mov word [edx + esi*2], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
lea edx, [ebp - 0x40]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
cmp eax, edi
jl 0x4711dc
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x4711dc
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, edi
je 0x470e29
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4711b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4711b6
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push edx
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040b7a0
test eax, eax
je 0x470e84
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x470e65
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x470e14
mov esi, dword [ebp - 0x60]
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x470eba
mov byte [ebp - 4], 1
cmp esi, edi
je 0x470eb5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
jmp 0x470e68
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x38], edi
call fcn.0046e0c0
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
or dword [ebp - 0x20], 1
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x44]
push edx
push edi
push eax
mov ebx, 4
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x470f03
cmp dword [ebp - 0x44], ebx
jne 0x470f03
cmp dword [ebp - 0x38], 1
jne 0x470f03
mov bl, 1
jmp 0x470f05
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x20], 1
je 0x470f1e
and dword [ebp - 0x20], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.00406650
test bl, bl
je 0x470f4b
mov byte [ebp - 4], 1
cmp esi, edi
je 0x470f34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406650
jmp 0x4711b6
mov eax, dword [ebp - 0x24]
inc eax
mov esi, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
mov dword [ebp - 0x28], esi
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4c]
push eax
call fcn.0046dff0
add esp, 4
mov byte [ebp - 4], 9
mov edi, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.004072b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0040b850
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.00406650
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
test eax, eax
js 0x4711dc
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx - 8]
jg 0x4711dc
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x470fe7
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 0xc], esi
jne 0x47118d
mov eax, dword [0x52ddd4]
mov esi, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
mov dword [ebp - 0x28], esi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x50]
push eax
call fcn.0046de50
add esp, 4
mov byte [ebp - 4], 0xc
mov edi, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.004072b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0040b850
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call fcn.00406650
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
test eax, eax
js 0x4711dc
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx - 8]
jg 0x4711dc
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x471181
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], esi
call fcn.00408bd0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x54]
push edx
call fcn.0046df20
add esp, 4
mov byte [ebp - 4], 0xe
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004072b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0040b850
mov esi, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
call fcn.00406650
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
test eax, eax
js 0x4711dc
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4711dc
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x4710ff
push 0x4e6ea0
lea ecx, [ebp - 0x14]
call fcn.00407580
cmp byte [ebp + 0x14], 0
mov esi, dword [ebp + 0x10]
je 0x471166
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00480830
cmp eax, 0xffffffff
je 0x471166
test eax, eax
js 0x4711e6
cmp eax, dword [esi + 8]
jge 0x4711e6
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x30]
call fcn.004071a0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.00408280
test eax, eax
jne 0x47115a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.00406650
jmp 0x471175
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.00406650
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00422920
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.00406650
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call fcn.00406650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00406650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040cd10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406650
xor edi, edi
mov ebx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [ebp - 0x34]
jb 0x470d4f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00406170
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]