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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8361
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x488], ecx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [ebp - 0x3f0]
call fcn.00439840
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0043ace0
lea ecx, [ebp - 0x428]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x3f0]
call fcn.0043d050
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x460979
mov dword [ebp - 0x480], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a420
mov eax, dword [ebp - 0x480]
jmp 0x461097
mov byte [ebp - 0x110], 0
push 0xff
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.004d64c0
add esp, 0xc
mov dword [ebp - 0x424], 0x100
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
push str.DhcpIPAddress
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4609e1
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043aa30
jmp 0x460a2a
mov dword [ebp - 0x424], 0x100
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0
push str.IPAddress
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460a2a
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043aa30
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.004d64c0
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0
push str.DhcpSubnetMask
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460a8b
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043aa30
jmp 0x460ad4
mov dword [ebp - 0x424], 0x100
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
push str.SubnetMask
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460ad4
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043aa30
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004d64c0
add esp, 0xc
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
push str.DhcpDefaultGateway
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460b35
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.0043aa30
jmp 0x460b7e
mov dword [ebp - 0x424], 0x100
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
push str.DefaultGateway
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460b7e
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.0043aa30
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.004d64c0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
push str.NameServer
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460be7
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.0043aa30
mov edx, dword [ebp + 8]
mov byte [edx + 0x90], 0
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.004401b0
cmp eax, 7
jae 0x460c60
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004d64c0
add esp, 0xc
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
push str.DhcpNameServer
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460c60
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.0043aa30
mov eax, dword [ebp + 8]
mov byte [eax + 0x90], 1
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SYSTEMControlSet001ControlNetwork
lea ecx, [ebp - 0x3f0]
call fcn.0043aa30
lea edx, [ebp - 0x428]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x3f0]
call fcn.0043d050
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x460ccd
mov dword [ebp - 0x47c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a420
mov eax, dword [ebp - 0x47c]
jmp 0x461097
push 0x100
push 0
lea eax, [ebp - 0x3d8]
push eax
call fcn.004d64c0
add esp, 0xc
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x424], 0x100
mov dword [ebp - 0x46c], 0x100
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x424]
push edx
lea eax, [ebp - 0x3d8]
push eax
mov ecx, dword [ebp - 0x478]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x438]
add eax, 1
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x474], 0
jne 0x460f33
lea ecx, [ebp - 0x408]
call fcn.00439880
mov byte [ebp - 4], 1
push 0x5060ec
lea ecx, [ebp - 0x3f0]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.00453c50
add esp, 0xc
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
push eax
lea ecx, [ebp - 0x408]
call fcn.004575c0
lea ecx, [ebp - 0x420]
call fcn.0043a420
lea ecx, [ebp - 0x3d8]
push ecx
lea ecx, [ebp - 0x408]
call fcn.0043ace0
lea edx, [ebp - 0x440]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x3d8]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x460f1f
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x484], edx
mov eax, dword [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x2d8]
push ecx
mov edx, dword [ebp - 0x484]
push edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
cmp dword [ebp - 0x44c], 0
jne 0x460f12
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2d8]
push eax
call fcn.004652f0
add esp, 8
test eax, eax
je 0x460f0d
lea ecx, [ebp - 0x2d8]
add ecx, 0xffffffff
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x434]
mov al, byte [edx + 1]
mov byte [ebp - 0x42d], al
add dword [ebp - 0x434], 1
cmp byte [ebp - 0x42d], 0
jne 0x460e5e
mov edi, dword [ebp - 0x434]
mov ecx, dword [str.Connection]
mov dword [edi], ecx
mov edx, dword [0x5062e4]
mov dword [edi + 4], edx
mov eax, dword [0x5062e8]
mov dword [edi + 8], eax
lea ecx, [ebp - 0x444]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x460f0d
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
push 0x5062ec
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460f00
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043aa30
jmp 0x460f12
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x460de4
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x408]
call fcn.0043a420
jmp 0x460d0b
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.004401b0
test eax, eax
jne 0x461015
lea eax, [ebp - 0x448]
push eax
push 0
call sub.MPRAPI.dll_MprConfigServerConnect
xor ecx, ecx
mov word [ebp - 0x1d8], cx
push 0xc6
push 0
lea edx, [ebp - 0x1d6]
push edx
call fcn.004d64c0
add esp, 0xc
push 0x64
lea eax, [ebp - 0x1d8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x454]
call fcn.00455f70
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
call fcn.00443a60
push eax
mov edx, dword [ebp - 0x448]
push edx
call sub.MPRAPI.dll_MprConfigGetFriendlyName
lea ecx, [ebp - 0x454]
call fcn.00456950
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x460]
call fcn.00455ef0
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x45c]
call fcn.00443a60
push eax
mov ecx, dword [ebp + 8]
call fcn.0043aa30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x460]
call fcn.00456950
mov edx, dword [ebp - 0x448]
push edx
call sub.MPRAPI.dll_MprConfigServerDisconnect
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043d050
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043d050
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
and esi, eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043d050
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
not eax
or esi, eax
mov dword [ebp - 0x464], esi
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x94
call fcn.0043aa30
mov dword [ebp - 0x468], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a420
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1fac
mov esp, ebp
pop ebp
ret 0xc