Function at 0x140061c50
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
mov ecx, dword [rdx + 0x10]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
cmp eax, 0x2736
je 0x140061cdd
cmp eax, 0x3e3
je 0x140061cdd
mov qword [rsp + 0x1c8], rsi
prefetchw byte [rdi + 0x88]
mov rax, qword [rdi + 0x88]
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x140061ccc
lock cmpxchg qword [rdi + 0x88], rcx
mov rcx, rax
je 0x140061cf8
inc rcx
cmp rcx, 1
ja 0x140061cb1
cmp rcx, 1
je 0x140061cd5
mov ecx, recv
int 0x29
mov rsi, qword [rsp + 0x1c8]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x1d0
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x1c0], r13
mov rsi, 0xffffffffffffffff
xor r13d, r13d
mov qword [rsp + 0x1b8], r14
mov qword [rsp + 0x1b0], r15
test edx, edx
jne 0x140062007
mov r14, qword [rdi + 0xa0]
sub r14, 0xffffffffffffff80
mov qword [rsp + 0x200], rbx
test byte [0x1400f8b3e], 4
movzx ebx, r13w
mov qword [rsp + 0x50], r13
je 0x140061da3
mov rax, qword [rdi + 0x78]
lea r9d, [rsi + 5]
mov qword [rsp + 0x58], rax
lea rdx, [0x1400cfe40]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x40], rax
lea rax, str.AcceptEx_Completed_
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x38], 4
mov qword [rbp - 0x28], reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140001460
lea rcx, [r14 + 0x90]
call fcn.140005bd0
test al, al
je 0x140061fc3
mov rcx, qword [r14 + 0x88]
lea r9, [rdi + 0x80]
mov edx, 0xffff
mov dword [rsp + 0x20], 8
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
jne 0x140061e58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
je 0x140061fc3
mov dword [rbp - 0x80], eax
mov rax, qword [rdi + 0xa0]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x80]
mov qword [rbp], rax
lea rax, str.Set_UPDATE_ACCEPT_CONTEXT
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 8], 8
mov qword [rbp + 8], 4
mov qword [rbp + 0x18], 0x1a
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, [0x1400cfe40]
call fcn.140001460
jmp 0x140061fc3
mov rax, qword [rdi + 0x78]
xor r9d, r9d
mov rcx, qword [r14 + 0x88]
xor r8d, r8d
mov edx, 0x48000025
mov r13, qword [rax + 0x38]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140061ecc
movzx ecx, word [rsp + 0x50]
xor edx, edx
mov rax, qword [0x1400f8b18]
add rcx, rcx
movzx eax, word [rax + rcx*8 + 0xc]
movzx ecx, byte [rsp + 0x52]
add eax, ecx
movzx ecx, word [r13 + 0xd4]
div ecx
mov ebx, edx
movzx eax, bx
imul rdx, rax, 0x1c0
mov eax, 1
add rdx, 0x100
add rdx, r13
mov qword [r14 + 0x78], rdx
lock xadd qword [rdx + 0x10], rax
inc rax
cmp rax, 1
jg 0x140061eff
mov ecx, recv
int 0x29
mov rax, qword [r14 + 0x78]
xor r9d, r9d
mov rcx, qword [r14 + 0x88]
xor r8d, r8d
mov rbx, qword [rax + 8]
mov rdx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rbx], rax
je 0x140061f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
test byte [0x1400f8b3e], 4
je 0x140061fc3
mov dword [rbp - 0x78], eax
mov rax, qword [rdi + 0xa0]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x68]
mov qword [rbp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rbp + 0x40], rax
lea rax, str.CreateIoCompletionPort__accepted_
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x38], 8
mov qword [rbp + 0x48], 4
mov qword [rbp + 0x58], 0x22
jmp 0x140061e3c
mov r8, qword [rdi + 0xa0]
mov rcx, qword [rdi + 0x78]
mov rax, qword [r13 + 0x10]
lea r9, [r8 + 0x40]
mov rdx, qword [rcx + 0x40]
call qword [case.0x1400639e1.0]
xor r13d, r13d
xor r9d, r9d
mov qword [rdi + 0xa0], r13
xor r8d, r8d
or byte [r14 + 0xa0], 1
xor edx, edx
mov rcx, r14
call fcn.140063000
mov rbx, qword [rsp + 0x200]
test r14, r14
je 0x140062077
mov rax, rsi
lock xadd qword [r14 + 0x90], rax
sub rax, 1
jg 0x140062077
test rax, rax
jne 0x140061ffe
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140062077
mov ecx, recv
int 0x29
jmp 0x140062077
test byte [0x1400f8b3e], 4
je 0x140062077
mov rax, qword [rdi + 0x78]
mov r9d, 4
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x70], rax
lea rax, [rbp - 0x70]
mov qword [rbp + 0x80], rax
lea rax, str.AcceptEx_completion
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x60]
mov dword [rbp - 0x70], edx
lea rdx, [0x1400cfe40]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x78], 8
mov qword [rbp + 0x88], 4
mov qword [rbp + 0x98], reloc.OLEAUT32.dll_SafeArrayLock
call fcn.140001460
mov rcx, qword [rdi + 0xa0]
mov r15, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1b8]
test rcx, rcx
je 0x14006209f
call fcn.140061410
mov qword [rdi + 0xa0], r13
lea rcx, [rdi - 8]
call fcn.140061a70
lock xadd qword [rdi + 0x88], rsi
mov r13, qword [rsp + 0x1c0]
sub rsi, 1
jg 0x140061cd5
test rsi, rsi
jne 0x140061cce
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140061cd5