Function at 0x140439610
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
movups xmmword [rsp + 0xe0], xmm6
mov rsi, qword [rsp + 0x170]
mov rbx, rcx
mov rdi, rdx
mov ebp, r8d
cmp r8d, 2
je 0x1404396d0
cmp r8d, 0x17
je 0x1404396d0
lea r13, [rbx + 0x10]
xor eax, eax
lock cmpxchg qword [r13], rax
je 0x1404398d8
mov rbx, rax
mov rcx, qword [rdi]
lea r12, [rsi + 0x38]
test byte [rdi + 8], 3
je 0x140439880
cmp rcx, 0xffffffffffffffff
je 0x14043a0d5
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140439920
mov dword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x48], 0
mov rcx, qword [rbx + 0x28]
lock add dword [rcx + 0x30], 1
mov rdx, rsi
call fcn.1404272f0
mov eax, 0xffffffff
jmp 0x1404399c7
and r9d, 0xfffffffb
cmp r9d, 1
jne 0x140439650
lea r12, [rbx + 0x18]
xor eax, eax
lock cmpxchg qword [r12], rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140439eb0
cmp rbx, rax
je 0x140439650
mov r14, rax
mov rcx, qword [rdi]
pxor xmm0, xmm0
cmp ebp, 2
mov r8d, 0x1c
mov r15d, 0x10
movups xmmword [rsp + 0xc2], xmm0
lea r13, [rsi + 0x38]
mov word [rsp + 0xc0], bp
cmove r8d, r15d
movups xmmword [rsp + 0xcc], xmm0
cmp rcx, 0xffffffffffffffff
je 0x14043a203
lea rdx, [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x14043a1a0
mov qword [rsi + 0x48], 0
mov dword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0
mov rcx, qword [rbx + 8]
movddup xmm6, qword [rsp + 0x178]
mov byte [rsi + 0x70], 1
lock add dword [rcx + 0x30], 1
xor r9d, r9d
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rdi]
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call r14
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x14043a100
cmp eax, 0x3e5
je 0x14043a100
mov rbx, qword [rbx + 8]
mov r14, qword [rsp + 0x178]
lea rdx, [0x14054d5e0]
mov r8d, 2
mov qword [r14], rdx
mov rcx, qword [rbx + 0x28]
xor edx, edx
mov r9, r14
mov dword [r14 + 0x30], 1
mov dword [r14 + 0x10], eax
mov dword [r14 + 0x14], 0
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1404396c6
lea r13, [rbx + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsp + 0x178]
mov r8, qword [rbx + 0x98]
mov qword [rcx + 0x20], 0
test r8, r8
je 0x14043a1f7
mov rax, qword [rsp + 0x178]
mov qword [r8 + 0x20], rax
mov qword [rbx + 0x98], rax
mov r10d, 1
xchg dword [rbx + 0x58], r10d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1404396c6
cmp rcx, 0xffffffffffffffff
je 0x140439f68
mov dword [rsp + 0xc0], 1
lea r8, [rsp + 0xc0]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x140439d40
mov dword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x48], 0
mov rcx, qword [rdi]
or byte [rdi + 8], 2
jmp 0x140439676
mov rdx, qword [rbx]
lea r9, [0x140621590]
lea r8, [0x14041f580]
mov rcx, qword [rdx]
mov qword [rsp + 0xc0], r9
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0xc8], 0
mov r9, qword [rcx + 0x30]
call fcn.14041f3f0
mov rbx, rax
mov rcx, rax
xchg qword [r13], rcx
jmp 0x140439665
mov rcx, r12
call fcn.14004b220
lea r13, [rsp + 0xa0]
mov edx, 0x2734
mov rcx, r13
call fcn.140416590
mov rdx, r13
mov rcx, r12
call fcn.140477f40
test al, al
jne 0x140439974
lea rbp, [rsp + 0xc0]
mov edx, 0x2733
mov rcx, rbp
call fcn.140416590
mov rdx, rbp
mov rcx, r12
call fcn.140477f40
test al, al
je 0x1404396b5
lea r14, [rbx + 0x30]
mov dword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0
mov rcx, r14
mov qword [rsi + 0x48], 0
mov r12, qword [rdi]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r15d, byte [rbx + 0x248]
test r15b, r15b
je 0x1404399e8
mov rcx, qword [rbx + 0x28]
lock add dword [rcx + 0x30], 1
mov rdx, rsi
call fcn.1404272f0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
movups xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r11, qword [rbx + 0x160]
mov rdi, qword [rbx + 0x1a0]
pxor xmm4, xmm4
mov qword [rsp + 0xc0], r12
movups xmmword [rsp + 0xa0], xmm4
add r11, 1
movups xmmword [rsp + 0xc8], xmm4
cmp r11, rdi
jb 0x140439d50
lea rdx, [0x14054eb40]
lea rax, [rdx + 0xb0]
mov rbp, qword [rdx]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 8]
lea rcx, [rdx + 8]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x10]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x18]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x20]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x28]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x30]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x38]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x40]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rdx + 0x48]
cmp r11, rbp
jb 0x140439ab9
mov rbp, qword [rcx + 0x48]
cmp r11, rbp
jb 0x140439ab9
lea rdx, [rcx + 0x50]
cmp rax, rdx
jne 0x140439a2d
mov rbp, qword [0x14054ebf0]
cmp rdi, rbp
je 0x14043a085
test rbp, rbp
je 0x14043a23b
mov r8, rbp
lea rdi, [rbx + 0x168]
shr r8, 0x3b
jne 0x14043a25a
mov rcx, rbp
shl rcx, 4
mov qword [rsp + 0x58], rcx
call fcn.14053f0a0
mov r10, qword [rsp + 0x58]
mov r9, rax
mov r11, rax
pxor xmm5, xmm5
lea r8, [r10 + rax]
sub r10, 0x10
shr r10, 4
add r10, 1
and r10d, 7
je 0x140439b63
cmp r10, 1
je 0x140439b56
cmp r10, 2
je 0x140439b4e
cmp r10, 3
je 0x140439b46
cmp r10, 4
je 0x140439b3e
cmp r10, 5
je 0x140439b36
cmp r10, 6
je 0x140439b2e
movups xmmword [rax], xmm5
lea r11, [rax + 0x10]
movups xmmword [r11], xmm5
add r11, 0x10
movups xmmword [r11], xmm5
add r11, 0x10
movups xmmword [r11], xmm5
add r11, 0x10
movups xmmword [r11], xmm5
add r11, 0x10
movups xmmword [r11], xmm5
add r11, 0x10
movups xmmword [r11], xmm5
add r11, 0x10
cmp r8, r11
je 0x140439b93
movups xmmword [r11], xmm5
sub r11, 0xffffffffffffff80
movups xmmword [r11 - 0x70], xmm5
movups xmmword [r11 - 0x60], xmm5
movups xmmword [r11 - 0x50], xmm5
movups xmmword [r11 - 0x40], xmm5
movups xmmword [r11 - 0x30], xmm5
movups xmmword [r11 - 0x20], xmm5
movups xmmword [r11 - 0x10], xmm5
cmp r8, r11
jne 0x140439b63
mov rcx, qword [rbx + 0x198]
test rcx, rcx
je 0x140439bc2
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], r9
call fcn.14053f070
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov rcx, r8
mov qword [rbx + 0x198], r9
sub rcx, r9
mov qword [rbx + 0x1a0], rbp
sub rcx, 0x10
shr rcx, 4
add rcx, 1
and ecx, 7
je 0x140439c63
cmp rcx, 1
je 0x140439c52
cmp rcx, 2
je 0x140439c46
cmp rcx, 3
je 0x140439c3a
cmp rcx, 4
je 0x140439c2e
cmp rcx, 5
je 0x140439c22
cmp rcx, 6
je 0x140439c16
mov qword [r9 + 8], rdi
lea rax, [r9 + 0x10]
mov qword [r9], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
mov qword [rax + 8], rdi
add rax, 0x10
mov qword [rax - 0x10], rdi
cmp r8, rax
je 0x140439cac
mov qword [rax + 8], rdi
sub rax, 0xffffffffffffff80
mov qword [rax - 0x80], rdi
mov qword [rax - 0x68], rdi
mov qword [rax - 0x70], rdi
mov qword [rax - 0x58], rdi
mov qword [rax - 0x60], rdi
mov qword [rax - 0x48], rdi
mov qword [rax - 0x50], rdi
mov qword [rax - 0x38], rdi
mov qword [rax - 0x40], rdi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], rdi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], rdi
mov qword [rax - 8], rdi
mov qword [rax - 0x10], rdi
cmp r8, rax
jne 0x140439c63
mov r8, qword [rbx + 0x168]
nop dword [rax + rax]
cmp rdi, r8
je 0x140439d61
mov rax, qword [r8 + 0x10]
xor edx, edx
mov r10, r8
mov r8, qword [r8]
div rbp
mov r11, rdx
shl r11, 4
lea rdx, [r9 + r11]
mov rcx, qword [rdx + 8]
cmp rdi, rcx
je 0x140439e10
mov rcx, qword [rcx]
mov qword [rsp + 0x58], r11
mov qword [rdx + 8], rcx
cmp rcx, r10
je 0x140439cb8
mov rax, r8
cmp rcx, r8
je 0x140439d2e
mov rdx, r10
mov qword [rsp + 0x60], r8
call fcn.14052f2f0
mov rbp, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov r9, qword [rbx + 0x198]
lea rdx, [r9 + rbp]
mov rbp, qword [rbx + 0x1a0]
mov rax, qword [rdx + 8]
mov r11, qword [rax + 8]
mov qword [rdx + 8], r11
cmp rdi, r8
jne 0x140439cc1
jmp 0x140439d61
mov rcx, r12
call fcn.14004b220
jmp 0x1404396b5
mov r9, qword [rbx + 0x198]
mov rbp, rdi
lea rdi, [rbx + 0x168]
mov rax, r12
xor edx, edx
div rbp
shl rdx, 4
lea rbp, [r9 + rdx]
mov qword [rsp + 0x58], rdx
mov r10, qword [rbp]
cmp r10, rdi
je 0x140439f98
mov r9, qword [rbp + 8]
mov rdi, qword [r9]
cmp r10, rdi
jne 0x140439da4
jmp 0x140439e20
mov r10, qword [r10]
cmp rdi, r10
je 0x140439e20
cmp r12, qword [r10 + 0x10]
jne 0x140439d98
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x58], r10
call fcn.14043b350
mov rcx, r13
call fcn.14043b350
mov r13, qword [rsp + 0x58]
mov qword [rsi + 0x20], 0
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x140439e98
mov qword [rax + 0x20], rsi
mov qword [r13 + 0x20], rsi
mov rsi, qword [rbx + 0x28]
lock add dword [rsi + 0x30], 1
test r15b, r15b
je 0x140439dfd
mov rcx, qword [rbx + 0x60]
call fcn.14004bb40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1404399c2
mov qword [rdx + 8], r10
mov qword [rdx], r10
jmp 0x140439cb8
mov rdx, qword [rbx + 0x180]
lea r15, [rbx + 0x180]
cmp rdx, r15
je 0x14043a040
mov qword [rdx + 0x10], r12
mov r8, qword [rdx]
cmp rdi, rdx
je 0x14043a030
cmp rdi, r8
je 0x14043a030
mov rcx, rdi
call fcn.14052f2f0
add qword [rbx + 0x178], 1
mov r12, qword [rsp + 0x58]
sub qword [rbx + 0x190], 1
add r12, qword [rbx + 0x198]
mov r15, qword [rdi + 8]
mov qword [rbp + 8], r15
mov r15d, 1
mov r10, qword [r12 + 8]
add qword [rbx + 0x160], 1
jmp 0x140439daa
movq xmm6, rsi
punpcklqdq xmm6, xmm6
movups xmmword [r13 + 0x18], xmm6
jmp 0x140439de6
lea r8, [rsp + 0x9c]
lea r9, [rsp + 0xa0]
movabs rdx, 0x4660ddf325a207b9
movabs rcx, 0x3e06748ce576e98e
mov qword [rsp + 0xc0], rdx
mov edx, 0xc8000006
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rdi]
mov dword [rsp + 0x9c], 0
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x20], r9
mov r9d, 0x10
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x14043a018
mov r10, qword [rsp + 0xa0]
xchg qword [r12], r10
mov r11, qword [rsp + 0xa0]
cmp r11, rbx
je 0x140439650
mov r14, r11
test r11, r11
je 0x140439650
jmp 0x140439707
lea rcx, [rsp + 0x70]
mov edx, 0x2719
call fcn.140416590
movdqu xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x38], xmm1
mov r8, qword [rsp + 0x80]
mov qword [r12 + 0x10], r8
jmp 0x1404396b5
mov rdx, qword [rbx + 0x180]
lea r11, [rbx + 0x180]
cmp rdx, r11
je 0x14043a098
mov r8, qword [rdx]
mov qword [rdx + 0x10], r12
cmp rdi, r8
je 0x14043a07d
cmp rdi, rdx
je 0x14043a07d
mov rcx, rdi
call fcn.14052f2f0
add qword [rbx + 0x178], 1
mov r8, qword [rsp + 0x58]
sub qword [rbx + 0x190], 1
add r8, qword [rbx + 0x198]
mov r15, qword [rbx + 0x170]
mov qword [rbp + 8], r15
mov rcx, qword [r8 + 8]
mov r15d, 1
mov r10, qword [r8 + 8]
mov qword [r8], rcx
add qword [rbx + 0x160], 1
jmp 0x140439daa
mov qword [rsp + 0xa0], rbx
mov r10, rbx
jmp 0x140439f3f
mov r12, rbp
jmp 0x140439e74
mov ecx, 0x28
call fcn.14053f0d0
mov qword [rax + 0x10], r12
pxor xmm0, xmm0
mov rdx, rdi
mov rcx, rax
movups xmmword [rax + 0x18], xmm0
mov r15, rax
call fcn.14052f3d0
mov r12, qword [rsp + 0x58]
add qword [rbx + 0x178], 1
add r12, qword [rbx + 0x198]
jmp 0x140439e78
mov r8, rbp
jmp 0x140439fec
mov r9, qword [rbx + 0x198]
lea rdi, [rbx + 0x168]
jmp 0x140439d61
mov ecx, 0x28
call fcn.14053f0d0
mov qword [rax + 0x10], r12
pxor xmm3, xmm3
mov rdx, rdi
mov rcx, rax
movups xmmword [rax + 0x18], xmm3
mov r15, rax
call fcn.14052f3d0
mov r8, qword [rsp + 0x58]
add qword [rbx + 0x178], 1
add r8, qword [rbx + 0x198]
jmp 0x140439ff3
lea rcx, [rsp + 0x70]
mov edx, 0x2719
call fcn.140416590
movdqu xmm2, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x38], xmm2
mov r10, qword [rsp + 0x80]
mov qword [r12 + 0x10], r10
jmp 0x140439928
mov r12, qword [rbx + 8]
mov rbp, qword [rsp + 0x178]
xor eax, eax
mov r11d, 1
lock cmpxchg dword [rbp + 0x30], r11d
cmp eax, 1
jne 0x1404396c6
xor edx, edx
mov rcx, qword [r12 + 0x28]
mov r9, qword [rsp + 0x178]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1404396c6
lea r15, [r12 + 0x60]
xor edi, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rsp + 0x178]
mov rbx, qword [r12 + 0x98]
mov qword [rsi + 0x20], rdi
test rbx, rbx
je 0x14043a22d
mov rax, qword [rsp + 0x178]
mov qword [rbx + 0x20], rax
mov qword [r12 + 0x98], rax
mov r14d, 1
xchg dword [r12 + 0x58], r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1404396c6
mov rcx, r13
call fcn.14004b220
mov rax, qword [rsi + 0x48]
test al, 1
je 0x14043a1ee
cmp rax, 1
jne 0x14043a1bd
mov ebp, dword [rsi + 0x38]
test ebp, ebp
je 0x14043a1ee
lea r15, [rsp + 0xa0]
mov edx, 0x2726
mov rcx, r15
call fcn.140416590
mov rcx, r13
mov rdx, r15
call fcn.140477f40
mov rcx, qword [rbx + 8]
test al, al
jne 0x140439778
jmp 0x1404396b9
mov rcx, qword [rbx + 8]
jmp 0x140439778
movups xmmword [rbx + 0x90], xmm6
jmp 0x140439863
lea rcx, [rsp + 0x70]
mov edx, 0x2719
call fcn.140416590
movdqu xmm3, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x38], xmm3
mov r12, qword [rsp + 0x80]
mov qword [r13 + 0x10], r12
jmp 0x14043a1a8
movups xmmword [r12 + 0x90], xmm6
jmp 0x14043a187
mov r8d, 0xf7
lea rdx, [0x140553fb0]
lea rcx, str.num_buckets___0
call qword [sym.imp.msvcrt.dll__assert]
mov rbx, rax
jmp 0x14043a277
call fcn.1405458a0
lea rcx, [rsp + 0xc8]
mov rbx, rax
call fcn.14043b350
mov rcx, r13
call fcn.14043b350
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.1403e4610
nop
nop
nop
nop
nop
nop
nop
nop
mov rdx, qword [rdx + 0x40]
jmp qword [rdx + 0x28]