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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push 0x478d90
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42ecca
mov dword [ebp - 8], 0
mov dword [ebp - 0x210], 0
cmp dword [ebp - 8], 0
jne 0x42ecbd
mov byte [ebp - 0x53c], 0
mov dword [ebp - 4], 0x320
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 8], eax
inc dword [ebp - 0x210]
cmp dword [ebp - 8], 0
jne 0x42ecb8
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42ecb8
lea edi, [ebp - 0x20c]
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.DhcpDomain
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42eb4e
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x42eb4e
lea eax, [ebp - 0x20c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x478ddc
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42eb26
lea eax, [ebp - 0x20c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x478dec
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42eaf9
jmp 0x42eb21
lea edi, [ebp - 0x20c]
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 + 0xc]
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]
jmp 0x42eb4e
lea edi, [ebp - 0x20c]
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 + 0xc]
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]
lea edi, [ebp - 0x20c]
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.Domain
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42ecab
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x42ecab
lea eax, [ebp - 0x20c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x478e00
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42ec83
lea eax, [ebp - 0x20c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x21c], 0x1ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x478e10
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42ec56
jmp 0x42ec7e
lea edi, [ebp - 0x20c]
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 + 0xc]
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]
jmp 0x42ecab
lea edi, [ebp - 0x20c]
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 + 0xc]
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 eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42e978
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42ecd1
pop edi
pop esi
pop ebx
leave
ret