Function at 0x576cb0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x6923f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
call fcn.00512090
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
mov dword [ecx], ebx
cmp dword [esi + 0x294], 0xffffffff
jne 0x576d11
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.No_socket_exists_for_sending.
call eax
xor al, al
jmp 0x5772a7
cmp byte [esi + 0xd4], bl
lea eax, [esi + 0xd4]
je 0x576d36
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Another_thread_is_already_sending_on_this_socket.
call eax
xor al, al
jmp 0x5772a7
cmp byte [esi + 0xd6], bl
je 0x576d56
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
mov edx, dword [edx + 0x14]
push eax
call edx
xor al, al
jmp 0x5772a7
push eax
lea ecx, [esp + 0x24]
call fcn.004afd70
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x4c], ebx
jne 0x576d79
cmp byte [esp + 0x64], 0
jne 0x576d79
mov dword [esp + 0x68], 0x1499700
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x576d88
mov eax, 0x41a0
jmp 0x576d94
cmp eax, 0x400
jae 0x576d98
mov eax, 0x400
mov dword [esp + 0x5c], eax
cmp byte [esp + 0x60], 0
je 0x576dae
cmp eax, 0x41a0
jbe 0x576dae
mov dword [esp + 0x5c], 0x41a0
cmp dword [esp + 0x58], ebx
mov dword [esi + 0x2a0], ebx
je 0x577294
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x70], eax
jbe 0x576dd6
mov dword [esp + 0x70], ecx
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x576df2
push ebp
mov ecx, edi
call fcn.004d0e20
test al, al
jne 0x5772bd
mov eax, dword [esp + 0x70]
push ebp
push edi
push eax
lea ecx, [esi + 0x170]
call fcn.005d16c0
test al, al
jne 0x5772e1
cmp byte [esi + 0xd6], al
jne 0x5772e8
mov edi, dword [esp + 0x74]
cmp dword [edi + 0x10], ebx
je 0x576f24
cmp dword [edi + 0xc], 1
jne 0x576f24
push ebp
push edi
mov ecx, esi
call fcn.00573f40
test al, al
je 0x576f24
lea ecx, [esp + 0x28]
call fcn.00468060
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.0046cbb0
cmp eax, ebx
je 0x576e91
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
push ebp
push edi
push ecx
mov dword [esp + 0x28], edx
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.00575650
test al, al
je 0x576eb1
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00467d90
jmp 0x576ec0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_memory_for_reading_the_socket.
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x5c]
push ecx
push str.bufSize
mov ecx, ebp
call fcn.004b14c0
mov ecx, edi
call fcn.00512000
test al, al
jne 0x5772f1
lea ecx, [esp + 0x28]
call fcn.00544a30
test eax, eax
je 0x576f16
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x576f16
mov edx, dword [esp + 0x74]
push ebp
mov byte [esp + 0x64], 0
mov edi, dword [eax]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
add edi, 4
call fcn.00544a30
push eax
lea ecx, [esp + 0x38]
call fcn.00467d80
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx + 0x10]
mov edx, dword [edi]
push eax
call edx
cmp byte [esp + 0x60], 0
jne 0x577310
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00468860
cmp byte [esi + 0x18], 0
je 0x5770b5
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x576f3e
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x28], eax
cmp byte [esi + 0x18], 0
je 0x5770b5
mov eax, dword [esi + 0x24]
cmp eax, ebx
mov ecx, dword [esi + 0x20]
jl 0x5770b5
jg 0x576f64
cmp ecx, 0x10000
jbe 0x5770b5
cmp eax, ebx
jg 0x577002
jl 0x576f7a
cmp ecx, 0x40000
ja 0x577002
cmp dword [esi + 0xc4], ebx
jne 0x577002
cmp byte [esi + 0xc8], 0
je 0x577002
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jb 0x576ff9
cmp ecx, ebx
je 0x576ff9
sub eax, ecx
je 0x576fc0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ebx
push eax
push ecx
push edx
call fcn.00631f90
cmp eax, 0x800
jbe 0x5770b5
lea ecx, [ecx]
push 1
call fcn.004ab8b0
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x5770b5
sub eax, ecx
je 0x576fc0
mov ecx, dword [esi + 0x20]
push ebx
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.00631f90
cmp eax, 0x800
ja 0x576fc0
jmp 0x5770b5
mov byte [esi + 0x18], 0
jmp 0x5770b5
mov edx, dword [esi + 0xb8]
or edx, dword [esi + 0xbc]
je 0x5770b5
cmp dword [esi + 0xc0], ebx
jne 0x577027
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0xc0], eax
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
cmp edi, dword [esi + 0xc0]
jae 0x57703c
mov dword [esi + 0xc0], edi
mov eax, edi
sub eax, dword [esi + 0xc0]
cmp eax, 0x1388
jb 0x57709a
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push ebx
push 0x3c
push eax
push ecx
call fcn.00630fc0
push ebx
push 0x3b
push edx
push eax
call fcn.00631f90
cmp edx, ebx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], edx
mov dword [esi + 0xc0], edi
jg 0x57709a
jl 0x57708a
cmp eax, 0xa00000
jae 0x57709a
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
push ebp
push edx
push eax
lea ecx, [esi + 0x30]
call fcn.005d16c0
test al, al
jne 0x57732f
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
mov eax, dword [esi + 0x294]
push ebx
push ecx
push edx
push eax
mov dword [esi + 0x2a0], ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x5770de
cmp edi, ebx
jge 0x5770ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
mov dword [esi + 0x2a0], eax
cmp edi, 0xffffffff
je 0x5770fb
cmp edi, ebx
jge 0x577214
cmp dword [esp + 0x18], 0x2733
jne 0x5773b1
cmp byte [esp + 0x64], 0
jne 0x577336
mov al, byte [esi + 0x18]
mov ecx, 1
add dword [esi + 0x33c], ecx
test al, al
je 0x5771bf
add dword [esi + 0xc4], ecx
test al, al
je 0x5771bf
cmp dword [esi + 0x24], ebx
jl 0x5771bf
jg 0x57714c
cmp dword [esi + 0x20], 0x10000
jb 0x5771bf
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
mov ebx, eax
cmp ebx, ecx
jb 0x5771bb
test ecx, ecx
je 0x5771bb
cmp ebx, ecx
jbe 0x5771bf
sub eax, ecx
je 0x5771bf
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push edx
call fcn.00631f90
cmp eax, 0x80
jbe 0x5771bf
imul eax, eax, 0x3cc
mov dword [esi + 0xb8], eax
xor eax, eax
cmp eax, eax
mov dword [esi + 0xbc], eax
jg 0x5771b3
jl 0x5771a3
cmp dword [esi + 0xb8], 0xa00000
jae 0x5771b3
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ebx
jmp 0x5771bf
mov byte [esi + 0x18], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
push ebp
push eax
xor ebx, ebx
push ebx
push ebx
push ecx
mov ecx, esi
call fcn.005737b0
test al, al
je 0x577340
mov ecx, dword [ebp + 0x11c]
cmp ecx, ebx
je 0x577212
push 0x2a
call fcn.004b02d0
mov eax, dword [ebp + 0x11c]
mov dword [eax + 0x410], ebx
mov dword [eax + 0x414], ebx
mov eax, dword [ebp + 0x11c]
mov dword [eax + 0x6c8], ebx
mov dword [eax + 0x6cc], ebx
cmp edi, ebx
jle 0x577237
cmp byte [esi + 0x342], 0
je 0x577231
mov edx, dword [esp + 0x14]
push ebp
push edx
push edi
lea ecx, [esi + 0x128]
call fcn.005a62c0
mov eax, dword [esp + 0x6c]
add dword [eax], edi
cmp byte [esi + 0x338], 0
je 0x577261
cmp dword [esp + 0x14], ebx
je 0x577261
cmp edi, ebx
jle 0x57727e
mov ecx, dword [esp + 0x14]
mov eax, edi
cdq
push ebp
push edx
push eax
call fcn.004d0ed0
test al, al
jne 0x57739d
cmp edi, ebx
jle 0x57727e
sub dword [esp + 0x58], edi
add dword [esp + 0x54], edi
cmp byte [esi + 0x18], 0
je 0x57727c
mov eax, edi
cdq
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
cmp edi, ebx
jne 0x57728a
push 1
call fcn.004ab8b0
add esp, 4
cmp dword [esp + 0x58], ebx
jne 0x576dc2
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004afd90
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x24
push str.Socket_SendBytes2_aborted_by_application.__1a_
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004afd90
xor al, al
jmp 0x5772a7
push str.Aborted_by_application_while_upload_throttling__1b_
jmp 0x5772c2
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
push ecx
jmp 0x5772c2
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
push str.Failed_to_receive_TCP_data_while_sending.
mov ecx, ebp
call edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00468860
jmp 0x5772cc
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
push str.Aborting_the_TLS_send..
mov ecx, ebp
call edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00468860
jmp 0x5772cc
push str.Aborted_by_application_while_upload_throttling__1c_
jmp 0x5772c2
mov eax, dword [esp + 0x74]
mov byte [eax + 0x18], 1
jmp 0x5772cc
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x15], 0
je 0x57735e
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x5772cc
cmp byte [eax + 0x14], 0
je 0x577389
mov ecx, dword [esp + 0x68]
push ecx
push str.idleTimeoutMs_wf
mov ecx, ebp
call fcn.004b14c0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_idle_timeout
mov ecx, ebp
call eax
jmp 0x5772cc
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_failed.
mov ecx, ebp
call eax
jmp 0x5772cc
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x5772cc
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Error_sending_on_socket__1_
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
push ebp
push ecx
push edx
call fcn.00572a30
mov eax, dword [esp + 0x7c]
add esp, 0xc
push eax
push str.send_size
mov ecx, ebp
call fcn.004b14c0
mov ecx, esi
call fcn.00573ed0
jmp 0x5772cc