Function at 0x140083770
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x11860]
mov rbx, rcx
test eax, eax
jne 0x140083793
mov dword [rcx + 0x11860], 2
jmp 0x140083798
cmp eax, 2
jne 0x1400837de
add rcx, 0x228
call fcn.1400aa7f0
test rax, rax
je 0x1400837d2
nop dword [rax]
mov rcx, rax
call fcn.140087ab0
cmp eax, 0xffffffdb
je 0x140083cbf
lea rcx, [rbx + 0x228]
call fcn.1400aa7f0
test rax, rax
jne 0x1400837b0
mov dword [rbx + 0x11860], 3
jmp 0x1400837e3
cmp eax, 3
jne 0x140083820
lea rcx, [rbx + 0x240]
call fcn.1400aa7f0
test rax, rax
je 0x140083816
mov rcx, rax
call fcn.140088be0
cmp eax, 0xffffffdb
je 0x140083cbf
lea rcx, [rbx + 0x240]
call fcn.1400aa7f0
test rax, rax
jne 0x1400837f4
mov dword [rbx + 0x11860], 4
test byte [rbx + 0x80], 2
mov qword [rsp + 0x38], rsi
je 0x140083939
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x140083854
mov r8, qword [rax + 0x40]
test r8, r8
je 0x140083854
lea rdx, [rbx + 0xc0]
mov rcx, rbx
call r8
mov rax, qword [rbx + 0x1c0]
test rax, rax
je 0x140083876
mov r8, qword [rax + 0x30]
test r8, r8
je 0x140083876
lea rdx, [rbx + 0x1c8]
mov rcx, rbx
call r8
mov rax, qword [rbx + 0x1e8]
test rax, rax
je 0x14008389d
mov r9, qword [rax + 0x28]
test r9, r9
je 0x14008389d
lea r8, [rbx + 0x1f0]
mov edx, 1
mov rcx, rbx
call r9
mov rax, qword [rbx + 0x1d0]
test rax, rax
je 0x1400838bf
mov r8, qword [rax + 0x20]
test r8, r8
je 0x1400838bf
lea rdx, [rbx + 0x1e0]
mov rcx, rbx
call r8
mov rax, qword [rbx + 0x150]
test rax, rax
je 0x1400838e1
mov r8, qword [rax + 0x30]
test r8, r8
je 0x1400838e1
lea rdx, [rbx + 0x158]
mov rcx, rbx
call r8
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x140083905
mov r9, qword [rax + 0x28]
test r9, r9
je 0x140083905
lea r8, [rbx + 0x180]
xor edx, edx
mov rcx, rbx
call r9
mov rax, qword [rbx + 0x160]
test rax, rax
je 0x140083927
mov r8, qword [rax + 0x20]
test r8, r8
je 0x140083927
lea rdx, [rbx + 0x170]
mov rcx, rbx
call r8
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x140083939
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x138]
test rcx, rcx
je 0x14008394b
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x1a8]
test rcx, rcx
je 0x14008395d
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14008396c
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14008397b
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x14008398d
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x1f8]
test rcx, rcx
je 0x14008399f
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x200]
test rcx, rcx
je 0x1400839b1
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x208]
test rcx, rcx
je 0x1400839c3
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x210]
test rcx, rcx
je 0x1400839d5
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x140]
test rcx, rcx
je 0x1400839e7
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x188]
test rcx, rcx
je 0x1400839f9
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x140083a0b
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x198]
test rcx, rcx
je 0x140083a1d
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x1a0]
test rcx, rcx
je 0x140083a2f
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x140083a41
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x130]
test rcx, rcx
je 0x140083a53
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11560]
test rcx, rcx
je 0x140083a65
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11578]
test rcx, rcx
je 0x140083a77
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11990]
test rcx, rcx
je 0x140083a89
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x119a0]
test rcx, rcx
je 0x140083a9b
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x119b8]
test rcx, rcx
je 0x140083aad
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x119d0]
test rcx, rcx
je 0x140083abf
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a00]
test rcx, rcx
je 0x140083ad1
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a10]
test rcx, rcx
je 0x140083ae3
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x119f0]
test rcx, rcx
je 0x140083af5
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a38]
test rcx, rcx
je 0x140083b07
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a48]
test rcx, rcx
je 0x140083b19
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a58]
test rcx, rcx
je 0x140083b2b
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a88]
test rcx, rcx
je 0x140083b3d
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11a98]
test rcx, rcx
je 0x140083b4f
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11ac0]
test rcx, rcx
je 0x140083b61
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11b00]
test rcx, rcx
je 0x140083b73
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11b10]
test rcx, rcx
je 0x140083b85
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11b28]
test rcx, rcx
je 0x140083b97
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11b50]
test rcx, rcx
je 0x140083ba9
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11b80]
test rcx, rcx
je 0x140083bbb
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11d08]
test rcx, rcx
je 0x140083bcd
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11e48]
test rcx, rcx
je 0x140083bdf
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x11cd8]
test rcx, rcx
je 0x140083bf1
mov rdx, rbx
call qword [rbx + 0x18]
cmp qword [rbx + 0x8b58], 0
je 0x140083c08
mov rcx, qword [rbx + 0x8b60]
mov rdx, rbx
call qword [rbx + 0x18]
lea rcx, [rbx + 0x218]
call fcn.1400aa7f0
mov rdi, rax
test rax, rax
je 0x140083c4f
nop dword [rax]
mov rcx, rdi
call fcn.1400aa810
mov rcx, qword [rdi + 0x18]
mov rdx, rbx
call qword [rbx + 0x18]
mov rdx, rbx
mov rcx, rdi
call qword [rbx + 0x18]
lea rcx, [rbx + 0x218]
call fcn.1400aa7f0
mov rdi, rax
test rax, rax
jne 0x140083c20
cmp dword [rbx + 0x260], 0
mov rsi, qword [rsp + 0x38]
je 0x140083c7c
mov rcx, qword [rbx + 0x250]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140083c8e
mov rdx, rbx
call qword [rbx + 0x18]
mov rcx, qword [rbx + 0x268]
test rcx, rcx
je 0x140083ca9
test byte [rbx + 0x274], 1
je 0x140083ca9
mov rdx, rbx
call qword [rbx + 0x18]
mov rdx, rbx
mov rcx, rbx
call qword [rbx + 0x18]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffdb
add rsp, 0x20
pop rdi
ret