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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525861
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 0x4706ec
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 0x4706d6
inc dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x34], edi
jbe 0x470b96
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 0x470bac
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 0x470769
push esi
lea ecx, [ebp - 0x10]
call fcn.00406e00
mov ecx, dword [ebp - 0x10]
cmp esi, dword [ecx - 8]
jg 0x470bac
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.004eb8eb
add esp, 8
cmp eax, edi
jl 0x470bac
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x470bac
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, edi
je 0x4707f9
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 0x470b86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x470b86
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.0041d8b0
test eax, eax
je 0x470854
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x470835
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 0x4707e4
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 0x47088a
mov byte [ebp - 4], 1
cmp esi, edi
je 0x470885
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
jmp 0x470838
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x38], edi
call fcn.0046d700
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 0x4708d3
cmp dword [ebp - 0x44], ebx
jne 0x4708d3
cmp dword [ebp - 0x38], 1
jne 0x4708d3
mov bl, 1
jmp 0x4708d5
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x20], 1
je 0x4708ee
and dword [ebp - 0x20], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.004064c0
test bl, bl
je 0x47091b
mov byte [ebp - 4], 1
cmp esi, edi
je 0x470904
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.004064c0
jmp 0x470b86
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.0046d630
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.00407250
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041d960
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.004064c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x470bac
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx - 8]
jg 0x470bac
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x4709b7
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 0xc], esi
jne 0x470b5d
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.0046d490
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.00407250
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041d960
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call fcn.004064c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x470bac
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx - 8]
jg 0x470bac
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
jne 0x470b51
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], esi
call fcn.00406f90
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x54]
push edx
call fcn.0046d560
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.00407250
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041d960
mov esi, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
call fcn.004064c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x470bac
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x470bac
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x470acf
push 0x530e54
lea ecx, [ebp - 0x14]
call fcn.00407520
cmp byte [ebp + 0x14], 0
mov esi, dword [ebp + 0x10]
je 0x470b36
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00432f90
cmp eax, 0xffffffff
je 0x470b36
test eax, eax
js 0x470bb6
cmp eax, dword [esi + 8]
jge 0x470bb6
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407140
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.00408270
test eax, eax
jne 0x470b2a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.004064c0
jmp 0x470b45
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.004064c0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0041f6c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.004064c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call fcn.004064c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004064c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041ace0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004064c0
xor edi, edi
mov ebx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [ebp - 0x34]
jb 0x47071f
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]