Function at 0x140016cb0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x60], eax
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x78]
call fcn.1400172b0
cmp eax, 1
jne 0x140017299
cmp dword [rsp + 0x188], 0
je 0x140016d2b
mov byte [rsp + 0x158], 1
jmp 0x140016d33
mov byte [rsp + 0x158], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0x1388
mov dword [rsp + 0x40], 0x1388
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
movzx eax, byte [rsp + 0x158]
mov byte [rsp + 0x20], al
mov r9d, dword [rsp + 0x180]
mov r8, qword [rsp + 0x178]
mov dl, 1
mov rcx, qword [rsp + 0x170]
call fcn.140015640
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
je 0x140017299
mov eax, 1
mov word [rsp + 0x120], ax
mov eax, 5
mov word [rsp + 0x122], ax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x120]
mov r8d, 0x80
mov edx, 0xffff
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140017278
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], gethostname
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 0x38
jne 0x140017278
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x124]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x70]
mov ecx, 1
call fcn.140016240
mov eax, eax
cmp rax, 4
jne 0x140017278
cmp dword [rsp + 0x124], 1
jne 0x140017278
mov dword [rsp + 0x12c], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 4
jne 0x140017278
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x124]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x70]
mov ecx, 1
call fcn.140016240
mov eax, eax
cmp rax, 4
jne 0x140017278
cmp dword [rsp + 0x124], 1
jne 0x140017278
mov dword [rsp + 0x130], 0x264
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 4
jne 0x140017278
call fcn.1400175f0
mov qword [rsp + 0x138], rax
cmp qword [rsp + 0x138], 0
je 0x140017278
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x264
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 0x264
jne 0x14001726a
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x124]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x70]
mov ecx, 1
call fcn.140016240
mov eax, eax
cmp rax, 4
jne 0x14001726a
cmp dword [rsp + 0x124], 1
jne 0x14001726a
mov dword [rsp + 0x140], 0x318
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 4
jne 0x14001726a
call fcn.1400173f0
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0x148], 0
je 0x14001726a
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x318
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x68]
mov ecx, 1
call fcn.140016790
mov eax, eax
cmp rax, 0x318
jne 0x14001725c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x124]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x70]
mov ecx, 1
call fcn.140016240
mov eax, eax
cmp rax, 4
jne 0x14001725c
cmp dword [rsp + 0x124], 1
jne 0x14001725c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x124]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8d, 0x1388
lea rdx, [rsp + 0x70]
mov ecx, 1
call fcn.140016240
mov eax, eax
cmp rax, 4
jne 0x14001725c
cmp dword [rsp + 0x124], 1
jne 0x14001725c
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x14001725c
mov r8d, 0x20
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14001724e
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x150]
mov qword [rax], rcx
mov r8d, gethostname
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x1b0]
call fcn.140013ca0
mov rax, qword [rsp + 0x118]
jmp 0x14001729b
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 2
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
add rsp, 0x168
ret