Function at 0x14007c210
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 [0x1400ad028]
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 + 0x50], rdx
mov qword [rbp + 0x58], r8
lea rsi, [rcx + 0x150]
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007c2be
cmp rax, 1
jne 0x14007c27a
cmp dword [rsi], 0
je 0x14007c2be
mov rbx, qword [rdx + 8]
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x14007c2b4
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007c2b4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007c2b4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
nop
mov rbx, qword [r12 + 8]
jmp 0x14007cc57
xor eax, eax
mov dword [rsp + 0x5c], eax
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad070]
lea rbx, [0x1400ad068]
cmp rcx, 1
jbe 0x14007c2f6
mov rax, qword [0x1400ad068]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007c2f8
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 3
mov qword [rsp + 0x60], rbx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rsi + 0x10], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x160], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14007c344
lock inc dword [rax + 8]
mov r13, qword [rdi]
mov qword [rbp + 0x150], r13
mov r15, qword [rdi + 8]
mov qword [rbp + 0x158], r15
mov r8, qword [rdi + 0x10]
mov qword [rbp + 0x160], r8
mov r10, r13
mov r9, r8
mov rdi, 0xffffffffffffffff
test r10, r10
jne 0x14007c382
cmp qword [r12], r10
je 0x14007cb2f
jmp 0x14007c385
mov r9, r8
cmp r13, qword [r12]
jne 0x14007c396
cmp r9, qword [r12 + 0x10]
je 0x14007cb2f
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 0x14007c3b4
imul rax, rax, 0x64
jmp 0x14007c3cf
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp qword [r14 + 0x168], rax
je 0x14007c3de
jl 0x14007cacb
mov rax, qword [rbp + 0x160]
lea rax, [rax + rax*2]
shl rax, 5
add rax, qword [r13]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x178], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp + 0x188], xmm1
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x190], eax
lea r12, [r14 + 0xb0]
mov rcx, qword [r12]
xor eax, eax
cmp qword [r12 + 8], rdi
je 0x14007c466
xor edx, edx
lock cmpxchg qword [rcx + 0x38], rdx
je 0x14007c43c
mov rdx, qword [r12 + 8]
mov rcx, rax
call fcn.140069060
lea rbx, [r12 + 0x10]
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r12 + 8]
call fcn.140068560
mov r15, qword [rbp + 0x158]
mov r13, qword [rbp + 0x150]
xor eax, eax
jmp 0x14007c483
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
movups xmmword [rsi], xmm0
movsd xmm0, qword [rbp + 0x70]
movsd qword [rsi + 0x10], xmm0
lea rbx, [r12 + 0x10]
mov qword [r12 + 8], rdi
mov byte [rbx], 0
mov qword [r12 + 0x18], rax
mov rbx, qword [r12 + 0x20]
mov qword [r12 + 0x20], rax
test rbx, rbx
je 0x14007c4d6
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007c4c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007c4c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r13, qword [rbp + 0x150]
mov r15, qword [rbp + 0x158]
mov ebx, 0x17
cmp word [rbp + 0x178], 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 + 0x120]
call fcn.140069510
mov rcx, qword [rax + 0x10]
test cl, 1
je 0x14007c530
cmp rcx, 1
jne 0x14007c56a
cmp dword [rax], 0
jne 0x14007c56a
mov dword [r12 + 0x40], ebx
mov byte [r12 + 0x44], 0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
xor eax, eax
mov dword [rbp + 0x30], eax
mov qword [rbp + 0x18], 2
movups xmm0, xmmword [rbp + 0x18]
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 + 0x38], xmm1
movsd xmm0, qword [rsi + 0x10]
movsd qword [rbp + 0x48], xmm0
mov rax, qword [rsi + 0x10]
cmp rax, 2
jb 0x14007c59b
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 + 0x48], rax
movsd xmm0, qword [rbp + 0x48]
movups xmmword [rsi], xmm1
movsd qword [rsi + 0x10], xmm0
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007c5be
cmp rax, 1
jne 0x14007ca0e
cmp dword [rsi], 0
jne 0x14007ca0e
mov r14, qword [rsp + 0x50]
test byte [r14 + 0xc0], 2
jne 0x14007c5df
mov r9, rsi
lea rdx, [rbp + 0x138]
mov rcx, r12
call fcn.140077040
mov r8d, 0x1c
cmp word [rbp + 0x178], 2
mov eax, select
cmove r8d, eax
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0xa8], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007c627
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb4], xmm0
mov qword [rbp + 0xc4], rax
mov dword [rbp + 0xcc], eax
cmp rcx, rdi
jne 0x14007c698
xor r12d, r12d
mov dword [rsp + 0x74], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad510]
cmp rcx, 1
jbe 0x14007c663
mov rax, qword [0x1400ad508]
mov edx, 0x2719
lea rcx, [0x1400ad508]
call qword [rax + 0x30]
jmp 0x14007c665
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x70], 0x2719
lea rcx, [0x1400ad508]
mov qword [rsp + 0x78], rcx
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x80]
movsd qword [rsi + 0x10], xmm1
jmp 0x14007c6bc
lea rdx, [rbp + 0x178]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
setne dl
mov rcx, rsi
call fcn.1400684a0
xor r12d, r12d
lea rcx, [0x1400ad508]
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007cbdb
cmp rax, 1
jne 0x14007c6d7
cmp dword [rsi], 0
je 0x14007cbdb
mov dword [rbp - 0x74], r12d
mov rbx, qword [0x1400ad510]
movabs rax, 0x4d54ee85da812030
add rax, rbx
cmp rax, 1
jbe 0x14007c70d
mov rax, qword [0x1400ad508]
mov edx, 0x2734
call qword [rax + 0x30]
mov rbx, qword [0x1400ad510]
jmp 0x14007c70f
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], 0x2734
lea rcx, [0x1400ad508]
mov qword [rbp - 0x70], rcx
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0x78], xmm0
movsd xmm1, qword [rbp - 0x68]
movsd qword [rbp + 0x88], xmm1
lea rdx, [rbp + 0x78]
mov rcx, rsi
call fcn.140065e50
test al, al
jne 0x14007c7cc
mov dword [rbp - 0x5c], r12d
movabs rax, 0x4d54ee85da812030
add rax, rbx
lea rbx, [0x1400ad508]
cmp rax, 1
jbe 0x14007c783
mov rax, qword [0x1400ad508]
mov edx, 0x2733
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007c785
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x60], 0x2733
mov qword [rbp - 0x58], rbx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp + 0x90], xmm0
movsd xmm1, qword [rbp - 0x50]
movsd qword [rbp + 0xa0], xmm1
lea rdx, [rbp + 0x90]
mov rcx, rsi
call fcn.140065e50
test al, al
je 0x14007ca13
jmp 0x14007c7d3
lea rbx, [0x1400ad508]
mov rcx, r14
call fcn.140076f30
mov r8d, eax
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0xd0], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007c80f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xdc], xmm0
mov qword [rbp + 0xec], rax
mov dword [rbp + 0xf4], eax
cmp rcx, rdi
jne 0x14007c871
mov dword [rbp - 0x44], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad510]
cmp rcx, 1
jbe 0x14007c843
mov rax, qword [0x1400ad508]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007c845
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x48], 0x2719
mov qword [rbp - 0x40], rbx
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x38]
movsd qword [rsi + 0x10], xmm1
jmp 0x14007ca13
mov qword [rbp + 0x3b8], rcx
mov dword [rbp + 0x3b0], 1
mov qword [rbp + 0x1a8], rcx
mov dword [rbp + 0x1a0], 1
test r8d, r8d
js 0x14007c8cf
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0x170], edx
imul eax, edx, 0x3e8
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rbp + 0x174], eax
lea rax, [rbp + 0x170]
jmp 0x14007c8d2
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.1400684a0
test ebx, ebx
js 0x14007ca13
mov dword [rbp + 0x168], r12d
mov rcx, qword [r14 + 0xb8]
mov qword [rbp + 0xf8], rcx
cmp byte [r14 + 0xf4], 0
jne 0x14007c93e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x104], xmm0
mov qword [rbp + 0x114], rax
mov dword [rbp + 0x11c], eax
cmp rcx, rdi
je 0x14007cb78
mov dword [rbp + 0x16c], 4
lea rax, [rbp + 0x16c]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x168]
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.1400684a0
cmp ebx, edi
je 0x14007cbdb
mov ebx, dword [rbp + 0x168]
mov dword [rbp - 0x2c], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad510]
cmp rcx, 1
jbe 0x14007c9c2
mov rax, qword [0x1400ad508]
mov edx, ebx
lea rcx, [0x1400ad508]
call qword [rax + 0x30]
jmp 0x14007c9c7
test ebx, ebx
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], ebx
lea rax, [0x1400ad508]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x20]
movsd qword [rsi + 0x10], xmm1
mov rax, qword [rsi + 0x10]
test al, 1
je 0x14007cbdb
cmp rax, 1
jne 0x14007ca13
cmp dword [rsi], 0
je 0x14007cbdb
jmp 0x14007ca13
mov r14, qword [rsp + 0x50]
mov r8, qword [rbp + 0x160]
inc r8
mov qword [rbp + 0x160], 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 0x14007c371
xor r12d, r12d
mov r13d, r12d
mov qword [rbp + 0x150], r12
mov rbx, r15
mov r15d, r12d
mov qword [rbp + 0x158], r12
test rbx, rbx
je 0x14007cab1
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007caa3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007caa3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r13, qword [rbp + 0x150]
mov r15, qword [rbp + 0x158]
mov qword [rbp + 0x160], r12
mov r10, r12
mov r8, r12
mov r9, r12
mov r12, qword [rsp + 0x48]
jmp 0x14007c371
xor edx, edx
mov dword [rbp - 0x14], edx
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad510]
cmp rcx, 1
jbe 0x14007caff
mov rax, qword [0x1400ad508]
mov edx, 0x274c
lea rcx, [0x1400ad508]
call qword [rax + 0x30]
jmp 0x14007cb01
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x274c
lea rax, [0x1400ad508]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rsi + 0x10], xmm1
test r15, r15
je 0x14007cb6a
mov eax, edi
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x14007cb6a
mov rbx, qword [rbp + 0x158]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007cb6a
mov rcx, qword [rbp + 0x158]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rbx, qword [rsp + 0x40]
mov rbx, qword [rbx + 8]
jmp 0x14007c285
mov dword [rbp + 4], r12d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400ad510]
cmp rcx, 1
jbe 0x14007cbab
mov rax, qword [0x1400ad508]
mov edx, 0x2719
lea rcx, [0x1400ad508]
call qword [rax + 0x30]
jmp 0x14007cbad
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp + 0x10], rax
mov dword [rbp], 0x2719
lea rax, [0x1400ad508]
mov qword [rbp + 8], rax
movups xmm0, xmmword [rbp]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp + 0x10]
movsd qword [rsi + 0x10], xmm1
test r15, r15
je 0x14007cc16
mov eax, edi
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x14007cc16
mov rbx, qword [rbp + 0x158]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007cc16
mov rcx, qword [rbp + 0x158]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rbx, qword [rsp + 0x40]
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14007cc4e
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007cc4e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007cc4e
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 0x14007cc83
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007cc83
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14007cc83
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret