Function at 0x42a7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x214], 0
test edi, edi
je 0x42a9c1
test eax, eax
je 0x42a9c1
test esi, esi
je 0x42a9c1
test ebx, ebx
jne 0x42a82f
cmp dword [esi], 4
je 0x42a82f
push esi
push str.GetDHCPServiceParameter:_DWORD_selected__but_length_isnt_currect:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00411960
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x42a874
push eax
push str.SYSTEMCurrentControlSetServicesVMnetDHCPParameters
push 0x4a190c
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00419510
mov eax, dword [ebp - 0x21c]
add esp, 0x14
test eax, eax
lea ecx, [ebp - 0x210]
lea eax, [ebp - 0x218]
mov edx, str.SYSTEMCurrentControlSetServicesVMnetDHCPParameters
push eax
push 1
cmove ecx, edx
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42a8ce
push dword [ebp - 0x21c]
push eax
push str.GetDHCPServiceParameter:_Could_not_open_DHCP_REG_PATH_key:_0x_08x__S
push 4
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x220]
test ebx, ebx
je 0x42a8f9
mov eax, dword [esi]
add eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
shr dword [esi], 1
jmp 0x42a90f
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42a943
push eax
push edi
push str.GetDHCPServiceParameter:_Could_not_query_key_for_DHCP_parameter__S:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x214]
test ebx, ebx
je 0x42a989
cmp ecx, 1
je 0x42a957
cmp ecx, 2
jne 0x42a98e
push edi
push str.GetDHCPServiceParameter:_queried_key_for_DHCP__S
push 0x10
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
cmp ecx, 4
je 0x42a957
mov edx, str.dword
test ebx, ebx
mov eax, str.string
cmove eax, edx
push eax
push ecx
push str.GetDHCPServiceParameter:_Registry_key_is_not_expected_type:_0x_08x_versus__s
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push eax
push edi
push str.GetDHCPServiceParameter:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret