Function at 0x140067530
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x54], 0
jne 0x140067586
mov rcx, qword [rsp + 0xa0]
call fcn.1400678c0
test eax, eax
je 0x140067586
xor eax, eax
jmp 0x1400678b4
mov rcx, qword [rsp + 0xa0]
call fcn.1400645a0
test eax, eax
je 0x1400675dc
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call fcn.140068580
test eax, eax
jne 0x1400675da
mov rax, qword [rsp + 0xa0]
add rax, 0x18
mov r8d, 0xffffffff
mov edx, 1
mov rcx, rax
call fcn.140066690
cmp eax, 0xffffffff
jne 0x1400675d8
xor eax, eax
jmp 0x1400678b4
jmp 0x140067597
jmp 0x140067604
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call fcn.140068580
test eax, eax
jne 0x140067604
call fcn.1400825b0
mov dword [rax], ntohl
xor eax, eax
jmp 0x1400678b4
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x54], 0
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x58], 0
je 0x140067699
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x58]
call fcn.140067280
mov dword [rsp + 0x60], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
mov r8, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa0]
mov edx, dword [rax + 0x58]
lea rcx, str.accept___ERROR:_async_io_completed_with_error:__d__io:_p
call fcn.140002e50
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x58], 0
jmp 0x140067881
mov rax, qword [rsp + 0xa0]
add rax, 0x90
mov dword [rsp + 0x20], 8
mov r9, rax
mov r8d, 0x700b
mov edx, 0xffff
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x400]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140067710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140067280
mov dword [rsp + 0x64], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, qword [rsp + 0xa0]
mov edx, eax
lea rcx, str.accept___ERROR:_setsockopt_failed:_d__io:_p
call fcn.140002e50
jmp 0x140067881
mov ecx, 0xc0
call fcn.140077f84
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140067752
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.1400825b0
mov r8, qword [rsp + 0xa0]
mov edx, dword [rax]
lea rcx, str.accept___ERROR:_d__io:_p
call fcn.140002e50
jmp 0x140067881
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov ecx, 0xc0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x400]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x58]
mov dword [rax + 0xb0], 3
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x400], 0xffffffffffffffff
cmp qword [rsp + 0xa8], 0
je 0x14006787a
cmp qword [rsp + 0xb0], 0
je 0x14006787a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x410]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x68]
call qword [fcn.14000b810]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x90
mov r8d, 0x90
xor edx, edx
mov rax, qword [rsp + 0x78]
mov rcx, rax
call qword [rsp + 0x68]
cmp dword [rsp + 0x40], 0
je 0x14006787a
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
mov r9, rax
mov r8, qword [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0xa8]
call fcn.1400738f0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14006786c
mov edx, dword [rsp + 0x50]
lea rcx, [0x1400e4d18]
call fcn.140002e50
jmp 0x140067881
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
jmp 0x1400678b4
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x400], 0xffffffffffffffff
je 0x1400678b2
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x400]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x400], 0xffffffffffffffff
xor eax, eax
add rsp, 0x90
pop rdi
ret