Function at 0x18001ad70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rbx, rcx
movzx eax, byte [rcx + 0x69]
test al, al
je 0x18001b24d
cmp byte [rcx + 0x38], 0
je 0x18001adb2
mov eax, dword [rdx + 0x28]
test eax, eax
jns 0x18001ada5
and eax, 0x7fff0000
cmp eax, 0x10000
jne 0x18001adb2
cmp dword [rcx + 0xc4], 0
jne 0x18001ae61
mov eax, dword [rdx + 0x28]
test eax, eax
jns 0x18001b24d
test eax, 0x7fff0000
jne 0x18001b24d
add rcx, 0xc0
mov rax, qword [rdx + 0x20]
mov r8d, dword [rdx + 0x48]
mov rdx, qword [rax]
call fcn.180024ae0
mov ecx, dword [rbx + 0xd4]
cmp byte [rbx + 0x38], 0
je 0x18001ae2a
cmp ecx, 1
je 0x18001b24d
cmp dword [rbx + 0xa4], 0
je 0x18001ae01
test ecx, ecx
jne 0x18001ae61
mov dword [rbx + 0xa4], 0xffffffff
xor eax, eax
mov qword [rbx + 0xf0], rax
mov eax, 1
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
cmp ecx, 1
jne 0x18001ae61
mov dword [rbx + 0xa4], 0xffffffff
mov eax, dword [rbx + 0xdc]
mov dword [rbx + 0xac], eax
xor eax, eax
mov qword [rbx + 0xf0], rax
mov eax, ecx
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
mov rdx, rbx
mov rcx, qword [rbx + 0x2d0]
call fcn.1800267e0
mov eax, dword [rbx + 0xcc]
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0xd0]
mov dword [rbx + 0x120], eax
mov eax, dword [rbx + 0x14]
add eax, 0xffffffe4
mov dword [rbx + 0xc], eax
add eax, 0xfffffff0
mov dword [rbx + 0x10], eax
mov eax, dword [rbx + 0xc8]
mov dword [rbx + 0x1a0], eax
mov dword [rbx + 0x178], eax
mov dword [rbx + 0x188], eax
dec eax
mov dword [rbx + 0x190], eax
mov eax, dword [rbx + 0xd8]
mov dword [rbx + 8], eax
movups xmm0, xmmword [rbx + 0xe0]
movups xmmword [rbx + 0x2e0], xmm0
mov ecx, 0x40
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov r8d, dword [rbx + 0x10]
mov rcx, rax
call fcn.180017400
nop
mov qword [rbx + 0xf8], rax
mov ecx, 0x28
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov rdx, qword [rbx + 0x2d0]
add rdx, 8
mov r8d, dword [rbx + 0x24]
mov rcx, rax
call fcn.180017790
nop
mov qword [rbx + 0x158], rax
mov ecx, gethostbyname
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov edx, dword [rbx + 0x120]
add edx, edx
mov rcx, rax
call fcn.180022da0
nop
mov qword [rbx + 0x100], rax
mov ecx, gethostbyname
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov edx, dword [rbx + 0x1c]
mov rcx, rax
call fcn.180023810
nop
mov qword [rbx + 0x160], rax
mov ecx, 0x28
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov rcx, rax
call fcn.180027360
nop
mov qword [rbx + 0x168], rax
mov ecx, 0x58
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov r8d, 0x40
mov rcx, rax
call fcn.1800273f0
nop
mov qword [rbx + 0x170], rax
mov ecx, 0x58
call fcn.18008a528
mov qword [rsp + 0x190], rax
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.1800273f0
nop
mov qword [rbx + 0x108], rax
lea rax, vtable.CInfoBlock.0
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x48], eax
mov rcx, qword [rbx + 0x2d8]
cmp eax, 2
jne 0x18001b016
mov eax, dword [rcx + 4]
mov dword [rsp + 0x38], eax
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], eax
jmp 0x18001b01f
movups xmm0, xmmword [rcx + 8]
movups xmmword [rsp + 0x38], xmm0
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x60]
call fcn.18001fac0
test eax, eax
js 0x18001b03f
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x7c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 0x78], eax
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rax
mov qword [rbx + 0x58], rax
mov eax, dword [rbx]
mov dword [rcx + 0x4c], eax
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x14]
mov dword [rcx + 0x30], eax
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x120]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rcx + 0x28], xmm0
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x138]
mov dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x84]
mov dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x7c]
mov dword [rcx + 0x3c], eax
mov rcx, qword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0x20], eax
mov rcx, qword [rbx + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x270]
xorps xmm0, xmm0
test rcx, rcx
js 0x18001b0c4
cvtsi2sd xmm0, rcx
jmp 0x18001b0d9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mov rax, qword [rbx + 0x58]
mulsd xmm0, qword [rax + 0x10]
xor ecx, ecx
movsd xmm1, qword [0x180102430]
comisd xmm0, xmm1
jb 0x18001b109
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x18001b109
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rbx + 0x110], rax
mov rax, qword [rbx + 0x58]
mov rcx, qword [rax + 0x18]
mov qword [rbx + 0x128], rcx
mov byte [rbx + 0x69], 0
mov byte [rbx + 0x6a], 1
mov rax, qword [rbx + 0x2f8]
mov byte [rax + 0x20], 1
mov rdx, rbx
mov rcx, qword [rbx + 0x2d0]
call fcn.180026a10
mov edi, dword [rbx]
mov edx, 0xffffffff
mov rcx, qword [0x18011c270]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, eax
mov rdx, qword [0x18011c260]
mov rax, qword [rdx + 8]
mov rcx, rdx
cmp byte [rax + 0x19], 0
jne 0x18001b18b
cmp dword [rax + 0x20], edi
jge 0x18001b17f
mov rax, qword [rax + 0x10]
jmp 0x18001b185
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18001b174
cmp byte [rcx + 0x19], 0
jne 0x18001b196
cmp edi, dword [rcx + 0x20]
jge 0x18001b199
mov rcx, rdx
cmp rcx, rdx
je 0x18001b263
mov rdi, qword [rcx + 0x28]
cmp dword [rdi], 8
je 0x18001b263
cmp r8d, 0xffffffff
je 0x18001b1c2
mov rcx, qword [0x18011c270]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test rdi, rdi
je 0x18001b276
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax + 0x2c8]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x180], eax
lea r8, [rsp + 0x180]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rdx, qword [rdi + 0x38]
add rdx, 0x2e0
mov r8d, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
call fcn.1800197a0
mov dword [rdi], 5
lea r8, [rbx + 0x300]
mov byte [rsp + 0x20], 1
mov r9d, 4
mov rdx, rbx
lea rcx, [0x18011c318]
call fcn.180022870
nop
xor eax, eax
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
cmp r8d, 0xffffffff
je 0x18001b276
mov rcx, qword [0x18011c270]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor r9d, r9d
lea edx, [r9 + 5]
lea r8d, [r9 + 4]
lea rcx, [rsp + 0x80]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0x80]
call fcn.18008cf10
int3