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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a01
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
cmp eax, edi
jne 0x47050c
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 0x4704f6
inc dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x34], edi
jbe 0x4709b6
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
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 0x4709cc
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 0x470589
push esi
lea ecx, [ebp - 0x10]
call fcn.00406d20
mov ecx, dword [ebp - 0x10]
cmp esi, dword [ecx - 8]
jg 0x4709cc
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.004ebabf
add esp, 8
cmp eax, edi
jl 0x4709cc
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x4709cc
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, edi
je 0x470619
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 0x4709a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4709a6
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.0041dc50
test eax, eax
je 0x470674
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x470655
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 0x470604
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 0x4706aa
mov byte [ebp - 4], 1
cmp esi, edi
je 0x4706a5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
jmp 0x470658
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x38], edi
call fcn.0046d520
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 0x4706f3
cmp dword [ebp - 0x44], ebx
jne 0x4706f3
cmp dword [ebp - 0x38], 1
jne 0x4706f3
mov bl, 1
jmp 0x4706f5
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x20], 1
je 0x47070e
and dword [ebp - 0x20], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.00406ef0
test bl, bl
je 0x47073b
mov byte [ebp - 4], 1
cmp esi, edi
je 0x470724
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.00406ef0
jmp 0x4709a6
mov eax, dword [ebp - 0x24]
inc eax
mov esi, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
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.0046d450
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.004071b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041dd00
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.00406ef0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x4709cc
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx - 8]
jg 0x4709cc
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x4707d7
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 0xc], esi
jne 0x47097d
mov eax, dword [0x587944]
mov esi, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
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.0046d2b0
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.004071b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041dd00
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call fcn.00406ef0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x4709cc
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx - 8]
jg 0x4709cc
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x470971
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], esi
call fcn.00408ac0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x54]
push edx
call fcn.0046d380
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.004071b0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041dd00
mov esi, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
call fcn.00406ef0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x4709cc
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4709cc
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x4708ef
push 0x530e54
lea ecx, [ebp - 0x14]
call fcn.00407480
cmp byte [ebp + 0x14], 0
mov esi, dword [ebp + 0x10]
je 0x470956
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00481bc0
cmp eax, 0xffffffff
je 0x470956
test eax, eax
js 0x4709d6
cmp eax, dword [esi + 8]
jge 0x4709d6
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x30]
call fcn.004070a0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.00408180
test eax, eax
jne 0x47094a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.00406ef0
jmp 0x470965
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.00406ef0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0041f9a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.00406ef0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call fcn.00406ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00406ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041b080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406ef0
xor edi, edi
mov ebx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [ebp - 0x34]
jb 0x47053f
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]