Function at 0x180159130
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.18007c000
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x18036d060]
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.180175b40
mov dword [r12], 0
cmp qword [rbx + 0x298], 0xffffffffffffffff
jne 0x1801591d3
mov rax, qword [r14]
lea rdx, str.No_socket_exists_for_sending.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x180159994
lea rdx, [rbx + 0xd4]
cmp byte [rdx], 0
je 0x1801591f6
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 0x180159994
cmp byte [rbx + 0xd6], 0
je 0x180159216
mov rax, qword [r14]
mov rdx, qword [str.Another_thread_is_closing_this_socket.]
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x180159994
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call fcn.180103090
nop
mov eax, dword [rbp + 0x1100]
test eax, eax
jne 0x180159245
mov ecx, 0x1499700
cmp byte [rbp + 0x10f8], al
cmove eax, ecx
mov dword [rbp + 0x1100], eax
mov ecx, 0x41a0
test edi, edi
jne 0x180159252
mov edi, ecx
jmp 0x18015925c
mov eax, 0x400
cmp edi, eax
cmovb edi, eax
mov dword [rsp + 0x44], edi
cmp byte [rbp + 0x10f0], 0
je 0x180159272
cmp edi, ecx
cmova edi, ecx
mov dword [rsp + 0x44], edi
mov dword [rbx + 0x2a8], 0
test r13d, r13d
je 0x180159986
nop word [rax + rax]
mov r12d, r13d
cmp edi, r13d
cmovbe r12d, edi
xor r13d, r13d
test rsi, rsi
je 0x1801592b5
mov rdx, r14
mov rcx, rsi
call fcn.180125000
test al, al
jne 0x18015985e
lea rcx, [rbx + 0x170]
mov r9, r14
mov r8, rsi
mov edx, r12d
call fcn.1801c30c0
test al, al
jne 0x180159972
cmp byte [rbx + 0xd6], r13b
jne 0x18015995e
cmp qword [r15 + 0x20], r13
je 0x180159533
cmp dword [r15 + 0x18], 1
jne 0x180159533
mov rcx, r15
call fcn.180175b40
mov rdx, r14
mov rcx, r15
call fcn.180175cc0
test al, al
je 0x180159325
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 0x180159533
cmp qword [rbx + 0x298], 0xffffffffffffffff
jne 0x180159349
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 0x180159533
xor eax, eax
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x40]
call fcn.180103030
lea rax, vtable.ckFdSet.0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 0x3004bc8d
mov dword [rbp + 0x1060], 0x3004bc8d
lea rcx, [rbp - 0x40]
call fcn.180152700
movsxd r9, dword [rbx + 0x298]
test r9d, r9d
js 0x180159509
xor edx, edx
mov ecx, dword [rbp - 0x28]
test ecx, ecx
je 0x1801593a4
cmp qword [rbp + rdx*8 - 0x20], r9
je 0x1801593a4
inc edx
cmp edx, ecx
jb 0x180159397
cmp edx, ecx
jne 0x1801593b8
cmp ecx, 0x200
jae 0x1801593b8
mov qword [rbp + rdx*8 - 0x20], r9
inc dword [rbp - 0x28]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x18015950e
jne 0x1801593e8
mov byte [r15 + 0x28], 1
jmp 0x18015950e
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.180103110
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x80]
call fcn.1800ba7a0
nop
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.1800bdf30
test rax, rax
je 0x18015946e
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.180158dc0
test al, al
je 0x180159490
mov edx, dword [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.1800badc0
jmp 0x1801594a0
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.180106220
mov rcx, r15
call fcn.180175af0
test al, al
jne 0x18015987e
lea rcx, [rbp - 0x80]
call fcn.1800be430
test eax, eax
je 0x1801594fe
mov rsi, qword [r15 + 0x20]
test rsi, rsi
je 0x1801594f9
mov byte [rsp + 0x70], 0
mov rsi, qword [rsi]
lea rcx, [rbp - 0x80]
call fcn.1800be430
mov edi, eax
lea rcx, [rbp - 0x80]
call fcn.1800bdfb0
mov rdx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, qword [r15 + 0x20]
call qword [rsi + ioctlsocket]
cmp byte [rsp + 0x70], 0
jne 0x180159875
mov rsi, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1800ba970
jmp 0x180159533
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.180103110
movzx eax, byte [rbx + 0x18]
test al, al
je 0x180159694
cmp qword [rbx + 0x20], 0
jne 0x180159552
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0x28], eax
movzx eax, byte [rbx + 0x18]
test al, al
je 0x180159694
mov rax, qword [rbx + 0x20]
cmp rax, 0x10000
jle 0x180159694
cmp rax, 0x40000
jg 0x1801595ee
cmp dword [rbx + 0xc4], 0
jne 0x1801595ee
cmp byte [rbx + 0xc8], 0
je 0x1801595ee
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jb 0x1801595e5
test ecx, ecx
je 0x1801595e5
sub eax, ecx
je 0x1801595b0
mov ecx, eax
mov rax, qword [rbx + 0x20]
cqo
idiv rcx
cmp eax, 0x800
jbe 0x180159694
nop
mov ecx, 1
call fcn.180104b90
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
ja 0x180159694
sub eax, ecx
je 0x1801595b0
mov ecx, eax
mov rax, qword [rbx + 0x20]
cqo
idiv rcx
cmp eax, 0x800
ja 0x1801595b0
jmp 0x180159694
mov byte [rbx + 0x18], 0
jmp 0x180159694
cmp qword [rbx + 0xb8], 0
je 0x180159694
cmp dword [rbx + 0xc0], 0
jne 0x180159610
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0xc0], eax
call sub.KERNEL32.dll_GetTickCount
mov r8d, eax
mov eax, dword [rbx + 0xc0]
cmp r8d, eax
jae 0x18015962d
mov dword [rbx + 0xc0], r8d
mov eax, r8d
mov ecx, r8d
sub ecx, eax
cmp ecx, 0x1388
jb 0x18015967a
imul rcx, qword [rbx + 0xb8], 0x3c
movabs rax, 0x8ad8f2fba9386823
imul rcx
add rdx, rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rbx + 0xc0], r8d
mov eax, 0xa00000
cmp rdx, rax
cmovl rdx, rax
mov qword [rbx + 0xb8], rdx
lea rcx, [rbx + 0x30]
mov r9, r14
mov r8, rsi
mov edx, r12d
call fcn.1801c30c0
test al, al
jne 0x18015989f
mov dword [rbx + 0x2a8], 0
xor r9d, r9d
mov r8d, r12d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x298]
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp edi, 0xffffffff
jg 0x1801597c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
mov dword [rbx + 0x2a8], eax
cmp edi, 0xffffffff
jg 0x1801597c4
cmp eax, 0x2733
jne 0x18015990e
cmp byte [rbp + 0x10f8], 0
jne 0x180159905
inc dword [rbx + 0x37c]
cmp byte [rbx + 0x18], 0
je 0x180159760
inc dword [rbx + 0xc4]
cmp qword [rbx + 0x20], 0x10000
jl 0x180159760
call sub.KERNEL32.dll_GetTickCount
mov r8d, eax
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jb 0x18015975c
test ecx, ecx
je 0x18015975c
cmp eax, ecx
jbe 0x180159760
sub eax, ecx
je 0x180159760
mov ecx, eax
mov rax, qword [rbx + 0x20]
cqo
idiv rcx
cmp eax, 0x80
jbe 0x180159760
imul ecx, eax, 0x3cc
mov eax, 0xa00000
cmp rcx, rax
cmovb ecx, eax
mov qword [rbx + 0xb8], rcx
mov dword [rbx + 0xc0], r8d
jmp 0x180159760
mov byte [rbx + 0x18], 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.18015a420
test al, al
je 0x1801598b6
mov rcx, qword [r14 + 0x158]
test rcx, rcx
je 0x1801597c4
mov edx, 0x2a
call fcn.180106d50
mov rax, qword [r14 + 0x158]
mov qword [rax + 0x418], 0
mov rax, qword [r14 + 0x158]
mov qword [rax + 0x6d0], 0
test edi, edi
jle 0x1801597ec
cmp byte [rbx + 0x382], 0
je 0x1801597e5
lea rcx, [rbx + 0x128]
mov r9, r14
mov r8, rsi
mov edx, edi
call fcn.1801c2cf0
mov rax, qword [rsp + 0x60]
add dword [rax], edi
cmp byte [rbx + 0x378], 0
je 0x180159814
test rsi, rsi
je 0x180159814
test edi, edi
jle 0x180159839
mov rdx, rdi
mov r8, r14
mov rcx, rsi
call fcn.1801250d0
test al, al
jne 0x18015994a
mov r13d, dword [rsp + 0x40]
test edi, edi
jle 0x180159840
sub r13d, edi
mov dword [rsp + 0x40], r13d
mov rax, rdi
add qword [rsp + 0x50], rax
cmp byte [rbx + 0x18], 0
je 0x18015983e
add qword [rbx + 0x20], rax
jmp 0x18015983e
mov r13d, dword [rsp + 0x40]
test edi, edi
jne 0x18015984c
mov ecx, 1
call fcn.180104b90
test r13d, r13d
je 0x180159986
mov edi, dword [rsp + 0x44]
jmp 0x180159290
lea rdx, str.Socket_SendBytes2_aborted_by_application.__1a_
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x180159988
lea rdx, str.Aborting_the_TLS_send..
jmp 0x180159885
lea rdx, str.Failed_to_receive_TCP_data_while_sending.
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
nop
lea rcx, [rbp - 0x80]
call fcn.1800ba970
xor bl, bl
jmp 0x180159988
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 0x180159988
cmp byte [r15 + 0x29], 0
jne 0x18015994a
mov rcx, r14
cmp byte [r15 + 0x28], 0
je 0x1801598f1
mov r8d, r12d
lea rdx, str.idleTimeoutMs_wf
call fcn.180106220
lea rdx, str.Socket_send_idle_timeout
mov rcx, r14
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x180159988
lea rdx, str.Socket_send_failed.
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x180159988
mov byte [r15 + 0x2c], 1
xor bl, bl
jmp 0x180159988
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.180157eb0
mov r8d, r12d
lea rdx, str.send_size
mov rcx, r14
call fcn.180106220
mov rcx, rbx
call fcn.1801563c0
xor bl, bl
jmp 0x180159988
lea rdx, str.Socket_send_aborted_by_application
mov rcx, r14
mov rax, qword [r14]
call qword [rax + 0x28]
xor bl, bl
jmp 0x180159988
mov rdx, qword [str.Another_thread_is_closing_this_socket.]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x180159988
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 0x180159988
mov bl, 1
lea rcx, [rbp - 0x50]
call fcn.1801031c0
movzx eax, bl
mov rcx, qword [rbp + 0x1070]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x1188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret