Function at 0x140003640
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x28], r14
mov esi, r12d
mov r14d, dword [rcx + 0x18c]
mov ebp, r12d
shr r14d, 2
add rcx, 0x128
and r14b, 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x173], sil
je 0x140003695
mov rsi, qword [rdi + 0x28]
mov byte [rdi + 0x173], bpl
mov rbx, rsi
test rsi, rsi
je 0x140003850
mov qword [rsp + 0x30], r13
movabs r13, 0x624dd2f1a9fbe77
nop word [rax + rax]
lea rcx, [rsi + 8]
mov rdx, qword [rsi + 0x168]
mov rsi, qword [rcx]
cmp byte [rbx + 0x178], r12b
je 0x140003839
test rdx, rdx
je 0x1400036f6
movzx eax, byte [rdx + 8]
test al, al
je 0x140003839
cmp byte [rdx + 9], r12b
je 0x140003839
mov r8, qword [rcx]
mov ebp, 1
mov rax, qword [rbx]
test r8, r8
jne 0x14000370c
mov qword [rdi + 0x20], rax
jmp 0x14000370f
mov qword [r8], rax
mov r8, qword [rbx]
mov rax, qword [rcx]
test r8, r8
jne 0x140003720
mov qword [rdi + 0x28], rax
jmp 0x140003724
mov qword [r8 + 8], rax
mov qword [rbx], r12
mov qword [rcx], r12
mov byte [rbx + 0x170], r12b
test rdx, rdx
jne 0x140003810
mov rax, qword [rdi + 0x10]
mov qword [rbx], rax
mov qword [rcx], r12
cmp qword [rdi + 0x18], r12
jne 0x140003750
mov qword [rdi + 0x18], rbx
jmp 0x140003758
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], rbx
mov qword [rdi + 0x10], rbx
test r14b, r14b
jne 0x140003832
cmp qword [rbx + 0x100], r12
je 0x140003798
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov rax, r13
sub rcx, qword [0x1400c15c0]
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
mov qword [rbx + 0xf8], rcx
mov rax, qword [rdi + 0x180]
cmp qword [rbx + 0x100], rax
jne 0x1400037e0
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r12
cmp qword [rdi + 0x48], r12
jne 0x1400037c4
mov qword [rdi + 0x48], rbx
mov qword [rdi + 0x40], rbx
jmp 0x140003832
mov rax, qword [rdi + 0x40]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x40], rbx
jmp 0x140003832
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r12
cmp qword [rdi + 0x58], r12
jne 0x1400037fc
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x50], rbx
jmp 0x140003832
mov rax, qword [rdi + 0x50]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x50], rbx
jmp 0x140003832
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rcx], r12
cmp qword [rdi + 0x38], r12
jne 0x140003826
mov qword [rdi + 0x38], rbx
jmp 0x14000382e
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
mov byte [rbx + 0x178], r12b
mov rbx, rsi
test rsi, rsi
jne 0x1400036c0
mov r13, qword [rsp + 0x30]
nop word [rax + rax]
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0x20]
test r14b, r14b
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
je 0x1400038ba
test ebp, ebp
je 0x1400038ba
mov rcx, qword [rdi + 0x168]
lea rdx, [0x1400b5b44]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400038ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400038ba
lea rdx, str.Failed_to_signal_resume_of_connection_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.14000f5a0
mov eax, ebp
add rsp, 0x38
pop rdi
pop rbp
ret