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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, edx
mov word [ebp - 2], cx
push esi
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
mov dword [eax], ebx
mov edi, ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 0x20019
push ebx
push 0x410e30
push 0x80000002
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x478010
mov eax, dword [section..data]
mov esi, 0x80004005
cmp eax, section..data
je 0x478285
test byte [eax + 0x1c], 1
je 0x478285
cmp byte [eax + 0x19], 2
jb 0x478285
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x30
mov edx, 0x410ec4
pop ecx
call fcn.00421fda
jmp 0x478285
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x47806d
mov esi, 0x80004005
mov eax, dword [section..data]
cmp eax, section..data
je 0x478285
test byte [eax + 0x1c], 1
je 0x478285
cmp byte [eax + 0x19], 2
jb 0x478285
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x31
jmp 0x478000
mov eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov esi, section..data
add eax, ebx
je 0x47821a
push 2
pop ecx
mul ecx
test edx, edx
ja 0x47821a
jb 0x478098
cmp eax, 0xffffffff
ja 0x47821a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test eax, eax
je 0x47824c
xor ebx, ebx
xor ecx, ecx
inc ebx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x20], ecx
jbe 0x478207
mov esi, section..data
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
inc eax
mov dword [ebp - 0x18], 4
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x478137
mov ecx, dword [section..data]
cmp ecx, esi
je 0x4781f7
test byte [ecx + 0x1c], bl
je 0x4781f7
cmp byte [ecx + 0x19], 3
jb 0x4781f7
call fcn.0042386b
push dword [ebp - 0x10]
mov edx, 0x410ec4
push dword [ebp - 0x2c]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.00429397
jmp 0x4781f7
cmp dword [ebp - 8], 0
je 0x47814a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x47819e
mov ecx, dword [section..data]
cmp ecx, esi
je 0x4781f7
test byte [ecx + 0x1c], bl
je 0x4781f7
cmp byte [ecx + 0x19], 3
jb 0x4781f7
call fcn.0042386b
push edi
push dword [ebp - 0x2c]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x35
pop ecx
call fcn.00476bfe
jmp 0x4781f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x410eac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4781ed
mov ecx, dword [section..data]
cmp ecx, esi
je 0x4781f7
test byte [ecx + 0x1c], bl
je 0x4781f7
cmp byte [ecx + 0x19], 3
jb 0x4781f7
call fcn.0042386b
push edi
push dword [ebp - 0x2c]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x36
jmp 0x478196
mov ax, word [ebp - 2]
cmp ax, word [ebp - 0x1c]
je 0x478211
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x20]
jb 0x4780c1
mov eax, dword [ebp - 0x24]
mov esi, ebx
and dword [eax], 0
jmp 0x478283
mov eax, dword [ebp - 0x24]
xor esi, esi
mov dword [eax], ebx
jmp 0x478283
mov eax, dword [section..data]
cmp eax, esi
je 0x47827e
test byte [eax + 0x1c], bl
je 0x478251
cmp byte [eax + 0x19], 2
jb 0x478251
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x410ec4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x32
pop ecx
call fcn.004238e7
mov eax, dword [section..data]
cmp eax, esi
je 0x47827e
test byte [eax + 0x1c], bl
je 0x47827e
cmp byte [eax + 0x19], 2
jb 0x47827e
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x410ec4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.004238e7
mov esi, 0x8007000e
xor ebx, ebx
cmp dword [ebp - 8], 0
je 0x478297
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0
je 0x4782a9
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x4782b4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret