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

Disassembly:
push 0xffffffffffffffff
push 0x651920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x6c]
push edi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
call fcn.00514cb0
mov ecx, dword [esp + 0x68]
xor ebp, ebp
mov dword [ecx], ebp
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x590176
mov ecx, dword [esp + 0x6c]
push str.No_socket_exists_for_sending.
mov edx, dword [ecx]
call dword [edx + 0x14]
xor al, al
jmp 0x590748
mov cl, byte [esi + 0xd4]
lea eax, [esi + 0xd4]
test cl, cl
je 0x59019b
mov ecx, dword [esp + 0x6c]
push str.Another_thread_is_already_sending_on_this_socket.
mov eax, dword [ecx]
call dword [eax + 0x14]
xor al, al
jmp 0x590748
mov cl, byte [esi + 0xd6]
test cl, cl
je 0x5901bb
mov ecx, dword [esp + 0x6c]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
xor al, al
jmp 0x590748
push eax
lea ecx, [esp + 0x20]
call fcn.004f5c70
mov eax, dword [esp + 0x64]
mov dword [esp + 0x48], ebp
cmp eax, ebp
jne 0x5901e1
mov al, byte [esp + 0x60]
test al, al
jne 0x5901e1
mov dword [esp + 0x64], 0x1499700
mov eax, dword [esp + 0x58]
cmp eax, ebp
jne 0x5901f0
mov eax, 0x41a0
jmp 0x5901fc
cmp eax, 0x400
jae 0x590200
mov eax, 0x400
mov dword [esp + 0x58], eax
mov cl, byte [esp + 0x5c]
test cl, cl
je 0x590217
cmp eax, 0x41a0
jbe 0x590217
mov dword [esp + 0x58], 0x41a0
mov eax, dword [esp + 0x54]
mov dword [esi + 0x2a0], ebp
cmp eax, ebp
je 0x590735
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
mov dword [esp + 0x6c], eax
jbe 0x590241
mov dword [esp + 0x6c], ecx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp edi, ebp
je 0x59025d
push ebx
mov ecx, edi
call fcn.00535ec0
test al, al
jne 0x59075d
mov ecx, dword [esp + 0x6c]
push ebx
push edi
push ecx
lea ecx, [esi + 0x170]
call fcn.00628150
test al, al
jne 0x59076b
mov al, byte [esi + 0xd6]
test al, al
jne 0x590779
mov edi, dword [esp + 0x70]
cmp dword [edi + 0x10], ebp
je 0x59038f
cmp dword [edi + 0xc], 1
jne 0x59038f
push ebx
push edi
mov ecx, esi
call fcn.0058fac0
test al, al
je 0x59038f
lea ecx, [esp + 0x24]
call fcn.004dfe70
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x4c], 1
call fcn.004dda20
cmp eax, ebp
je 0x5902fe
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push ebx
mov dword [esp + 0x1c], ecx
push edi
push edx
lea ecx, [esp + 0x24]
push ebp
push ecx
push eax
mov ecx, esi
call fcn.00590af0
test al, al
je 0x59031b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push edx
call fcn.004dda50
jmp 0x59032a
mov eax, dword [ebx]
push str.Unable_to_allocate_memory_for_reading_the_socket.
mov ecx, ebx
call dword [eax + 0x14]
mov ecx, dword [esp + 0x58]
push ecx
push str.bufSize
mov ecx, ebx
call fcn.004effe0
mov ecx, edi
call fcn.00514c20
test al, al
jne 0x590789
lea ecx, [esp + 0x24]
call fcn.005a8750
test eax, eax
je 0x590381
mov eax, dword [edi + 0x10]
cmp eax, ebp
je 0x590381
mov byte [esp + 0x5c], 0
mov edx, dword [eax]
push ebx
lea eax, [esp + 0x60]
push edi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edx
call fcn.005a8750
push eax
lea ecx, [esp + 0x34]
call fcn.004dda10
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
push eax
mov ecx, dword [ecx + 0x10]
call dword [edx + 4]
mov al, byte [esp + 0x5c]
test al, al
jne 0x590797
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.004e0890
mov al, byte [esi + 0x18]
test al, al
je 0x59052b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ecx
jne 0x5903ac
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x18]
test al, al
je 0x59052b
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
cmp eax, ebp
jl 0x59052b
jg 0x5903d3
cmp ecx, 0x10000
jbe 0x59052b
cmp eax, ebp
jg 0x59046b
jl 0x5903e9
cmp ecx, 0x40000
ja 0x59046b
cmp dword [esi + 0xc4], ebp
jne 0x59046b
mov al, byte [esi + 0xc8]
test al, al
je 0x59046b
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jb 0x590462
cmp ecx, ebp
je 0x590462
sub eax, ecx
je 0x590429
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ebp
push eax
push ecx
push edx
call fcn.00643440
cmp eax, 0x800
jbe 0x59052b
push 1
call fcn.004ee360
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x59052b
sub eax, ecx
je 0x590429
mov ecx, dword [esi + 0x20]
push ebp
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.00643440
cmp eax, 0x800
ja 0x590429
jmp 0x59052b
mov byte [esi + 0x18], 0
jmp 0x59052b
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0xbc]
or edx, eax
je 0x59052b
cmp dword [esi + 0xc0], ebp
jne 0x590492
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0xc0], eax
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
mov eax, dword [esi + 0xc0]
cmp edi, eax
jae 0x5904a9
mov dword [esi + 0xc0], edi
mov edx, dword [esi + 0xc0]
mov eax, edi
sub eax, edx
cmp eax, 0x1388
jb 0x590510
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push ebp
push 0x3c
push eax
push ecx
call fcn.00643400
push ebp
push 0x3b
push edx
push eax
call fcn.00643440
mov dword [esi + 0xb8], eax
mov eax, edx
cmp eax, ebp
mov dword [esi + 0xbc], edx
mov dword [esi + 0xc0], edi
jg 0x590510
jl 0x590500
cmp dword [esi + 0xb8], 0xa00000
jae 0x590510
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
push ebx
push edx
push eax
lea ecx, [esi + 0x30]
call fcn.00628150
test al, al
jne 0x5907c6
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x294]
push ebp
push ecx
push edx
push eax
mov dword [esi + 0x2a0], ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x590554
cmp edi, ebp
jge 0x590564
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov dword [esi + 0x2a0], eax
cmp edi, 0xffffffff
je 0x590571
cmp edi, ebp
jge 0x59069c
cmp dword [esp + 0x14], 0x2733
jne 0x590891
mov al, byte [esp + 0x60]
test al, al
jne 0x5907ea
mov edx, dword [esi + 0x33c]
mov al, byte [esi + 0x18]
inc edx
test al, al
mov dword [esi + 0x33c], edx
je 0x590647
mov ecx, dword [esi + 0xc4]
inc ecx
test al, al
mov dword [esi + 0xc4], ecx
je 0x590647
cmp dword [esi + 0x24], ebp
jl 0x590647
jg 0x5905cc
cmp dword [esi + 0x20], 0x10000
jb 0x590647
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
mov ebp, eax
cmp ebp, ecx
jb 0x590643
test ecx, ecx
je 0x590643
cmp ebp, ecx
jbe 0x590647
sub eax, ecx
je 0x590647
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push edx
call fcn.00643440
cmp eax, 0x80
jbe 0x590647
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
shl eax, 2
mov dword [esi + 0xb8], eax
xor eax, eax
mov ecx, eax
mov dword [esi + 0xbc], eax
cmp ecx, eax
jg 0x59063b
jl 0x59062b
cmp dword [esi + 0xb8], 0xa00000
jae 0x59063b
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ebp
jmp 0x590647
mov byte [esi + 0x18], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
push ebx
xor ebp, ebp
push ecx
push ebp
push ebp
push edx
mov ecx, esi
call fcn.0058ea10
test al, al
je 0x59080a
mov ecx, dword [ebx + 0x11c]
cmp ecx, ebp
je 0x59069a
push 0x2a
call fcn.004eed00
mov eax, dword [ebx + 0x11c]
mov dword [eax + 0x410], ebp
mov dword [eax + 0x414], ebp
mov ecx, dword [ebx + 0x11c]
mov dword [ecx + 0x6c8], ebp
mov dword [ecx + 0x6cc], ebp
cmp edi, ebp
jle 0x5906c0
mov al, byte [esi + 0x342]
test al, al
je 0x5906ba
mov edx, dword [esp + 0x10]
push ebx
push edx
push edi
lea ecx, [esi + 0x128]
call fcn.0061adb0
mov eax, dword [esp + 0x68]
add dword [eax], edi
mov al, byte [esi + 0x338]
test al, al
je 0x5906eb
cmp dword [esp + 0x10], ebp
je 0x5906eb
cmp edi, ebp
jle 0x59071f
mov ecx, dword [esp + 0x10]
mov eax, edi
cdq
push ebx
push edx
push eax
call fcn.00535fe0
test al, al
jne 0x59086d
cmp edi, ebp
jle 0x59071f
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov al, byte [esi + 0x18]
sub edx, edi
add ecx, edi
mov dword [esp + 0x54], edx
test al, al
mov dword [esp + 0x50], ecx
je 0x59071d
mov ecx, dword [esi + 0x20]
mov eax, edi
cdq
add ecx, eax
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
adc eax, edx
mov dword [esi + 0x24], eax
cmp edi, ebp
jne 0x59072b
push 1
call fcn.004ee360
add esp, 4
cmp dword [esp + 0x54], ebp
jne 0x59022d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x24
mov eax, dword [ebx]
push str.Socket_SendBytes2_aborted_by_application.__1a_
mov ecx, ebx
call dword [eax + 0x14]
jmp 0x5907b1
mov edx, dword [ebx]
push str.Aborted_by_application_while_upload_throttling__1b_
mov ecx, ebx
call dword [edx + 0x14]
jmp 0x5907b1
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
jmp 0x5907b1
mov edx, dword [ebx]
push str.Failed_to_receive_TCP_data_while_sending.
mov ecx, ebx
call dword [edx + 0x14]
jmp 0x5907a3
mov eax, dword [ebx]
push str.Aborting_the_TLS_send..
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.004e0890
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
xor al, al
jmp 0x590748
mov edx, dword [ebx]
push str.Aborted_by_application_while_upload_throttling__1c_
mov ecx, ebx
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
xor al, al
jmp 0x590748
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
mov byte [eax + 0x18], 1
call fcn.004f5c90
xor al, al
jmp 0x590748
mov eax, dword [esp + 0x70]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x590823
mov edx, dword [ebx]
push str.Socket_send_aborted_by_application
mov ecx, ebx
call dword [edx + 0x14]
jmp 0x590855
mov cl, byte [eax + 0x14]
test cl, cl
je 0x590849
mov eax, dword [esp + 0x64]
mov ecx, ebx
push eax
push str.idleTimeoutMs_wf
call fcn.004effe0
mov edx, dword [ebx]
push str.Socket_send_idle_timeout
mov ecx, ebx
call dword [edx + 0x14]
jmp 0x590855
mov eax, dword [ebx]
push str.Socket_send_failed.
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
xor al, al
jmp 0x590748
mov edx, dword [ebx]
push str.Socket_send_aborted_by_application
mov ecx, ebx
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
xor al, al
jmp 0x590748
mov eax, dword [ebx]
push str.Error_sending_on_socket__1_
mov ecx, ebx
call dword [eax + 0x14]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
call fcn.0058c2a0
mov eax, dword [esp + 0x78]
add esp, 0xc
mov ecx, ebx
push eax
push str.send_size
call fcn.004effe0
mov ecx, esi
call fcn.0058fa50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f5c90
xor al, al
jmp 0x590748