Function at 0x140138af0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1088]
mov eax, 0x1188
call fcn.1401e1980
sub rsp, rax
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rbp + 0x1070], rax
mov edi, r9d
mov r13d, r8d
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x50], rdx
mov rbx, rcx
mov r12, qword [rbp + 0x1108]
mov qword [rsp + 0x60], r12
mov r14, qword [rbp + 0x1110]
mov r15, qword [rbp + 0x1118]
mov rsi, qword [r15 + 8]
mov qword [rsp + 0x58], rsi
mov rcx, r15
call fcn.14007d090
mov dword [r12], 0
cmp qword [rbx + 0x290], 0xffffffffffffffff
jne 0x140138b8a
mov rax, qword [r14]
lea rdx, str.No_socket_exists_for_sending.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x140139384
lea rdx, [rbx + 0xcc]
cmp byte [rdx], 0
je 0x140138bad
mov rax, qword [r14]
lea rdx, str.Another_thread_is_already_sending_on_this_socket.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x140139384
cmp byte [rbx + 0xce], 0
je 0x140138bcd
mov rax, qword [r14]
mov rdx, qword [str._4__]
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x140139384
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
lea rcx, [rbp - 0x58]
call fcn.140012380
nop
mov eax, dword [rbp + 0x1100]
test eax, eax
jne 0x140138bfc
mov ecx, 0x1499700
cmp byte [rbp + 0x10f8], al
cmove eax, ecx
mov dword [rbp + 0x1100], eax
mov ecx, 0x41a0
test edi, edi
jne 0x140138c09
mov edi, ecx
jmp 0x140138c13
mov eax, 0x400
cmp edi, eax
cmovb edi, eax
mov dword [rsp + 0x44], edi
cmp byte [rbp + 0x10f0], 0
je 0x140138c29
cmp edi, ecx
cmova edi, ecx
mov dword [rsp + 0x44], edi
mov dword [rbx + 0x2a0], 0
test r13d, r13d
je 0x140139376
nop dword [rax]
mov r12d, edi
cmp edi, r13d
cmova r12d, r13d
xor r13d, r13d
test rsi, rsi
je 0x140138c65
mov rdx, r14
mov rcx, rsi
call fcn.1400c6c70
test al, al
jne 0x14013924d
lea rcx, [rbx + 0x168]
mov r9, r14
mov r8, rsi
mov edx, r12d
call fcn.1401d6950
test al, al
jne 0x140139362
cmp byte [rbx + 0xce], r13b
jne 0x14013934e
cmp qword [r15 + 0x20], r13
je 0x140138d9c
cmp dword [r15 + 0x18], 1
jne 0x140138d9c
mov rcx, r15
call fcn.14007d090
mov rdx, r14
mov rcx, r15
call fcn.14007d210
test al, al
je 0x140138cd5
mov byte [r15 + 0x29], 1
mov rax, qword [r14]
lea rdx, str.Wait_for_data_on_socket_aborted_by_app
mov rcx, r14
call qword [rax + 0x28]
jmp 0x140138d9c
cmp qword [rbx + 0x290], 0xffffffffffffffff
jne 0x140138cf9
mov rax, qword [r14]
lea rdx, str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov rcx, r14
call qword [rax + 0x28]
mov byte [r15 + 0x2a], 1
jmp 0x140138d9c
xor eax, eax
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x40]
call fcn.140012320
lea rax, vtable.ckFdSet.0
mov qword [rbp - 0x40], rax
mov edx, 0x3004bc8d
mov dword [rbp - 0x30], edx
mov dword [rbp + 0x1060], edx
xor ecx, ecx
mov dword [rbp - 0x28], ecx
xorps xmm0, xmm0
movups xmmword [rbp + 0xfe0], xmm0
movups xmmword [rbp + 0xff0], xmm0
movups xmmword [rbp + 0x1000], xmm0
movups xmmword [rbp + 0x1010], xmm0
movups xmmword [rbp + 0x1020], xmm0
movups xmmword [rbp + 0x1030], xmm0
movups xmmword [rbp + 0x1040], xmm0
movups xmmword [rbp + 0x1050], xmm0
movsxd r9, dword [rbx + 0x290]
test r9d, r9d
jns 0x140138e65
mov byte [r15 + 0x2a], 1
lea rax, vtable.ckFdSet.0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 0
mov dword [rbp + 0x1060], 0
lea rcx, [rbp - 0x40]
call fcn.140012400
cmp byte [rbx + 0x10], 0
je 0x140139080
cmp qword [rbx + 0x18], 0
jne 0x140138db5
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0x20], eax
cmp byte [rbx + 0x10], 0
je 0x140139080
mov rax, qword [rbx + 0x18]
cmp rax, 0x10000
jle 0x140139080
cmp rax, 0x40000
jg 0x140138fd2
cmp dword [rbx + 0xbc], 0
jne 0x140138fd2
cmp byte [rbx + 0xc0], 0
je 0x140138fd2
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x20]
cmp eax, ecx
jb 0x140138fc9
test ecx, ecx
je 0x140138fc9
sub eax, ecx
je 0x140138e30
mov ecx, eax
mov rax, qword [rbx + 0x18]
cqo
idiv rcx
cmp eax, 0x800
jbe 0x140139080
nop word [rax + rax]
mov ecx, 1
call sub.KERNEL32.dll_Sleep
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x20]
cmp eax, ecx
ja 0x140139080
sub eax, ecx
je 0x140138e30
mov ecx, eax
mov rax, qword [rbx + 0x18]
cqo
idiv rcx
cmp eax, 0x800
ja 0x140138e30
jmp 0x140139080
xor edx, edx
mov qword [rbp + rdx*8 - 0x20], r9
inc dword [rbp - 0x28]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140138d77
jne 0x140138e9d
mov byte [r15 + 0x28], 1
jmp 0x140138d77
lea rax, vtable.ckFdSet.0
mov qword [rbp - 0x40], rax
xor eax, eax
mov dword [rbp - 0x30], eax
mov dword [rbp + 0x1060], eax
lea rcx, [rbp - 0x40]
call fcn.140012400
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x78]
call fcn.14003e460
nop
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.140042cd0
test rax, rax
je 0x140138f27
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov ecx, dword [rbp + 0x1100]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
call fcn.140138780
test al, al
je 0x140138f49
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14003e9b0
jmp 0x140138f59
mov rax, qword [r14]
lea rdx, str.Unable_to_allocate_memory_for_reading_the_socket.
mov rcx, r14
call qword [rax + 0x28]
mov r8d, edi
lea rdx, str.bufSize
mov rcx, r14
call fcn.140053ac0
mov rcx, r15
call fcn.14007d040
test al, al
jne 0x14013926d
lea rcx, [rsp + 0x78]
call fcn.140043080
test eax, eax
je 0x140138fba
mov rsi, qword [r15 + 0x20]
test rsi, rsi
je 0x140138fb5
mov byte [rsp + 0x68], 0
mov rsi, qword [rsi]
lea rcx, [rsp + 0x78]
call fcn.140043080
mov edi, eax
lea rcx, [rsp + 0x78]
call fcn.140042d50
mov rdx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, qword [r15 + 0x20]
call qword [rsi + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x68], 0
jne 0x140139264
mov rsi, qword [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14003e610
jmp 0x140138d9c
mov byte [rbx + 0x10], 0
jmp 0x140139080
cmp qword [rbx + 0xb0], 0
je 0x140139080
cmp dword [rbx + 0xb8], 0
jne 0x140138ff4
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0xb8], eax
call sub.KERNEL32.dll_GetTickCount
mov r8d, eax
mov eax, dword [rbx + 0xb8]
cmp r8d, eax
jae 0x140139011
mov dword [rbx + 0xb8], r8d
mov eax, r8d
mov ecx, r8d
sub ecx, eax
cmp ecx, 0x1388
jb 0x140139066
imul rcx, qword [rbx + 0xb0], 0x3c
movabs rax, 0x8ad8f2fba9386823
imul rcx
add rdx, rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbx + 0xb0], rdx
mov dword [rbx + 0xb8], r8d
cmp rdx, 0xa00000
jge 0x140139066
mov qword [rbx + 0xb0], 0xa00000
lea rcx, [rbx + 0x28]
mov r9, r14
mov r8, rsi
mov edx, r12d
call fcn.1401d6950
test al, al
jne 0x14013928f
mov dword [rbx + 0x2a0], 0
xor r9d, r9d
mov r8d, r12d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp edi, 0xffffffff
jg 0x1401390be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
mov dword [rbx + 0x2a0], eax
cmp edi, 0xffffffff
je 0x1401390c6
test edi, edi
jns 0x1401391b7
cmp r13d, 0x2733
jne 0x1401392fe
cmp byte [rbp + 0x10f8], 0
jne 0x1401392f5
inc dword [rbx + 0x374]
cmp byte [rbx + 0x10], 0
je 0x140139157
inc dword [rbx + 0xbc]
cmp qword [rbx + 0x18], 0x10000
jl 0x140139157
call sub.KERNEL32.dll_GetTickCount
mov r8d, eax
mov ecx, dword [rbx + 0x20]
cmp eax, ecx
jb 0x140139153
test ecx, ecx
je 0x140139153
cmp eax, ecx
jbe 0x140139157
sub eax, ecx
je 0x140139157
mov ecx, eax
mov rax, qword [rbx + 0x18]
cqo
idiv rcx
cmp eax, 0x80
jbe 0x140139157
imul ecx, eax, 0x3cc
mov qword [rbx + 0xb0], rcx
cmp rcx, 0xa00000
jae 0x14013914a
mov qword [rbx + 0xb0], 0xa00000
mov dword [rbx + 0xb8], r8d
jmp 0x140139157
mov byte [rbx + 0x10], 0
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov r12d, dword [rbp + 0x1100]
mov edx, r12d
mov rcx, rbx
call fcn.140139e90
test al, al
je 0x1401392a6
mov rcx, qword [r14 + 0x160]
test rcx, rcx
je 0x1401391b5
mov edx, 0x2a
call fcn.140054ae0
mov rax, qword [r14 + 0x160]
xor ecx, ecx
mov qword [rax + 0x418], rcx
mov rax, qword [r14 + 0x160]
mov qword [rax + 0x6d0], rcx
test edi, edi
jle 0x1401391dd
cmp byte [rbx + 0x37a], 0
je 0x1401391d6
lea rcx, [rbx + 0x120]
mov r9, r14
mov r8, rsi
mov edx, edi
call fcn.14012f1c0
mov rax, qword [rsp + 0x60]
add dword [rax], edi
cmp byte [rbx + 0x370], 0
je 0x140139205
test rsi, rsi
je 0x140139205
test edi, edi
jle 0x14013922a
mov rdx, rdi
mov r8, r14
mov rcx, rsi
call fcn.1400c6d40
test al, al
jne 0x14013933a
test edi, edi
jle 0x14013922a
mov r13d, dword [rsp + 0x40]
sub r13d, edi
mov dword [rsp + 0x40], r13d
mov rax, rdi
add qword [rsp + 0x50], rax
cmp byte [rbx + 0x10], 0
je 0x14013923b
add qword [rbx + 0x18], rax
jmp 0x14013923b
jne 0x140139236
mov ecx, 1
call sub.KERNEL32.dll_Sleep
mov r13d, dword [rsp + 0x40]
test r13d, r13d
je 0x140139376
mov edi, dword [rsp + 0x44]
jmp 0x140138c40
lea rdx, str.Socket_SendBytes2_aborted_by_application.__1a_
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
lea rdx, str.Aborting_the_TLS_send..
jmp 0x140139274
lea rdx, str.Failed_to_receive_TCP_data_while_sending.
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x78]
call fcn.14003e610
xor bl, bl
jmp 0x140139378
lea rdx, str.Aborted_by_application_while_upload_throttling__1c_
mov rcx, r14
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
cmp byte [r15 + 0x29], 0
jne 0x14013933a
mov rcx, r14
cmp byte [r15 + 0x28], 0
je 0x1401392e1
mov r8d, r12d
lea rdx, str.idleTimeoutMs_wf
call fcn.140053ac0
lea rdx, str.Socket_send_idle_timeout
mov rcx, r14
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
lea rdx, str.Socket_send_failed.
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
mov byte [r15 + 0x2d], 1
xor bl, bl
jmp 0x140139378
mov rax, qword [r14]
lea rdx, str.Error_sending_on_socket__1_
mov rcx, r14
call qword [rax + 0x28]
mov r8, r14
mov rdx, r15
mov ecx, r13d
call fcn.1401378a0
mov r8d, r12d
lea rdx, str.send_size
mov rcx, r14
call fcn.140053ac0
mov rcx, rbx
call fcn.140136380
xor bl, bl
jmp 0x140139378
lea rdx, str.Socket_send_aborted_by_application
mov rcx, r14
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
mov rdx, qword [str._4__]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
lea rdx, str.Aborted_by_application_while_upload_throttling__1b_
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x140139378
mov bl, 1
lea rcx, [rbp - 0x58]
call fcn.1400124a0
movzx eax, bl
mov rcx, qword [rbp + 0x1070]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x1188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret