Function at 0x14006774c
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 - 0x560]
sub rsp, 0x660
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x48], rcx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], r8
lea r14, [rcx + 0x150]
xor ebx, ebx
test byte [r14 + 0x10], 1
je 0x1400677b8
cmp qword [r14 + 0x10], 1
jne 0x1400677ab
cmp dword [r14], ebx
je 0x1400677b8
mov rbx, qword [rdx + 8]
or rsi, 0xffffffffffffffff
jmp 0x140067eed
mov dword [rsp + 0x54], ebx
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140093070]
mov edi, 3
lea rsi, [0x140093068]
cmp rcx, 1
jbe 0x1400677f0
mov rax, qword [0x140093068]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400677f2
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rsi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r14], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [r14 + 0x10], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rax
mov rax, qword [r12 + 8]
test rax, rax
je 0x14006783d
lock inc dword [rax + 8]
mov r15, qword [r12]
mov qword [rsp + 0x40], r15
mov qword [rbp + 0xe0], r15
mov rdi, qword [r12 + 8]
mov qword [rbp + 0xe8], rdi
mov r8, qword [r12 + 0x10]
mov qword [rbp + 0xf0], r8
mov r10, r15
mov r9, r8
or rsi, 0xffffffffffffffff
jmp 0x140067873
xor ebx, ebx
test r10, r10
jne 0x140067884
cmp qword [r13], rbx
je 0x140067eb0
jmp 0x140067887
mov r9, r8
cmp r15, qword [r13]
jne 0x140067897
cmp r9, qword [r13 + 0x10]
je 0x140067eb0
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400678b5
imul rax, rax, 0x64
jmp 0x1400678d0
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp qword [rcx + 0x168], rax
jl 0x140067ea2
mov rax, qword [rbp + 0xf0]
lea rax, [rax + rax*2]
shl rax, 5
add rax, qword [r15]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x108], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp + 0x118], xmm1
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x120], eax
lea rax, [rcx + 0xb0]
mov rcx, qword [rax]
lea r15, [rax + 8]
xor eax, eax
cmp qword [r15], rsi
je 0x1400679a5
xor edx, edx
lock cmpxchg qword [rcx + 0x38], rdx
mov qword [rsp + 0x40], rax
je 0x140067979
mov rbx, qword [r15]
lea rdi, [rax + 0x30]
mov qword [rbp - 0x38], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x30], 1
mov edx, 0x3e3
lea rcx, [rbp + 0x68]
call fcn.140063450
lea r8, [rbp + 0x68]
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call fcn.140055ed8
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rbx, [r15 + 8]
mov r9, r14
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r15]
call fcn.140055c3c
mov rdi, qword [rbp + 0xe8]
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
jmp 0x1400679c3
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
movups xmmword [r14], xmm0
movsd xmm0, qword [rbp - 0x18]
movsd qword [r14 + 0x10], xmm0
lea rbx, [r15 + 8]
mov qword [r15], rsi
mov byte [rbx], al
mov qword [r15 + 0x10], rax
mov rbx, qword [r15 + 0x18]
mov qword [r15 + 0x18], rax
test rbx, rbx
je 0x140067a13
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140067a00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140067a00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x40], rax
mov rdi, qword [rbp + 0xe8]
mov ebx, 0x17
lea eax, [rbx - 0x15]
cmp word [rbp + 0x108], ax
cmove ebx, eax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0xb0]
add rcx, 0x28
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 6
mov dword [rsp + 0x20], 1
mov r9d, ebx
mov r8, r15
lea rdx, [rbp + 0xb0]
call fcn.1400562ac
test byte [rax + 0x10], 1
je 0x140067a6f
cmp qword [rax + 0x10], 1
jne 0x140067aa4
xor edx, edx
cmp dword [rax], edx
jne 0x140067aa4
mov dword [r15 + 0x38], ebx
xor eax, eax
mov byte [r15 + 0x3c], al
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov dword [rbp - 0x68], eax
lea ecx, [rax + 2]
mov qword [rbp - 0x80], rcx
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [r15 + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [r15 + 0x50], xmm1
mov dword [r15 + 0x58], eax
jmp 0x140067aa9
mov ecx, 2
movups xmm1, xmmword [r14]
movups xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [r14 + 0x10]
movsd qword [rbp - 0x50], xmm0
mov rax, qword [r14 + 0x10]
cmp rax, rcx
jb 0x140067adb
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 [r14], xmm1
movsd qword [r14 + 0x10], xmm0
test byte [r14 + 0x10], 1
je 0x140067b05
cmp qword [r14 + 0x10], 1
jne 0x140067de1
xor r15d, r15d
cmp dword [r14], r15d
jne 0x140067de1
jmp 0x140067b08
xor r15d, r15d
mov rbx, qword [rsp + 0x48]
mov eax, 2
test byte [rbx + 0xc0], al
jne 0x140067b30
mov r9, r14
lea rdx, [rbp + 0xc8]
lea rcx, [rbx + 0xb0]
call fcn.140062854
mov eax, select
lea ecx, [rax - 0xe]
lea r8d, [rax + 0xc]
cmp word [rbp + 0x108], cx
cmove r8d, eax
mov rcx, qword [rbx + 0xb8]
mov qword [rbp - 0x10], rcx
cmp byte [rbx + 0xf4], r15b
jne 0x140067b6b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 4], xmm0
mov qword [rbp + 0xc], rax
mov dword [rbp + 0x14], eax
cmp rcx, rsi
jne 0x140067b7f
mov edx, 0x2719
mov rcx, r14
call fcn.1400633c4
jmp 0x140067b99
lea rdx, [rbp + 0x108]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
setne dl
mov rcx, r14
call fcn.140055b8c
test byte [r14 + 0x10], 1
je 0x140067eb0
cmp qword [r14 + 0x10], 1
jne 0x140067bb4
cmp dword [r14], r15d
je 0x140067eb0
mov edx, 0x2734
lea rcx, [rbp + 0x80]
call fcn.140063450
lea rdx, [rbp + 0x80]
mov rcx, r14
call fcn.140053704
test al, al
jne 0x140067c00
mov edx, 0x2733
lea rcx, [rbp + 0x98]
call fcn.140063450
lea rdx, [rbp + 0x98]
mov rcx, r14
call fcn.140053704
test al, al
je 0x140067de1
mov rcx, rbx
call fcn.140062760
mov r8d, eax
mov rcx, qword [rbx + 0xb8]
mov qword [rbp + 0x18], rcx
cmp byte [rbx + 0xf4], r15b
jne 0x140067c2f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x24], xmm0
mov qword [rbp + 0x34], rax
mov dword [rbp + 0x3c], eax
cmp rcx, rsi
jne 0x140067c46
mov edx, 0x2719
mov rcx, r14
call fcn.1400633c4
jmp 0x140067de1
mov qword [rbp + 0x348], rcx
mov dword [rbp + 0x340], 1
mov qword [rbp + 0x138], rcx
mov dword [rbp + 0x130], 1
test r8d, r8d
js 0x140067ca4
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0x100], edx
imul eax, edx, 0x3e8
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rbp + 0x104], eax
lea rax, [rbp + 0x100]
jmp 0x140067ca7
mov rax, r15
inc ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x130]
lea r8, [rbp + 0x340]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
mov rcx, r14
call fcn.140055b8c
test ebx, ebx
js 0x140067de1
mov dword [rbp + 0xf8], r15d
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0xb8]
mov qword [rbp + 0x40], rcx
cmp byte [rax + 0xf4], r15b
jne 0x140067d0b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x4c], xmm0
mov qword [rbp + 0x5c], rax
mov dword [rbp + 0x64], eax
cmp rcx, rsi
je 0x140067e9b
mov dword [rbp + 0xfc], 4
lea rax, [rbp + 0xfc]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf8]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, eax
test eax, eax
setne dl
mov rcx, r14
call fcn.140055b8c
cmp ebx, esi
je 0x140067eb0
mov ebx, dword [rbp + 0xf8]
mov dword [rsp + 0x6c], r15d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140093510]
cmp rcx, 1
jbe 0x140067d90
mov rax, qword [0x140093508]
mov edx, ebx
lea rcx, [0x140093508]
call qword [rax + 0x30]
jmp 0x140067d95
test ebx, ebx
setne al
movzx eax, al
add rax, 2
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], ebx
lea rax, [0x140093508]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [r14], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [r14 + 0x10], xmm1
test byte [r14 + 0x10], 1
je 0x140067eb0
cmp qword [r14 + 0x10], 1
jne 0x140067de1
cmp dword [r14], r15d
je 0x140067eb0
mov r8, qword [rbp + 0xf0]
inc r8
mov qword [rbp + 0xf0], r8
mov r15, qword [rsp + 0x40]
mov r10, r15
mov r9, r8
mov rcx, qword [r15 + 8]
sub rcx, qword [r15]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jne 0x140067871
xor eax, eax
mov r15d, eax
mov qword [rsp + 0x40], rax
mov qword [rbp + 0xe0], rax
mov rbx, rdi
mov edi, eax
mov qword [rbp + 0xe8], rax
test rbx, rbx
je 0x140067e84
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140067e71
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140067e71
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r15, qword [rbp + 0xe0]
mov qword [rsp + 0x40], r15
mov rdi, qword [rbp + 0xe8]
xor ebx, ebx
mov qword [rbp + 0xf0], rbx
mov r10d, ebx
mov r8d, ebx
mov r9d, ebx
jmp 0x140067873
mov edx, 0x2719
jmp 0x140067ea7
mov edx, 0x274c
mov rcx, r14
call fcn.1400633c4
nop
test rdi, rdi
je 0x140067ee8
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140067ee8
mov rbx, qword [rbp + 0xe8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140067ee8
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140067f1a
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140067f1a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140067f1a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
nop
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x140067f4a
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140067f4a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140067f4a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x660
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret