Function at 0x500230
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d80
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x8b4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8a0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8a4], edi
mov dword [ebp - 0x898], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x8a8], ecx
mov ecx, eax
call fcn.0046d400
mov eax, dword [ebp - 0x8b8]
mov dword [eax], 0
cmp dword [esi + 0x294], 0xffffffff
jne 0x5002c4
mov eax, dword [edi]
mov ecx, edi
push str.No_socket_exists_for_sending.
call dword [eax + 0x14]
xor al, al
jmp 0x500bbf
cmp byte [esi + 0xd4], 0
lea eax, [esi + 0xd4]
je 0x5002e6
mov eax, dword [edi]
mov ecx, edi
push str.Another_thread_is_already_sending_on_this_socket.
call dword [eax + 0x14]
xor al, al
jmp 0x500bbf
cmp byte [esi + 0xd6], 0
je 0x500303
mov eax, dword [edi]
mov ecx, edi
push dword [0x68a5c4]
call dword [eax + 0x14]
xor al, al
jmp 0x500bbf
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
push eax
movlpd qword [ebp - 0x40], xmm0
call fcn.00429ff0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test eax, eax
jne 0x500330
cmp byte [ebp + 0x18], al
mov ecx, 0x1499700
cmove eax, ecx
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 0x8a0]
test ecx, ecx
jne 0x500341
mov ecx, 0x41a0
jmp 0x50034b
mov eax, 0x400
cmp ecx, eax
cmovb ecx, eax
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x8a0], ecx
je 0x500367
mov eax, 0x41a0
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x8a0], ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2a0], 0
test eax, eax
je 0x500bb0
nop dword [eax]
cmp ecx, dword [ebp + 0xc]
cmovbe eax, ecx
xor ecx, ecx
mov dword [ebp - 0x8ac], ecx
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8b0], eax
test ecx, ecx
je 0x5003b8
push edi
call fcn.004a80c0
test al, al
jne 0x500a77
mov eax, dword [ebp - 0x8b0]
mov ecx, dword [ebp - 0x8a8]
push edi
push ecx
push eax
lea ecx, [esi + 0x170]
call fcn.0059f150
test al, al
jne 0x500b9e
cmp byte [esi + 0xd6], al
jne 0x500b8b
mov eax, dword [ebp - 0x898]
cmp dword [eax + 0x10], 0
je 0x50050a
cmp dword [eax + 0xc], 1
jne 0x50050a
mov ecx, eax
call fcn.0046d400
mov ecx, dword [ebp - 0x898]
push edi
call fcn.0046d560
test al, al
je 0x500426
mov eax, dword [ebp - 0x898]
mov ecx, edi
push str.Wait_for_data_on_socket_aborted_by_app
mov byte [eax + 0x15], 1
mov eax, dword [edi]
call dword [eax + 0x14]
jmp 0x50050a
cmp dword [esi + 0x294], 0xffffffff
jne 0x50044a
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
call dword [eax + 0x14]
mov eax, dword [ebp - 0x898]
mov byte [eax + 0x16], 1
jmp 0x50050a
lea ecx, [ebp - 0x894]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.00429fb0
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x88c], 0x3004bc8d
mov dword [ebp - 0x44], 0x3004bc8d
push 0x40
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x888], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x88c], 0x3004bc8d
je 0x5004b5
push 0
call fcn.004014f0
add esp, 4
cmp dword [ebp - 0x44], 0x3004bc8d
je 0x5004c8
push 0
call fcn.004014f0
add esp, 4
mov edx, dword [esi + 0x294]
test edx, edx
jns 0x5005e9
mov eax, dword [ebp - 0x898]
mov byte [eax + 0x16], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x894]
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x44], 0
call fcn.0042a050
cmp byte [esi + 0x18], 0
je 0x500866
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x500524
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 0x28], eax
cmp byte [esi + 0x18], 0
je 0x500866
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
test ecx, ecx
jl 0x500866
jg 0x50078e
cmp eax, 0x10000
jbe 0x500866
test ecx, ecx
jg 0x50078e
jl 0x500562
cmp eax, 0x40000
ja 0x50078e
cmp dword [esi + 0xc4], 0
jne 0x50078e
cmp byte [esi + 0xc8], 0
je 0x50078e
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jb 0x500785
test ecx, ecx
je 0x500785
sub eax, ecx
je 0x5005b1
push 0
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.005af8b0
cmp eax, 0x800
jbe 0x500866
push 1
call fcn.00447b20
add esp, 4
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x500866
sub eax, ecx
je 0x5005b1
push 0
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.005af8b0
cmp eax, 0x800
ja 0x5005b1
jmp 0x500866
mov ecx, dword [ebp - 0x888]
xor eax, eax
test ecx, ecx
je 0x500603
cmp dword [ebp + eax*4 - 0x884], edx
je 0x500603
inc eax
cmp eax, ecx
jb 0x5005f5
cmp eax, ecx
jne 0x50061c
cmp ecx, 0x200
jae 0x50061c
mov dword [ebp + eax*4 - 0x884], edx
inc dword [ebp - 0x888]
lea eax, [ebp - 0x38]
push eax
push 0
push 0
lea eax, [ebp - 0x888]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x5004e0
test eax, eax
js 0x5004e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x894]
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x44], 0
jne 0x50067a
mov eax, dword [ebp - 0x898]
mov byte [eax + 0x14], 1
jmp 0x500505
call fcn.0042a050
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
call fcn.00434a00
push dword [ebp - 0x8a0]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00438b20
test eax, eax
je 0x5006eb
mov ecx, dword [ebp - 0x8a0]
push edi
push dword [ebp - 0x898]
mov dword [ebp - 0x89c], ecx
lea ecx, [ebp - 0x89c]
push dword [ebp + 0x1c]
push 0
push ecx
push eax
mov ecx, esi
call fcn.004fff10
test al, al
je 0x500709
push dword [ebp - 0x89c]
lea ecx, [ebp - 0x30]
call fcn.00435000
jmp 0x50071c
mov eax, dword [edi]
mov ecx, edi
push str.Unable_to_allocate_memory_for_reading_the_socket.
call dword [eax + 0x14]
push dword [ebp - 0x8a0]
mov ecx, edi
push str.bufSize
call fcn.00448710
mov ecx, dword [ebp - 0x898]
call fcn.0046d3b0
test al, al
jne 0x500aad
lea ecx, [ebp - 0x30]
call fcn.00402f10
test eax, eax
je 0x500774
mov ecx, dword [ebp - 0x898]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x500774
push dword [ebp - 0x8a4]
mov byte [ebp - 0x11], 0
mov edi, dword [eax]
lea eax, [ebp - 0x11]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402f10
push eax
lea ecx, [ebp - 0x30]
call fcn.00438b90
push eax
mov eax, dword [ebp - 0x898]
mov ecx, dword [eax + 0x10]
call dword [edi + 4]
cmp byte [ebp - 0x11], 0
jne 0x500a8c
mov edi, dword [ebp - 0x8a4]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00434c20
jmp 0x50050a
mov byte [esi + 0x18], 0
jmp 0x500866
mov eax, dword [esi + 0xb8]
or eax, dword [esi + 0xbc]
je 0x500866
cmp dword [esi + 0xc0], 0
jne 0x5007b4
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 0xc0], eax
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 0xc0]
mov dword [ebp - 0x89c], eax
cmp eax, ecx
jae 0x5007d1
mov dword [esi + 0xc0], eax
mov ecx, eax
sub eax, ecx
cmp eax, 0x1388
jb 0x500849
mov eax, dword [esi + 0xb8]
mov edi, eax
mov ecx, dword [esi + 0xbc]
mov edx, ecx
shld edx, edi, 4
push 0
shl edi, 4
sub edi, eax
push 0x3b
sbb edx, ecx
shld edx, edi, 2
push edx
shl edi, 2
push edi
call fcn.005af8b0
mov dword [esi + 0xbc], edx
mov ecx, eax
mov eax, dword [ebp - 0x89c]
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xc0], eax
test edx, edx
jg 0x500843
jl 0x50082f
cmp ecx, 0xa00000
jae 0x500843
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], 0
mov edi, dword [ebp - 0x8a4]
push edi
push dword [ebp - 0x8a8]
lea ecx, [esi + 0x30]
push dword [ebp - 0x8b0]
call fcn.0059f150
test al, al
jne 0x500aca
push 0
push dword [ebp - 0x8b0]
mov dword [esi + 0x2a0], 0
push dword [ebp - 0x8b4]
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x89c], eax
cmp eax, 0xffffffff
je 0x500899
test eax, eax
jns 0x5008ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x8ac], ecx
mov dword [esi + 0x2a0], ecx
cmp eax, 0xffffffff
je 0x5008c8
jmp 0x5008c0
mov ecx, dword [ebp - 0x8ac]
test eax, eax
jns 0x5009df
cmp ecx, 0x2733
jne 0x500b4a
cmp byte [ebp + 0x18], 0
jne 0x500b3a
inc dword [esi + 0x33c]
cmp byte [esi + 0x18], 0
je 0x500975
inc dword [esi + 0xc4]
cmp dword [esi + 0x24], 0
jl 0x500975
jg 0x500905
cmp dword [esi + 0x20], 0x10000
jb 0x500975
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x8ac], eax
cmp eax, ecx
jb 0x500971
test ecx, ecx
je 0x500971
cmp eax, ecx
jbe 0x500975
sub eax, ecx
je 0x500975
push 0
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.005af8b0
cmp eax, 0x80
jbe 0x500975
imul eax, eax, 0x3cc
xor ecx, ecx
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xb8], eax
cmp eax, 0xa00000
jae 0x500963
mov dword [esi + 0xb8], 0xa00000
mov dword [esi + 0xbc], ecx
mov eax, dword [ebp - 0x8ac]
mov dword [esi + 0xc0], eax
jmp 0x500975
mov byte [esi + 0x18], 0
push edi
push dword [ebp - 0x898]
mov ecx, esi
push 0
push 0
push dword [ebp + 0x1c]
call fcn.00501490
test al, al
je 0x500adf
mov ecx, dword [edi + 0x124]
test ecx, ecx
je 0x5009d7
push 0x2a
call fcn.00449400
mov eax, dword [edi + 0x124]
mov dword [eax + 0x410], 0
mov dword [eax + 0x414], 0
mov eax, dword [edi + 0x124]
mov dword [eax + 0x6c8], 0
mov dword [eax + 0x6cc], 0
mov eax, dword [ebp - 0x89c]
test eax, eax
jle 0x500a0b
cmp byte [esi + 0x342], 0
je 0x500a03
push edi
push dword [ebp - 0x8a8]
lea ecx, [esi + 0x128]
push eax
call fcn.004e0b30
mov eax, dword [ebp - 0x89c]
mov ecx, dword [ebp - 0x8b8]
add dword [ecx], eax
cmp byte [esi + 0x338], 0
je 0x500a39
mov ecx, dword [ebp - 0x8a8]
test ecx, ecx
je 0x500a39
test eax, eax
jle 0x500a55
push edi
cdq
push edx
push eax
call fcn.004a8180
test al, al
jne 0x500aeb
mov eax, dword [ebp - 0x89c]
test eax, eax
jle 0x500a55
sub dword [ebp + 0xc], eax
add dword [ebp - 0x8b4], eax
cmp byte [esi + 0x18], 0
je 0x500a61
cdq
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
jmp 0x500a61
jne 0x500a61
push 1
call fcn.00447b20
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x500bb0
mov ecx, dword [ebp - 0x8a0]
jmp 0x500380
mov eax, dword [edi]
mov ecx, edi
push str.Socket_SendBytes2_aborted_by_application.__1a_
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov ecx, dword [ebp - 0x8a4]
push str.Aborting_the_TLS_send..
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x30]
call fcn.00434c20
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_receive_TCP_data_while_sending.
call dword [eax + 0x14]
lea ecx, [ebp - 0x30]
call fcn.00434c20
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [edi]
mov ecx, edi
push str.Aborted_by_application_while_upload_throttling__1c_
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [ebp - 0x898]
cmp byte [eax + 0x15], 0
je 0x500b00
mov eax, dword [edi]
mov ecx, edi
push str.Socket_send_aborted_by_application
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
cmp byte [eax + 0x14], 0
mov ecx, edi
je 0x500b2a
push dword [ebp + 0x1c]
push str.idleTimeoutMs_wf
call fcn.00448710
mov eax, dword [edi]
mov ecx, edi
push str.Socket_send_idle_timeout
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [edi]
push str.Socket_send_failed.
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [ebp - 0x898]
mov byte [ebp - 0x11], 0
mov byte [eax + 0x18], 1
jmp 0x500bb4
mov eax, dword [edi]
mov ecx, edi
push str.Error_sending_on_socket__1_
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x8ac]
push edi
push dword [ebp - 0x898]
push ecx
call fcn.004ff220
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x8b0]
push str.send_size
call fcn.00448710
mov ecx, esi
call fcn.004fe3d0
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [edi]
mov ecx, edi
push dword [0x68a5c4]
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov eax, dword [edi]
mov ecx, edi
push str.Aborted_by_application_while_upload_throttling__1b_
call dword [eax + 0x14]
mov byte [ebp - 0x11], 0
jmp 0x500bb4
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x40]
call fcn.0042a0f0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x24