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

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov qword [rsp + 0x50], rbp
mov rbx, rcx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], r12
lea r12, [rcx + 0x128]
mov qword [rsp + 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x20], r15
mov ebp, r13d
mov r15d, dword [rcx + 0x18c]
mov r14d, r13d
shr r15d, 2
mov rcx, r12
and r15b, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x173], bpl
je 0x1400037e9
mov rbp, qword [rbx + 0x28]
mov byte [rbx + 0x173], r13b
mov rdi, rbp
test rbp, rbp
je 0x1400039a0
mov qword [rsp + 0x58], rsi
movabs r12, 0x624dd2f1a9fbe77
nop dword [rax + rax]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x168]
lea rsi, [rbp]
mov rbp, qword [rdx]
cmp byte [rdi + 0x178], r13b
je 0x140003986
test rcx, rcx
je 0x14000384a
movzx eax, byte [rcx + 8]
test al, al
je 0x140003986
cmp byte [rcx + 9], r13b
je 0x140003986
mov r8, qword [rdx]
mov r14d, 1
mov rax, qword [rsi]
test r8, r8
jne 0x140003861
mov qword [rbx + 0x20], rax
jmp 0x140003864
mov qword [r8], rax
mov r8, qword [rdi]
mov rax, qword [rdx]
test r8, r8
jne 0x140003875
mov qword [rbx + 0x28], rax
jmp 0x140003879
mov qword [r8 + 8], rax
mov qword [rdi], r13
mov qword [rdx], r13
mov byte [rdi + 0x170], r13b
test rcx, rcx
jne 0x140003960
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
cmp qword [rbx + 0x18], r13
jne 0x1400038a2
mov qword [rbx + 0x18], rdi
jmp 0x1400038aa
mov rax, qword [rbx + 0x10]
mov qword [rax + 8], rdi
mov qword [rbx + 0x10], rdi
test r15b, r15b
jne 0x14000397f
mov rax, qword [rdi + 0x100]
test rax, rax
je 0x1400038f4
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov rax, r12
sub rcx, qword [0x1400c2430]
mul rcx
mov rax, qword [rsi + 0x100]
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
mov qword [rdi + 0xf8], rcx
cmp rax, qword [rbx + 0x180]
jne 0x140003930
mov rax, qword [rbx + 0x40]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r13
cmp qword [rbx + 0x48], r13
jne 0x140003919
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x40], rdi
jmp 0x14000397f
mov rax, qword [rbx + 0x40]
mov qword [rax + 0x18], rdi
mov qword [rbx + 0x40], rdi
jmp 0x14000397f
mov rax, qword [rbx + 0x50]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r13
cmp qword [rbx + 0x58], r13
jne 0x14000394c
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x50], rdi
jmp 0x14000397f
mov rax, qword [rbx + 0x50]
mov qword [rax + 0x18], rdi
mov qword [rbx + 0x50], rdi
jmp 0x14000397f
mov rax, qword [rbx + 0x30]
mov qword [rdi], rax
cmp qword [rbx + 0x38], r13
jne 0x140003973
mov qword [rbx + 0x38], rdi
jmp 0x14000397b
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rdi
mov qword [rbx + 0x30], rdi
mov byte [rdi + 0x178], r13b
mov rdi, rbp
test rbp, rbp
jne 0x140003810
mov rsi, qword [rsp + 0x58]
lea r12, [rbx + 0x128]
nop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r13, qword [rsp + 0x28]
test r15b, r15b
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
je 0x140003a07
test r14d, r14d
je 0x140003a07
mov rcx, qword [rbx + 0x168]
lea rdx, [0x1400b96f4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140003a07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140003a07
lea rdx, str.Failed_to_signal_resume_of_connection_via_inter_thread_communication_channel.
mov rcx, rbx
call fcn.14000fca0
mov eax, r14d
add rsp, 0x38
pop r14
pop rbx
ret