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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionGroup_PolicyDataStore_s
push 0x320
lea eax, [ebp - 0x540]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x540]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42f172
mov dword [ebp - 8], 0
mov dword [ebp - 0x214], 0
cmp dword [ebp - 8], 0
jne 0x42f160
mov byte [ebp - 0x540], 0
mov dword [ebp - 4], 0x320
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x540]
push eax
mov eax, dword [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 8], eax
inc dword [ebp - 0x214]
cmp dword [ebp - 8], 0
jne 0x42f15b
lea eax, [ebp - 0x21c]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x540]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42f15b
lea eax, [ebp - 0x210]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x220], 0x1ff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.szName
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f14e
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x42f14e
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x210]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x220], 0x1ff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x478ed8
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f14e
lea edi, [ebp - 0x210]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x10]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 7
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42efca
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f359
mov dword [ebp - 0x544], 0x100
push 0
call fcn.00452990
add esp, 4
mov dword [ebp - 0x548], eax
lea eax, [ebp - 0x648]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
cmp dword [0x45e03c], 0
je 0x42f1ce
push 0
call fcn.00452990
add esp, 4
push eax
mov eax, dword [ebp + 0x14]
push eax
push str._r_nSEEK_012115_10:TNA__d____x
call fcn.00452380
add esp, 0xc
cmp dword [0x4620e8], 0
je 0x42f203
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
lea eax, [ebp - 0x648]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f203
mov dword [0x462f7c], 1
cmp dword [0x45e03c], 0
je 0x42f236
push 0
call fcn.00452990
add esp, 4
push eax
mov eax, dword [ebp + 0x14]
push eax
push str._r_nSEEK_012115_11:TNA__d____x
call fcn.00452380
add esp, 0xc
mov dword [ebp - 0x544], 0x100
cmp dword [0x4620e8], 0
je 0x42f27a
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
lea eax, [ebp - 0x648]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f27a
jmp 0x42f2a2
cmp dword [0x45e03c], 0
je 0x42f2a2
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._n_rSEEK_XLAT_A4__d_gle___s__n
call fcn.00452380
add esp, 0xc
cmp dword [0x45e03c], 0
je 0x42f2cb
push 0
call fcn.00452990
add esp, 4
push eax
mov eax, dword [ebp + 0x14]
push eax
push str._r_nSEEK_012115_12:TNA__d____x
call fcn.00452380
add esp, 0xc
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
test eax, eax
je 0x42f2f7
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x42f2f7
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043ce22
add esp, 8
movsx eax, byte [0x508800]
test eax, eax
jne 0x42f359
push 0
call fcn.00452990
add esp, 4
sub eax, dword [ebp - 0x548]
cmp eax, 3
jae 0x42f329
call fcn.00414024
jmp 0x42f359
cmp dword [0x45e03c], 0
je 0x42f359
push 0
call fcn.00452990
add esp, 4
push eax
mov eax, dword [ebp - 0x548]
push eax
mov eax, dword [ebp + 0x14]
push eax
push str._r_nSEEK_012115_X243:TNA__d___xt_X..nw_X
call fcn.00452380
add esp, 0x10
mov eax, dword [ebp - 0xc]
jmp 0x42f361
pop edi
pop esi
pop ebx
leave
ret