Function at 0x456f30
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
jne 0x456f4b
mov dword [esp + 0x28], 0x7fff
jmp 0x456f6d
cmp ebx, 0x3e8
jae 0x456f5d
mov dword [esp + 0x28], 0x3e8
jmp 0x456f6d
cmp ebx, 0x1e8480
jbe 0x456f71
mov dword [esp + 0x28], 0x1e8480
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xc8], 0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x456f91
mov dword [esp + 0x18], 0x80befc00
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
jne 0x456fb3
mov ecx, dword [esp + 0x30]
push str.No_socket_exists_for_sending__2_
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45712e
jmp 0x456fe2
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp ebx, eax
jbe 0x456fe8
mov ebx, eax
mov edi, dword [esp + 0x34]
test edi, edi
je 0x457009
mov edx, dword [esp + 0x2c]
push 0x174
push edx
mov ecx, edi
call fcn.004293c0
test al, al
jne 0x45715b
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
lea ebp, [esi + 0x70]
push edi
push ecx
mov ecx, ebp
mov byte [esp + 0x1c], 0
call fcn.00465620
mov al, byte [esp + 0x10]
test al, al
jne 0x457175
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x54]
push 0
push ebx
push edx
push eax
mov dword [esi + 0xc8], 0
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4570ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esi + 0xc8], eax
jne 0x457213
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x13]
lea edx, [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x15]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push ebx
push ebp
push 0
push edx
mov ecx, esi
mov byte [esp + 0x31], 0
mov byte [esp + 0x32], 0
mov byte [esp + 0x33], 0
call fcn.004566b0
test al, al
je 0x45718f
jmp 0x4570d6
test edi, edi
jle 0x4570d2
push edi
mov ecx, ebp
call fcn.004655c0
mov al, byte [esi + 0x12c]
test al, al
je 0x4570d2
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x30]
push eax
push edi
call fcn.00465990
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4570fe
test edi, edi
jle 0x457118
lea edx, [esp + 0x11]
mov byte [esp + 0x11], 0
push edx
push edi
call fcn.00429660
mov al, byte [esp + 0x11]
test al, al
jne 0x457267
test edi, edi
jle 0x457118
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub ecx, edi
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
test edi, edi
jne 0x457122
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x456fda
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x45714f
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
push str.Socket_SendBytes2_aborted_by_application.__1a_
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
push str.Aborted_by_application_while_upload_throttling__1b_
mov edx, dword [ecx]
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
mov esi, dword [esi + 0x54]
cmp esi, 0xffffffff
je 0x4571b0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, byte [esp + 0x11]
test al, al
je 0x4571d0
mov edx, dword [ebx]
push str.Socket_send_aborted_by_application
mov ecx, ebx
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
mov al, byte [esp + 0x12]
test al, al
mov eax, dword [ebx]
je 0x4571fd
push ebp
push str.idleTimeoutMs
mov ecx, ebx
call dword [eax + 0x2c]
mov edx, dword [ebx]
push str.Socket_send_idle_timeout
mov ecx, ebx
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
push str.Socket_send_failed
mov ecx, ebx
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
mov edi, dword [esp + 0x30]
push edi
push eax
call fcn.00455000
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push str.Error_sending_on_socket
call dword [edx + 0x10]
mov eax, dword [edi]
push ebx
push str.send_size
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x54]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x54], 0xffffffff
mov byte [esi + 0x50], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x457288
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebx]
push str.Socket_send_aborted_by_application
mov ecx, ebx
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x18