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

Disassembly:
push 0xffffffffffffffff
push 0x57a050
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
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.004725a0
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
mov dword [ecx], ebx
cmp dword [esi + 0x294], 0xffffffff
jne 0x4af131
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 0x4af6c7
cmp byte [esi + 0xd4], bl
lea eax, [esi + 0xd4]
je 0x4af156
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 0x4af6c7
cmp byte [esi + 0xd6], bl
je 0x4af176
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 0x4af6c7
push eax
lea ecx, [esp + 0x24]
call fcn.00439640
mov dword [esp + 0x4c], ebx
cmp dword [esp + 0x68], ebx
jne 0x4af199
cmp byte [esp + 0x64], 0
jne 0x4af199
mov dword [esp + 0x68], 0x1499700
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x4af1a8
mov eax, 0x41a0
jmp 0x4af1b4
cmp eax, 0x400
jae 0x4af1b8
mov eax, 0x400
mov dword [esp + 0x5c], eax
cmp byte [esp + 0x60], 0
je 0x4af1ce
cmp eax, 0x41a0
jbe 0x4af1ce
mov dword [esp + 0x5c], 0x41a0
mov dword [esi + 0x2a0], ebx
cmp dword [esp + 0x58], ebx
je 0x4af6b4
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x70], eax
cmp eax, ecx
jbe 0x4af1f6
mov dword [esp + 0x70], ecx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x4af212
push ebp
mov ecx, edi
call fcn.00485430
test al, al
jne 0x4af6dd
mov eax, dword [esp + 0x70]
push ebp
push edi
push eax
lea ecx, [esi + 0x170]
call fcn.005361f0
test al, al
jne 0x4af701
cmp byte [esi + 0xd6], al
jne 0x4af708
mov edi, dword [esp + 0x74]
cmp dword [edi + 0x10], ebx
je 0x4af344
cmp dword [edi + 0xc], 1
jne 0x4af344
push ebp
push edi
mov ecx, esi
call fcn.004ac360
test al, al
je 0x4af344
lea ecx, [esp + 0x28]
call fcn.00447240
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.0044bb40
cmp eax, ebx
je 0x4af2b1
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.004ada70
test al, al
je 0x4af2d1
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00446f70
jmp 0x4af2e0
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.004373b0
mov ecx, edi
call fcn.00472510
test al, al
jne 0x4af711
lea ecx, [esp + 0x28]
call fcn.0051d090
test eax, eax
je 0x4af336
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4af336
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.0051d090
push eax
lea ecx, [esp + 0x38]
call fcn.00446f60
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx + 0x10]
mov edx, dword [edi]
push eax
call edx
cmp byte [esp + 0x60], 0
jne 0x4af730
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.004479b0
cmp byte [esi + 0x18], 0
je 0x4af4d5
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x4af35e
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x28], eax
cmp byte [esi + 0x18], 0
je 0x4af4d5
mov eax, dword [esi + 0x24]
cmp eax, ebx
mov ecx, dword [esi + 0x20]
jl 0x4af4d5
jg 0x4af384
cmp ecx, 0x10000
jbe 0x4af4d5
cmp eax, ebx
jg 0x4af422
jl 0x4af39a
cmp ecx, 0x40000
ja 0x4af422
cmp dword [esi + 0xc4], ebx
jne 0x4af422
cmp byte [esi + 0xc8], 0
je 0x4af422
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jb 0x4af419
cmp ecx, ebx
je 0x4af419
sub eax, ecx
je 0x4af3e0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ebx
push eax
push ecx
push edx
call fcn.00558210
cmp eax, 0x800
jbe 0x4af4d5
lea ecx, [ecx]
push 1
call fcn.004357f0
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x4af4d5
sub eax, ecx
je 0x4af3e0
mov ecx, dword [esi + 0x20]
push ebx
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.00558210
cmp eax, 0x800
ja 0x4af3e0
jmp 0x4af4d5
mov byte [esi + 0x18], 0
jmp 0x4af4d5
mov edx, dword [esi + 0xb8]
or edx, dword [esi + 0xbc]
je 0x4af4d5
cmp dword [esi + 0xc0], ebx
jne 0x4af447
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0xc0], eax
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
cmp edi, dword [esi + 0xc0]
jae 0x4af45c
mov dword [esi + 0xc0], edi
mov eax, edi
sub eax, dword [esi + 0xc0]
cmp eax, 0x1388
jb 0x4af4ba
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push ebx
push 0x3c
push eax
push ecx
call fcn.005565d0
push ebx
push 0x3b
push edx
push eax
call fcn.00558210
cmp edx, ebx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], edx
mov dword [esi + 0xc0], edi
jg 0x4af4ba
jl 0x4af4aa
cmp eax, 0xa00000
jae 0x4af4ba
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.005361f0
test al, al
jne 0x4af74f
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 0x4af4fe
cmp edi, ebx
jge 0x4af50e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
mov dword [esi + 0x2a0], eax
cmp edi, 0xffffffff
je 0x4af51b
cmp edi, ebx
jge 0x4af634
cmp dword [esp + 0x18], 0x2733
jne 0x4af7d1
cmp byte [esp + 0x64], 0
jne 0x4af756
mov al, byte [esi + 0x18]
mov ecx, 1
add dword [esi + 0x33c], ecx
test al, al
je 0x4af5df
add dword [esi + 0xc4], ecx
test al, al
je 0x4af5df
cmp dword [esi + 0x24], ebx
jl 0x4af5df
jg 0x4af56c
cmp dword [esi + 0x20], 0x10000
jb 0x4af5df
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x28]
mov ebx, eax
cmp ebx, ecx
jb 0x4af5db
test ecx, ecx
je 0x4af5db
cmp ebx, ecx
jbe 0x4af5df
sub eax, ecx
je 0x4af5df
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push edx
call fcn.00558210
cmp eax, 0x80
jbe 0x4af5df
imul eax, eax, 0x3cc
mov dword [esi + 0xb8], eax
xor eax, eax
cmp eax, eax
mov dword [esi + 0xbc], eax
jg 0x4af5d3
jl 0x4af5c3
cmp dword [esi + 0xb8], 0xa00000
jae 0x4af5d3
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ebx
jmp 0x4af5df
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.004abbd0
test al, al
je 0x4af760
mov ecx, dword [ebp + 0x11c]
cmp ecx, ebx
je 0x4af632
push 0x2a
call fcn.004363a0
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 0x4af657
cmp byte [esi + 0x342], 0
je 0x4af651
mov edx, dword [esp + 0x14]
push ebp
push edx
push edi
lea ecx, [esi + 0x128]
call fcn.004f49c0
mov eax, dword [esp + 0x6c]
add dword [eax], edi
cmp byte [esi + 0x338], 0
je 0x4af681
cmp dword [esp + 0x14], ebx
je 0x4af681
cmp edi, ebx
jle 0x4af69e
mov ecx, dword [esp + 0x14]
mov eax, edi
cdq
push ebp
push edx
push eax
call fcn.004854e0
test al, al
jne 0x4af7bd
cmp edi, ebx
jle 0x4af69e
sub dword [esp + 0x58], edi
add dword [esp + 0x54], edi
cmp byte [esi + 0x18], 0
je 0x4af69c
mov eax, edi
cdq
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
cmp edi, ebx
jne 0x4af6aa
push 1
call fcn.004357f0
add esp, 4
cmp dword [esp + 0x58], ebx
jne 0x4af1e2
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00439660
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.00439660
xor al, al
jmp 0x4af6c7
push str.Aborted_by_application_while_upload_throttling__1b_
jmp 0x4af6e2
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
push ecx
jmp 0x4af6e2
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.004479b0
jmp 0x4af6ec
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.004479b0
jmp 0x4af6ec
push str.Aborted_by_application_while_upload_throttling__1c_
jmp 0x4af6e2
mov eax, dword [esp + 0x74]
mov byte [eax + 0x18], 1
jmp 0x4af6ec
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x15], 0
je 0x4af77e
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x4af6ec
cmp byte [eax + 0x14], 0
je 0x4af7a9
mov ecx, dword [esp + 0x68]
push ecx
push str.idleTimeoutMs_wf
mov ecx, ebp
call fcn.004373b0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_idle_timeout
mov ecx, ebp
call eax
jmp 0x4af6ec
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_failed.
mov ecx, ebp
call eax
jmp 0x4af6ec
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Socket_send_aborted_by_application
mov ecx, ebp
call eax
jmp 0x4af6ec
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.004aae50
mov eax, dword [esp + 0x7c]
add esp, 0xc
push eax
push str.send_size
mov ecx, ebp
call fcn.004373b0
mov ecx, esi
call fcn.004ac2f0
jmp 0x4af6ec