Function at 0x1008ade0
Capabilities:
Get networking parameters
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101144d5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], esi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 4
push eax
push edi
push edi
push 1
push 6
call dword [sym.imp.DNSAPI.dll_DnsQueryConfig]
test eax, eax
je 0x1008ae5e
mov byte [ebp - 4], bl
jmp 0x1008af58
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1008ae6d
mov byte [ebp - 4], al
jmp 0x1008af58
mov edx, dword [eax]
test edx, edx
jne 0x1008ae83
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
jmp 0x1008af58
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test edx, edx
je 0x1008aed1
xor esi, esi
nop
mov eax, dword [eax + ecx*4 + 4]
mov dword [ebp - 0x1c], eax
cmp edi, esi
je 0x1008aea5
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x3c], edi
jmp 0x1008aebb
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.1007f9b0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [eax]
jb 0x1008ae90
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], esi
xor esi, esi
mov dword [ebp - 0x14], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
mov eax, edx
mov dword [ebp - 0x18], edx
cmp eax, edi
je 0x1008af20
mov edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp esi, edx
je 0x1008aefa
mov dword [esi], ecx
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x1008af10
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.1007f520
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x1008aee7
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test edx, edx
je 0x1008af58
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1008af4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0ba
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov eax, esi
sub eax, ebx
test eax, 0xfffffffc
jne 0x1008b025
push 0x248
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x1008b025
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x248
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
cmp eax, 0x6f
jne 0x1008afb3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x1008b025
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
test eax, eax
jne 0x1008b01e
add edi, 0x10c
je 0x1008b017
nop word [eax + eax]
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call fcn.1007a040
test al, al
je 0x1008b014
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x24], eax
cmp esi, dword [ebp - 0x2c]
je 0x1008affe
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x1008b00e
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.1007f520
mov esi, dword [ebp - 0x30]
mov edi, dword [edi]
test edi, edi
jne 0x1008afd0
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1008b025
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 0x28]
add edi, 0x4e0
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x1008b038
mov dword [edi + 4], eax
sub esi, ebx
sar esi, 2
test esi, esi
je 0x1008b06f
mov ecx, dword [ebx]
call fcn.1007a040
test al, al
je 0x1008b067
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x1008b05e
mov eax, dword [ebx]
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1008b067
push ebx
push ecx
mov ecx, edi
call fcn.1007f520
add ebx, 4
sub esi, 1
jne 0x1008b041
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x1008b0a0
push str.8.8.8.8
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x28], eax
cmp ecx, dword [edi + 8]
je 0x1008b094
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1008b0a0
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.1007f520
lea ecx, [ebp - 0x34]
call fcn.10007770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100c9aa4
int3