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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8581
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.00439760
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0043ac10
lea ecx, [ebp - 0x428]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x3f0]
call fcn.0043ccc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4624f9
mov dword [ebp - 0x480], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a380
mov eax, dword [ebp - 0x480]
jmp 0x462c17
mov byte [ebp - 0x110], 0
push 0xff
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.004d6720
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 0x462561
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043a9c0
jmp 0x4625aa
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 0x4625aa
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043a9c0
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.004d6720
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 0x46260b
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043a9c0
jmp 0x462654
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 0x462654
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043a9c0
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004d6720
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 0x4626b5
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.0043a9c0
jmp 0x4626fe
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 0x4626fe
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.0043a9c0
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.004d6720
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 0x462767
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.0043a9c0
mov edx, dword [ebp + 8]
mov byte [edx + 0x90], 0
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.0043fea0
cmp eax, 7
jae 0x4627e0
mov dword [ebp - 0x424], 0x100
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004d6720
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 0x4627e0
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.0043a9c0
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.0043a9c0
lea edx, [ebp - 0x428]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x3f0]
call fcn.0043ccc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46284d
mov dword [ebp - 0x47c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a380
mov eax, dword [ebp - 0x47c]
jmp 0x462c17
push 0x100
push 0
lea eax, [ebp - 0x3d8]
push eax
call fcn.004d6720
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 0x462ab3
lea ecx, [ebp - 0x408]
call fcn.004397a0
mov byte [ebp - 4], 1
push 0x5060ec
lea ecx, [ebp - 0x3f0]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.00453a10
add esp, 0xc
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
push eax
lea ecx, [ebp - 0x408]
call fcn.00458c40
lea ecx, [ebp - 0x420]
call fcn.0043a380
lea ecx, [ebp - 0x3d8]
push ecx
lea ecx, [ebp - 0x408]
call fcn.0043ac10
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 0x462a9f
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 0x462a92
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2d8]
push eax
call fcn.00467f60
add esp, 8
test eax, eax
je 0x462a8d
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 0x4629de
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 0x462a8d
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 0x462a80
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043a9c0
jmp 0x462a92
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x462964
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.0043a380
jmp 0x46288b
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.0043fea0
test eax, eax
jne 0x462b95
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.004d6720
add esp, 0xc
push 0x64
lea eax, [ebp - 0x1d8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x454]
call fcn.00457520
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
call fcn.0043ffc0
push eax
mov edx, dword [ebp - 0x448]
push edx
call sub.MPRAPI.dll_MprConfigGetFriendlyName
lea ecx, [ebp - 0x454]
call fcn.00457f30
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x460]
call fcn.004574a0
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.0043ffc0
push eax
mov ecx, dword [ebp + 8]
call fcn.0043a9c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x460]
call fcn.00457f30
mov edx, dword [ebp - 0x448]
push edx
call sub.MPRAPI.dll_MprConfigServerDisconnect
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0043ccc0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043ccc0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
and esi, eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.0043ccc0
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.0043a9c0
mov dword [ebp - 0x468], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.0043a380
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.004d219c
mov esp, ebp
pop ebp
ret 0xc