Function at 0x4f6cd0
Capabilities:
Reference google public dns server

Disassembly:
push 0xffffffffffffffff
push 0x577208
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
mov esi, ecx
call fcn.00441b60
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4f6e94
mov ecx, eax
lea ebx, [esp + 0x24]
call fcn.004412a0
mov ecx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov eax, 0x586ad0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], edx
call fcn.00498ad0
test eax, eax
jne 0x4f6e94
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi], ebx
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
xor ebp, ebp
test byte [esi + 0xc04], 4
je 0x4f6f36
add esi, 0xc1c
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xffffffff
call sub.iphlpapi.dll_GetBestInterface
test eax, eax
jne 0x4f6f36
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x4f6f36
cmp dword [esp + 0x14], ecx
je 0x4f6f36
lea ebx, [esp + 0x24]
call fcn.004412a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov eax, 0x586ad0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x78], edx
call fcn.00498ad0
test eax, eax
jne 0x4f6f36
lea esi, [esp + 0x6c]
call fcn.004419a0
cmp eax, 3
je 0x4f6e10
cmp eax, 4
je 0x4f6e10
cmp eax, 5
jne 0x4f6f36
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x70]
call fcn.0051a800
mov ebx, eax
lea ecx, [esp + 0x24]
push ecx
mov esi, edi
mov dword [esp + 0x90], 0
call fcn.0051a800
mov byte [esp + 0x90], 1
mov edx, dword [ebx]
mov eax, dword [eax]
push edx
push eax
push str.KWifiCreator::_GetBestShareRoute__s____s
mov ecx, 0x6180b8
call fcn.00435a30
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.00410000
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.00410000
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [edi], ecx
mov ecx, dword [esp + 0x78]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x4f6f34
push str.8.8.8.8
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xffffffff
call sub.iphlpapi.dll_GetBestInterface
test eax, eax
jne 0x4f6f98
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x4f6f98
lea ebx, [esp + 0x24]
call fcn.004412a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov eax, 0x586ad0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x78], edx
call fcn.00498ad0
test eax, eax
jne 0x4f6f98
lea esi, [esp + 0x6c]
call fcn.004419a0
cmp eax, 3
je 0x4f6f19
cmp eax, 4
je 0x4f6f19
cmp eax, 5
jne 0x4f6f98
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ebp, ebp
lea ecx, [esp + 0x1c]
push ecx
mov esi, edi
call fcn.0051a800
mov edx, dword [esp + 0x18]
push 0
mov dword [esp + 0x90], 2
mov eax, dword [eax]
push edx
push eax
push str.KWifiCreator::_GetBestShareRoute_GUID:_s__Index:_d__return_0x_x
mov ecx, 0x6180b8
call fcn.00435a30
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f6f94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x4f6f9d
mov eax, 0xe0010004
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00569ed6
add esp, 0x7c
ret