Function at 0x1400182e0
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.1400188e0
cmp eax, 1
jne 0x1400188c9
cmp dword [rsp + 0x188], 0
je 0x14001835b
mov byte [rsp + 0x158], 1
jmp 0x140018363
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.140016c70
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
je 0x1400188c9
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 0x1400188a8
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.140017dc0
mov eax, eax
cmp rax, 0x38
jne 0x1400188a8
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.140017870
mov eax, eax
cmp rax, 4
jne 0x1400188a8
cmp dword [rsp + 0x124], 1
jne 0x1400188a8
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.140017dc0
mov eax, eax
cmp rax, 4
jne 0x1400188a8
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.140017870
mov eax, eax
cmp rax, 4
jne 0x1400188a8
cmp dword [rsp + 0x124], 1
jne 0x1400188a8
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.140017dc0
mov eax, eax
cmp rax, 4
jne 0x1400188a8
call fcn.140018c20
mov qword [rsp + 0x138], rax
cmp qword [rsp + 0x138], 0
je 0x1400188a8
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.140017dc0
mov eax, eax
cmp rax, 0x264
jne 0x14001889a
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.140017870
mov eax, eax
cmp rax, 4
jne 0x14001889a
cmp dword [rsp + 0x124], 1
jne 0x14001889a
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.140017dc0
mov eax, eax
cmp rax, 4
jne 0x14001889a
call fcn.140018a20
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0x148], 0
je 0x14001889a
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.140017dc0
mov eax, eax
cmp rax, 0x318
jne 0x14001888c
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.140017870
mov eax, eax
cmp rax, 4
jne 0x14001888c
cmp dword [rsp + 0x124], 1
jne 0x14001888c
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.140017870
mov eax, eax
cmp rax, 4
jne 0x14001888c
cmp dword [rsp + 0x124], 1
jne 0x14001888c
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 0x14001888c
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 0x14001887e
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.140015180
mov rax, qword [rsp + 0x118]
jmp 0x1400188cb
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