Function at 0x10009c30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc24
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0xc20], eax
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x40]
lea edi, [eax + 0x10]
push edi
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push 0x10028844
lea eax, [esp + 0x824]
push 0x410
push eax
call fcn.10007730
add esp, 0x14
test eax, eax
jge 0x1000935c
mov eax, 3
jmp 0x10009684
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x828]
push edx
push 0x80000002
call ebx
test eax, eax
je 0x100093ca
push edi
push str.SYSTEMCurrentControlSetServices_sParametersTcpIp
lea eax, [esp + 0x824]
push 0x410
push eax
call fcn.10007730
add esp, 0x10
test eax, eax
jl 0x100093c0
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x828]
push edx
push 0x80000002
call ebx
test eax, eax
je 0x100093ca
mov eax, 3
jmp 0x10009683
mov bl, byte [esp + 0xc34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test bl, 0x10
je 0x10009400
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x6c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.UseZeroBroadcast
push eax
mov dword [esp + 0x24], 4
call edi
test bl, 0x20
je 0x10009429
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x70]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.EnableDHCP
push ecx
mov dword [esp + 0x24], 4
call edi
push ebp
test bl, 1
je 0x100094f2
xor edx, edx
mov dword [esp + 0x10], 0x802
mov word [esp + 0x1c], dx
mov eax, 0x1002877c
cmp dword [esi + 0x70], edx
jne 0x10009451
mov eax, 0x10028768
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call edi
mov ebp, 7
cmp dword [esp + 0x18], ebp
jne 0x10009488
cmp dword [esp + 0x10], 2
jbe 0x10009488
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008a10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100091c0
xor edx, edx
mov dword [esp + 0x10], 0x802
mov word [esp + 0x1c], dx
mov eax, 0x10028748
cmp dword [esi + 0x70], edx
jne 0x100094b2
mov eax, str.SubnetMask
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call edi
cmp dword [esp + 0x18], ebp
jne 0x100094e4
cmp dword [esp + 0x10], 2
jbe 0x100094e4
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008a10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.10009160
jmp 0x100094f7
mov ebp, 7
test bl, 2
je 0x1000954d
xor edx, edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x24], dx
lea edx, [esp + 0x20]
push edx
push 0
push 0x10028718
push eax
mov dword [esp + 0x28], 0x802
call edi
cmp dword [esp + 0x18], ebp
jne 0x10009541
cmp dword [esp + 0x10], 2
jbe 0x10009541
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.10008a10
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.10009220
test bl, 4
je 0x100095ae
xor eax, eax
cmp dword [esi + 0x70], eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x10], 0x802
mov eax, str.DhcpDefaultGateway
jne 0x10009570
mov eax, 0x100286d0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call edi
cmp dword [esp + 0x18], ebp
jne 0x100095a2
cmp dword [esp + 0x10], 2
jbe 0x100095a2
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008a10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.10009250
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, 8
je 0x10009679
xor edx, edx
mov ebx, 0x802
mov dword [esp + 0x10], ebx
mov word [esp + 0x1c], dx
mov eax, str.DhcpNameServer
cmp dword [esi + 0x70], edx
jne 0x100095dc
mov eax, 0x10028698
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call edi
test eax, eax
je 0x10009653
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009653
xor edx, edx
mov dword [esp + 0x10], ebx
mov word [esp + 0x1c], dx
mov eax, str.DhcpNameServer
cmp dword [esi + 0x70], edx
jne 0x1000963a
mov eax, 0x10028698
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call edi
cmp dword [esp + 0x18], 7
jne 0x1000966d
cmp dword [esp + 0x10], 2
jbe 0x1000966d
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008a10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100092b0
mov edx, dword [esp + 0x14]
push edx
call ebp
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0xc28]
pop edi
pop esi
xor ecx, esp
call fcn.100140b8
add esp, 0xc24
ret 4
sub esp, 0x618
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x614], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
push eax
push str.EnumNetworkMSTCP
push 0x10028914
lea eax, [esp + 0x41c]
push 0x208
push eax
call fcn.100076d0
add esp, 0x14
test eax, eax
jge 0x100099ab
mov eax, 3
pop esi
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.100140b8
add esp, 0x618
ret 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x420]
push edx
push 0x80000002
call ebx
test eax, eax
je 0x100099db
mov eax, 3
jmp 0x10009c17
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.Driver
push eax
mov dword [esp + 0x28], 0x400
mov byte [esp + 0x34], 0
call ebp
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x10009a64
lea edx, [esp + 0x1c]
push edx
push str.SYSTEMCurrentControlSetServicesClass
push 0x10028914
lea eax, [esp + 0x428]
push 0x208
push eax
call fcn.100076d0
add esp, 0x14
test eax, eax
jl 0x10009a64
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
lea edx, [esp + 0x428]
push edx
push 0x80000002
call ebx
test eax, eax
je 0x10009a6e
mov eax, 3
jmp 0x10009c15
test byte [esp + 0x62c], 0x20
mov edi, 0x400
je 0x10009abb
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.IPAddress
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x34], 0
call ebp
push 0x1002897c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x70], eax
test byte [esp + 0x62c], 1
mov ebx, 7
je 0x10009b84
cmp dword [esi + 0x70], 0
mov dword [esp + 0x10], edi
mov byte [esp + 0x1c], 0
jne 0x10009b70
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.IPAddress
push edx
call ebp
cmp dword [esp + 0x18], ebx
jne 0x10009b17
cmp dword [esp + 0x10], 1
jbe 0x10009b17
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008ba0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100091f0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.IPMask
push edx
mov dword [esp + 0x28], edi
mov byte [esp + 0x34], 0
call ebp
cmp dword [esp + 0x18], ebx
jne 0x10009b62
cmp dword [esp + 0x10], 1
jbe 0x10009b62
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008ba0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.10009190
jmp 0x10009b84
mov ecx, esi
call fcn.10008e70
cmp al, 1
jne 0x10009b84
push 1
mov ecx, esi
call fcn.100096a0
test byte [esp + 0x62c], 2
je 0x10009ba2
mov ecx, esi
call fcn.10008e70
cmp al, 1
jne 0x10009ba2
push 2
mov ecx, esi
call fcn.100096a0
test byte [esp + 0x62c], 4
je 0x10009bf7
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.DefaultGateway
push edx
mov dword [esp + 0x28], edi
mov byte [esp + 0x34], 0
call ebp
cmp dword [esp + 0x18], ebx
jne 0x10009beb
cmp dword [esp + 0x10], 1
jbe 0x10009beb
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.10008ba0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.10009280
test byte [esp + 0x62c], 8
je 0x10009c08
mov ecx, esi
call fcn.10009850
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x61c]
pop ebx
pop esi
xor ecx, esp
call fcn.100140b8
add esp, 0x618
ret 4
cmp dword [0x10051640], 0
je 0x10009c3e
jmp 0x10009310
jmp 0x10009950