Function at 0x180177880
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.1800022ba
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.1800f04a0
call fcn.180001395
mov rdi, rax
mov qword [rbp - 0x68], rdi
cmp byte [rdi + 7], 0
jne 0x180177ad5
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.1800051f0
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0xa8]
call fcn.180005240
cmp esi, 0x6f
jne 0x180177ad1
mov ecx, dword [rbp - 0x48]
movsxd rcx, ecx
call fcn.1801358f0
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.1800051f0
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0xa8]
call fcn.180005240
test esi, esi
jne 0x180177a85
mov rdi, qword [rbp - 0x60]
lea rcx, [rdi + 8]
mov qword [rbp - 0x70], rcx
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.180175bf0
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005090
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.180175bf0
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005090
lea rcx, [rdi + 8]
mov qword [rbp - 0x70], rcx
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.180175bf0
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005090
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.180175bf0
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005090
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.180175bf0
mov rcx, qword [rbp - 0x70]
mov rdx, rax
call fcn.180005090
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 0x180177ac8
mov rcx, qword [rbp - 0x50]
call fcn.18015b450
jmp 0x180177ac8
lea rcx, [0x1802ef4d8]
call fcn.180004d80
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.18015c0a0
mov rdx, rax
mov rcx, rdi
call fcn.180135e40
mov dword [rdi + 0x50], esi
mov rcx, rdi
call fcn.180005350
cmp esi, 0x6f
je 0x180177920
test esi, esi
jne 0x180177a9a
cmp byte [rbp - 0x40], 0
je 0x180177aee
mov rcx, qword [rbp - 0x58]
call fcn.1800f03a0
mov rcx, rax
cmp dword [rcx], ecx
call fcn.1800efe50
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret