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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionGroup_PolicyDataStoreMachine
push 0x320
lea eax, [ebp - 0x540]
push eax
call fcn.00452660
add esp, 0xc
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 0x42f5a6
mov dword [ebp - 0x214], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x42f594
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 0x42f58f
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 0x42f58f
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.szTargetName
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f582
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x42f582
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.DNName
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f582
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 + 8]
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], 1
mov dword [ebp - 8], 9
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f405
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f7ea
mov dword [ebp - 0x544], 0x100
cmp dword [0x45e03c], 0
je 0x42f5d9
mov eax, dword [ebp + 0x10]
push eax
push 0
call fcn.00452990
add esp, 4
push eax
push str._n_r__X_SEEK_Xlat_retry____s__to_LDAP__r_n
call fcn.00452380
add esp, 0xc
cmp dword [0x4620e8], 0
je 0x42f60b
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f60b
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x544], 0x100
cmp dword [0x4620e8], 0
je 0x42f64f
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f64f
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x42f6f3
mov edi, dword [ebp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x479014]
mov word [edi - 1], ax
mov dword [ebp - 0x544], 0x100
cmp dword [0x4620e8], 0
je 0x42f6af
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f6af
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x544], 0x100
cmp dword [0x4620e8], 0
je 0x42f6f3
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f6f3
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x544], 0x100
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x42f79f
mov eax, dword [ebp + 0xc]
push eax
push 0x479018
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [0x4620e8], 0
je 0x42f75b
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f75b
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x544], 0x100
cmp dword [0x4620e8], 0
je 0x42f79f
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [0x4620e8]
xor ecx, ecx
mov cl, al
test ecx, ecx
je 0x42f79f
cmp dword [0x45e03c], 0
je 0x42f7ce
mov eax, dword [0x4620e8]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.00452990
add esp, 4
push eax
push str._n_r__X__SEEK_retry__ThisComputerLdap___s____x_
call fcn.00452380
add esp, 0x10
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x42f7ea
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0042b038
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x42f7f2
pop edi
pop esi
pop ebx
leave
ret