Function at 0x4614b0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8c84
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x30], ebx
call esi
cmp eax, 0x6f
jne 0x46176e
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049d2d6
mov edi, eax
add esp, 4
mov dword [ebp - 0x34], edi
lea edx, [ebp - 0x30]
push edx
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x461761
lea eax, [ebp - 0xe0]
push eax
call fcn.00403200
lea ecx, [ebp - 0xe0]
push str.DNS_Server:
push ecx
mov byte [ebp - 4], 1
call fcn.00404d50
lea edx, [edi + 0x110]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.004058a0
add esp, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0xe0]
call fcn.00402e30
mov ecx, esi
push ecx
push 3
mov byte [ebp - 4], 2
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x18], 8
jb 0x461584
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
call fcn.00401690
mov ebx, dword [edi + 0x10c]
test ebx, ebx
je 0x461761
lea ecx, [ebp - 0x90]
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0xe0]
push eax
call fcn.00403200
lea ecx, [ebp - 0xe0]
push str.DNS_Server:
push ecx
mov byte [ebp - 4], 3
call fcn.00404d50
lea edx, [ebx + 4]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.004058a0
add esp, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0xe0]
call fcn.00402e30
mov ecx, esi
push ecx
push 3
mov byte [ebp - 4], 4
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x18], 8
jb 0x461627
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
mov ecx, dword [ebp - 0xe0]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xe0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
test byte [ebp - 0x9c], 1
mov dword [ebp - 0xdc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x461671
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
push eax
call fcn.004b5907
add esp, 4
mov ecx, dword [ebp - 0xcc]
mov dword [ecx], esi
mov edx, dword [ebp - 0xbc]
mov dword [edx], esi
mov eax, dword [ebp - 0xac]
mov dword [eax], esi
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], esi
mov edx, dword [ebp - 0xb8]
mov dword [edx], esi
mov eax, dword [ebp - 0xa8]
mov dword [eax], esi
and dword [ebp - 0x9c], 0xfffffffe
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xdc], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x461717
mov edi, dword [eax]
test edi, edi
je 0x461708
push 0
lea ecx, [ebp - 0x3c]
call fcn.0049ca34
mov eax, dword [edi + 4]
test eax, eax
je 0x4616e9
cmp eax, 0xffffffff
jae 0x4616e9
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x3c]
not esi
call fcn.0049ca5c
and esi, edi
je 0x461708
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004b5907
mov edi, dword [ebp - 0x34]
add esp, 4
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.0049ca8d
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xe0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x90]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.0049cb21
mov ebx, dword [ebx]
add esp, 4
test ebx, ebx
jne 0x4615c2
test edi, edi
je 0x46176e
push edi
call fcn.004b5907
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret