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

Disassembly:
push 0xffffffffffffffff
push 0x101a33f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
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.10095ac0
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
mov dword [ecx], ebx
cmp dword [esi + 0x294], 0xffffffff
jne 0x10113021
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 0x101135b7
cmp byte [esi + 0xd4], bl
lea eax, [esi + 0xd4]
je 0x10113046
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 0x101135b7
cmp byte [esi + 0xd6], bl
je 0x10113066
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 0x101135b7
push eax
lea ecx, [esp + 0x24]
call fcn.10061af0
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x4c], ebx
jne 0x10113089
cmp byte [esp + 0x64], 0
jne 0x10113089
mov dword [esp + 0x68], 0x1499700
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x10113098
mov eax, 0x41a0
jmp 0x101130a4
cmp eax, 0x400
jae 0x101130a8
mov eax, 0x400
mov dword [esp + 0x5c], eax
cmp byte [esp + 0x60], 0
je 0x101130be
cmp eax, 0x41a0
jbe 0x101130be
mov dword [esp + 0x5c], 0x41a0
cmp dword [esp + 0x58], ebx
mov dword [esi + 0x2a0], ebx
je 0x101135a4
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x70], eax
jbe 0x101130e6
mov dword [esp + 0x70], ecx
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov dword [esp + 0x18], ebx
je 0x10113102
push ebp
mov ecx, edi
call fcn.1007aa60
test al, al
jne 0x101135cd
mov eax, dword [esp + 0x70]
push ebp
push edi
push eax
lea ecx, [esi + 0x170]
call fcn.10188a50
test al, al
jne 0x101135f1
cmp byte [esi + 0xd6], al
jne 0x101135f8
mov edi, dword [esp + 0x74]
cmp dword [edi + 0x10], ebx
je 0x10113234
cmp dword [edi + 0xc], 1
jne 0x10113234
push ebp
push edi
mov ecx, esi
call fcn.10110200
test al, al
je 0x10113234
lea ecx, [esp + 0x28]
call fcn.100182e0
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.1001d220
cmp eax, ebx
je 0x101131a1
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.10111900
test al, al
je 0x101131c1
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.10018010
jmp 0x101131d0
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.100612a0
mov ecx, edi
call fcn.10095a30
test al, al
jne 0x10113601
lea ecx, [esp + 0x28]
call fcn.100f6330
test eax, eax
je 0x10113226
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x10113226
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.100f6330
push eax
lea ecx, [esp + 0x38]
call fcn.1008bea0
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx + 0x10]
mov edx, dword [edi]
push eax
call edx
cmp byte [esp + 0x60], 0
jne 0x10113620
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.10018a90
cmp byte [esi + 0x18], 0
je 0x101133c5
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x1011324e
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x28], eax
cmp byte [esi + 0x18], 0
je 0x101133c5
mov eax, dword [esi + 0x24]
cmp eax, ebx
mov ecx, dword [esi + 0x20]
jl 0x101133c5
jg 0x10113274
cmp ecx, 0x10000
jbe 0x101133c5
cmp eax, ebx
jg 0x10113312
jl 0x1011328a
cmp ecx, 0x40000
ja 0x10113312
cmp dword [esi + 0xc4], ebx
jne 0x10113312
cmp byte [esi + 0xc8], 0
je 0x10113312
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jb 0x10113309
cmp ecx, ebx
je 0x10113309
sub eax, ecx
je 0x101132d0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ebx
push eax
push ecx
push edx
call fcn.1018fe20
cmp eax, 0x800
jbe 0x101133c5
lea ecx, [ecx]
push 1
call fcn.1002ace0
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x101133c5
sub eax, ecx
je 0x101132d0
mov ecx, dword [esi + 0x20]
push ebx
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.1018fe20
cmp eax, 0x800
ja 0x101132d0
jmp 0x101133c5
mov byte [esi + 0x18], 0
jmp 0x101133c5
mov edx, dword [esi + 0xb8]
or edx, dword [esi + 0xbc]
je 0x101133c5
cmp dword [esi + 0xc0], ebx
jne 0x10113337
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0xc0], eax
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
cmp edi, dword [esi + 0xc0]
jae 0x1011334c
mov dword [esi + 0xc0], edi
mov eax, edi
sub eax, dword [esi + 0xc0]
cmp eax, 0x1388
jb 0x101133aa
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push ebx
push 0x3c
push eax
push ecx
call fcn.1018fc20
push ebx
push 0x3b
push edx
push eax
call fcn.1018fe20
cmp edx, ebx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], edx
mov dword [esi + 0xc0], edi
jg 0x101133aa
jl 0x1011339a
cmp eax, 0xa00000
jae 0x101133aa
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.10188a50
test al, al
jne 0x1011363f
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 0x101133ee
cmp edi, ebx
jge 0x101133fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
mov dword [esi + 0x2a0], eax
cmp edi, 0xffffffff
je 0x1011340b
cmp edi, ebx
jge 0x10113524
cmp dword [esp + 0x18], 0x2733
jne 0x101136c1
cmp byte [esp + 0x64], 0
jne 0x10113646
mov al, byte [esi + 0x18]
mov ecx, 1
add dword [esi + 0x33c], ecx
test al, al
je 0x101134cf
add dword [esi + 0xc4], ecx
test al, al
je 0x101134cf
cmp dword [esi + 0x24], ebx
jl 0x101134cf
jg 0x1011345c
cmp dword [esi + 0x20], 0x10000
jb 0x101134cf
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
mov ebx, eax
cmp ebx, ecx
jb 0x101134cb
test ecx, ecx
je 0x101134cb
cmp ebx, ecx
jbe 0x101134cf
sub eax, ecx
je 0x101134cf
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push edx
call fcn.1018fe20
cmp eax, 0x80
jbe 0x101134cf
imul eax, eax, 0x3cc
mov dword [esi + 0xb8], eax
xor eax, eax
cmp eax, eax
mov dword [esi + 0xbc], eax
jg 0x101134c3
jl 0x101134b3
cmp dword [esi + 0xb8], 0xa00000
jae 0x101134c3
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ebx
jmp 0x101134cf
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.1010fa70
test al, al
je 0x10113650
mov ecx, dword [ebp + 0x120]
cmp ecx, ebx
je 0x10113522
push 0x2a
call fcn.100600a0
mov eax, dword [ebp + 0x120]
mov dword [eax + 0x410], ebx
mov dword [eax + 0x414], ebx
mov eax, dword [ebp + 0x120]
mov dword [eax + 0x6c8], ebx
mov dword [eax + 0x6cc], ebx
cmp edi, ebx
jle 0x10113547
cmp byte [esi + 0x342], 0
je 0x10113541
mov edx, dword [esp + 0x14]
push ebp
push edx
push edi
lea ecx, [esi + 0x128]
call fcn.100eea50
mov eax, dword [esp + 0x6c]
add dword [eax], edi
cmp byte [esi + 0x338], 0
je 0x10113571
cmp dword [esp + 0x14], ebx
je 0x10113571
cmp edi, ebx
jle 0x1011358e
mov ecx, dword [esp + 0x14]
mov eax, edi
cdq
push ebp
push edx
push eax
call fcn.1007ab10
test al, al
jne 0x101136ad
cmp edi, ebx
jle 0x1011358e
sub dword [esp + 0x58], edi
add dword [esp + 0x54], edi
cmp byte [esi + 0x18], 0
je 0x1011358c
mov eax, edi
cdq
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
cmp edi, ebx
jne 0x1011359a
push 1
call fcn.1002ace0
add esp, 4
cmp dword [esp + 0x58], ebx
jne 0x101130d2
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.10061b10
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.10061b10
xor al, al
jmp 0x101135b7
push str.Aborted_by_application_while_upload_throttling__1b_
jmp 0x101135d2
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
push ecx
jmp 0x101135d2
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.10018a90
jmp 0x101135dc
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.10018a90
jmp 0x101135dc
push str.Aborted_by_application_while_upload_throttling__1c_
jmp 0x101135d2
mov eax, dword [esp + 0x74]
mov byte [eax + 0x18], 1
jmp 0x101135dc
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x15], 0
je 0x1011366e
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x101135dc
cmp byte [eax + 0x14], 0
je 0x10113699
mov ecx, dword [esp + 0x68]
push ecx
push str.idleTimeoutMs_wf
mov ecx, ebp
call fcn.100612a0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_idle_timeout
mov ecx, ebp
call eax
jmp 0x101135dc
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_failed.
mov ecx, ebp
call eax
jmp 0x101135dc
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x101135dc
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.1010ed00
mov eax, dword [esp + 0x7c]
add esp, 0xc
push eax
push str.send_size
mov ecx, ebp
call fcn.100612a0
mov ecx, esi
call fcn.10110190
jmp 0x101135dc