Function at 0x18017f5d0
Capabilities:
Get networking parameters

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x70], rax
call fcn.18000238a
mov rsi, rax
mov qword [rbp - 0x60], rsi
mov rcx, qword [rsi + 0x20]
mov qword [rbp - 0x58], rcx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
call fcn.1800ff760
call fcn.1800013fc
mov rdi, rax
mov qword [rbp - 0x68], rdi
cmp byte [rdi + 7], 0
jne 0x18017f825
xor edx, edx
mov dword [rbp - 0x48], edx
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x78], rdx
xor ecx, ecx
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0xa8]
call fcn.1800051a0
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0xa8]
call fcn.1800051f0
cmp esi, 0x6f
jne 0x18017f821
mov ecx, dword [rbp - 0x48]
movsxd rcx, ecx
call fcn.1801442b0
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x80], rdx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0xa8]
call fcn.1800051a0
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0xa8]
call fcn.1800051f0
test esi, esi
jne 0x18017f7d5
mov rdi, qword [rbp - 0x60]
lea rcx, [rdi + 8]
mov qword [rbp - 0x70], rcx
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.18017d940
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005040
lea rcx, [rdi + 0x10]
mov qword [rbp - 0x70], rcx
mov rdx, qword [rbp - 0x50]
cmp byte [rdx], dl
mov rbx, qword [rbp - 0x50]
add rbx, 0x84
mov rcx, rbx
mov edx, 0x84
call fcn.18017d940
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005040
lea rcx, [rdi + 8]
mov qword [rbp - 0x70], rcx
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.18017d940
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005040
lea rcx, [rdi + 0x10]
mov qword [rbp - 0x70], rcx
mov rdx, qword [rbp - 0x50]
cmp byte [rdx], dl
mov rcx, rbx
mov edx, 0x84
call fcn.18017d940
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005040
mov rcx, qword [rbp - 0x50]
mov ecx, dword [rcx + 0x140]
mov rbx, qword [rbp - 0x68]
mov dword [rbx], ecx
lea rcx, [rdi + 0x18]
mov qword [rbp - 0x70], rcx
mov rdx, qword [rbp - 0x50]
cmp byte [rdx], dl
mov rdx, qword [rbp - 0x50]
lea rcx, [rdx + 0x144]
mov edx, 0x104
call fcn.18017d940
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005040
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x248], 0
setne cl
mov byte [rbx + 4], cl
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x24c], 0
setne cl
mov byte [rbx + 5], cl
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x250], 0
setne cl
mov byte [rbx + 6], cl
mov byte [rbx + 7], 1
test qword [rbp - 0x50], 0xffffffffffff0000
je 0x18017f818
mov rcx, qword [rbp - 0x50]
call fcn.180169cb0
jmp 0x18017f818
lea rcx, [0x1802ef220]
call fcn.180004d30
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.18016a900
mov rdx, rax
mov rcx, rdi
call fcn.1801447d0
mov dword [rdi + 0x50], esi
mov rcx, rdi
call fcn.180005810
cmp esi, 0x6f
je 0x18017f670
test esi, esi
jne 0x18017f7ea
cmp byte [rbp - 0x40], 0
je 0x18017f83e
mov rcx, qword [rbp - 0x58]
call fcn.1800ff660
mov rcx, rax
cmp dword [rcx], ecx
call fcn.1800ff110
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret