Function at 0x14007d820
Capabilities:
Connect socket
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r12, r8
mov qword [rsp + 0x48], r8
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
lea rsi, [rcx + 0x150]
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007d8ce
cmp rax, 1
jne 0x14007d88a
cmp dword [rsi], 0
je 0x14007d8ce
mov rbx, qword [rdx + 8]
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x14007d8c4
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007d8c4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007d8c4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
nop
mov rbx, qword [r12 + 8]
jmp 0x14007e256
xor ebx, ebx
mov dword [rsp + 0x64], ebx
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af0c0]
lea r15, [0x1400af0b8]
cmp rcx, 1
jbe 0x14007d904
mov rax, qword [0x1400af0b8]
lea edx, [rbx + 3]
mov rcx, r15
call qword [rax + 0x30]
jmp 0x14007d906
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 3
mov qword [rsp + 0x68], r15
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [rsi + 0x10], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x158], xmm0
mov qword [rbp + 0x168], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14007d952
lock inc dword [rax + 8]
mov r13, qword [rdi]
mov qword [rbp + 0x158], r13
mov r15, qword [rdi + 8]
mov qword [rbp + 0x160], r15
mov r8, qword [rdi + 0x10]
mov qword [rbp + 0x168], r8
mov r10, r13
mov r9, r8
mov rdi, 0xffffffffffffffff
nop
test r10, r10
jne 0x14007d991
cmp qword [r12], r10
je 0x14007e12e
jmp 0x14007d994
mov r9, r8
cmp r13, qword [r12]
jne 0x14007d9a5
cmp r9, qword [r12 + 0x10]
je 0x14007e12e
lea rcx, [rsp + 0x58]
call fcn.140064b90
mov rdx, qword [r14 + 0x168]
cmp rdx, qword [rsp + 0x58]
je 0x14007d9d2
mov ecx, 1
mov eax, 0xff
cmovl ecx, eax
test cl, cl
js 0x14007e0cc
mov rax, qword [rbp + 0x168]
lea rax, [rax + rax*2]
shl rax, 5
add rax, qword [r13]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x180], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp + 0x190], xmm1
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x198], eax
lea r12, [r14 + 0xb0]
mov rcx, qword [r12]
cmp qword [r12 + 8], rdi
je 0x14007da56
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbx
je 0x14007da2e
mov rdx, qword [r12 + 8]
mov rcx, rax
call fcn.140069ac0
lea rbx, [r12 + 0x10]
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r12 + 8]
call fcn.140068fc0
mov r15, qword [rbp + 0x160]
mov r13, qword [rbp + 0x158]
jmp 0x14007da73
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], rbx
movups xmmword [rsi], xmm0
movsd xmm0, qword [rbp + 0x78]
movsd qword [rsi + 0x10], xmm0
lea rbx, [r12 + 0x10]
mov qword [r12 + 8], rdi
mov byte [rbx], 0
xor eax, eax
mov qword [r12 + 0x18], rax
mov rbx, qword [r12 + 0x20]
mov qword [r12 + 0x20], rax
test rbx, rbx
je 0x14007dac8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007daba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007daba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r13, qword [rbp + 0x158]
mov r15, qword [rbp + 0x160]
mov ebx, 0x17
cmp word [rbp + 0x180], 2
mov eax, 2
cmove ebx, eax
mov rcx, qword [r12]
add rcx, 0x28
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 6
mov dword [rsp + 0x20], 1
mov r9d, ebx
lea r8, [r12 + 8]
lea rdx, [rbp + 0x128]
call fcn.140069f70
mov rcx, qword [rax + 0x10]
test cl, 1
je 0x14007db22
cmp rcx, 1
jne 0x14007db5c
cmp dword [rax], 0
jne 0x14007db5c
mov dword [r12 + 0x40], ebx
mov byte [r12 + 0x44], 0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
xor eax, eax
mov dword [rbp + 0x38], eax
mov qword [rbp + 0x20], 2
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [r12 + 0x48], xmm0
unpckhpd xmm1, xmm1
movsd qword [r12 + 0x58], xmm1
mov dword [r12 + 0x60], eax
movups xmm1, xmmword [rsi]
movups xmmword [rbp + 0x40], xmm1
movsd xmm0, qword [rsi + 0x10]
movsd qword [rbp + 0x50], xmm0
mov rax, qword [rsi + 0x10]
cmp rax, 2
jb 0x14007db8d
and eax, 1
lea rcx, str.C:Users_ntoskrnlDesktopSDK_boost_asio_182_0_boost_asiodetailwin_iocp_socket_service.hpp
or rax, rcx
mov qword [rbp + 0x50], rax
movsd xmm0, qword [rbp + 0x50]
movups xmmword [rsi], xmm1
movsd qword [rsi + 0x10], xmm0
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007dbb0
cmp rax, 1
jne 0x14007e00c
cmp dword [rsi], 0
jne 0x14007e00c
mov r14, qword [rsp + 0x50]
test byte [r14 + 0xc0], 2
jne 0x14007dbd1
mov r9, rsi
lea rdx, [rbp + 0x140]
mov rcx, r12
call fcn.1400786c0
mov r8d, 0x1c
cmp word [rbp + 0x180], 2
mov eax, select
cmove r8d, eax
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0xb0], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007dc19
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xbc], xmm0
mov qword [rbp + 0xcc], rax
mov dword [rbp + 0xd4], eax
cmp rcx, rdi
jne 0x14007dc89
xor r12d, r12d
mov dword [rsp + 0x7c], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007dc55
mov rax, qword [0x1400af558]
mov edx, 0x2719
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007dc57
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 0x2719
lea rcx, [0x1400af558]
mov qword [rbp - 0x80], rcx
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rsi + 0x10], xmm1
jmp 0x14007dcad
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
setne dl
mov rcx, rsi
call fcn.140068f00
xor r12d, r12d
lea rcx, [0x1400af558]
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007e1da
cmp rax, 1
jne 0x14007dcc8
cmp dword [rsi], 0
je 0x14007e1da
mov dword [rbp - 0x6c], r12d
mov rbx, qword [0x1400af560]
movabs rax, 0x4d54ee85da812030
add rax, rbx
cmp rax, 1
jbe 0x14007dcfe
mov rax, qword [0x1400af558]
mov edx, 0x2734
call qword [rax + 0x30]
mov rbx, qword [0x1400af560]
jmp 0x14007dd00
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x70], 0x2734
lea rax, [0x1400af558]
mov qword [rbp - 0x68], rax
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp + 0x80], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [rbp + 0x90], xmm1
lea rdx, [rbp + 0x80]
mov rcx, rsi
call fcn.1400668b0
test al, al
jne 0x14007ddc5
mov dword [rbp - 0x54], r12d
movabs rax, 0x4d54ee85da812030
add rax, rbx
cmp rax, 1
jbe 0x14007dd77
mov rax, qword [0x1400af558]
mov edx, 0x2733
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007dd79
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x58], 0x2733
lea rax, [0x1400af558]
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x98], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rbp + 0xa8], xmm1
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.1400668b0
test al, al
je 0x14007e011
mov rcx, r14
call fcn.1400785f0
mov r8d, eax
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0xd8], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007de01
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xe4], xmm0
mov qword [rbp + 0xf4], rax
mov dword [rbp + 0xfc], eax
cmp rcx, rdi
jne 0x14007de6f
xor ebx, ebx
mov dword [rbp - 0x3c], ebx
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007de3a
mov rax, qword [0x1400af558]
mov edx, 0x2719
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007de3c
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x40], 0x2719
lea rax, [0x1400af558]
mov qword [rbp - 0x38], rax
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rsi + 0x10], xmm1
jmp 0x14007e013
mov qword [rbp + 0x3b8], rcx
mov dword [rbp + 0x3b0], 1
mov qword [rbp + 0x1a8], rcx
mov dword [rbp + 0x1a0], 1
test r8d, r8d
js 0x14007decd
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0x178], edx
imul eax, edx, 0x3e8
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rbp + 0x17c], eax
lea rax, [rbp + 0x178]
jmp 0x14007ded0
mov rax, r12
inc ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a0]
lea r8, [rbp + 0x3b0]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
mov rcx, rsi
call fcn.140068f00
test ebx, ebx
js 0x14007e011
mov dword [rbp + 0x170], r12d
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0x100], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007df3c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10c], xmm0
mov qword [rbp + 0x11c], rax
mov dword [rbp + 0x124], eax
cmp rcx, rdi
je 0x14007e177
mov dword [rbp + 0x174], 4
lea rax, [rbp + 0x174]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x170]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, eax
test eax, eax
setne dl
mov rcx, rsi
call fcn.140068f00
cmp ebx, edi
je 0x14007e1da
mov ebx, dword [rbp + 0x170]
mov dword [rbp - 0x24], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007dfc0
mov rax, qword [0x1400af558]
mov edx, ebx
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007dfc5
test ebx, ebx
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x28], ebx
lea rax, [0x1400af558]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x18]
movsd qword [rsi + 0x10], xmm1
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007e1da
cmp rax, 1
jne 0x14007e011
cmp dword [rsi], 0
je 0x14007e1da
jmp 0x14007e011
mov r14, qword [rsp + 0x50]
xor ebx, ebx
mov r8, qword [rbp + 0x168]
inc r8
mov qword [rbp + 0x168], r8
mov r10, r13
mov r9, r8
mov rcx, qword [r13 + 8]
sub rcx, qword [r13]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
mov r12, qword [rsp + 0x48]
jne 0x14007d980
mov r13, rbx
mov qword [rbp + 0x158], rbx
mov rbx, r15
xor eax, eax
mov r15d, eax
mov qword [rbp + 0x160], rax
test rbx, rbx
je 0x14007e0b0
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007e0a2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007e0a2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r13, qword [rbp + 0x158]
mov r15, qword [rbp + 0x160]
xor ebx, ebx
mov qword [rbp + 0x168], rbx
mov r10d, ebx
mov r8d, ebx
mov r9d, ebx
mov r12, qword [rsp + 0x48]
jmp 0x14007d980
mov dword [rbp - 0xc], ebx
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007e0fe
mov rax, qword [0x1400af558]
mov edx, 0x274c
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007e100
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp], rax
mov dword [rbp - 0x10], 0x274c
lea rax, [0x1400af558]
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp]
movsd qword [rsi + 0x10], xmm1
test r15, r15
je 0x14007e169
mov eax, edi
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x14007e169
mov rbx, qword [rbp + 0x160]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007e169
mov rcx, qword [rbp + 0x160]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rbx, qword [rsp + 0x40]
mov rbx, qword [rbx + 8]
jmp 0x14007d895
mov dword [rbp + 0xc], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007e1aa
mov rax, qword [0x1400af558]
mov edx, 0x2719
lea rcx, [0x1400af558]
call qword [rax + 0x30]
jmp 0x14007e1ac
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp + 0x18], rax
mov dword [rbp + 8], 0x2719
lea rax, [0x1400af558]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp + 8]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp + 0x18]
movsd qword [rsi + 0x10], xmm1
test r15, r15
je 0x14007e215
mov eax, edi
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x14007e215
mov rbx, qword [rbp + 0x160]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007e215
mov rcx, qword [rbp + 0x160]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rbx, qword [rsp + 0x40]
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14007e24d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007e24d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007e24d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
nop
mov rbx, qword [rsp + 0x48]
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14007e282
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007e282
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14007e282
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14007f7f0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret