Function at 0x463480
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 0x46349b
mov dword [esp + 0x28], 0x7fff
jmp 0x4634bd
cmp ebx, 0x3e8
jae 0x4634ad
mov dword [esp + 0x28], 0x3e8
jmp 0x4634bd
cmp ebx, 0x1e8480
jbe 0x4634c1
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 0x4634e1
mov dword [esp + 0x18], 0x80befc00
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
jne 0x463503
mov ecx, dword [esp + 0x30]
push str.No_socket_exists_for_sending__2b_
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 0x46367e
jmp 0x463532
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp ebx, eax
jbe 0x463538
mov ebx, eax
mov edi, dword [esp + 0x34]
test edi, edi
je 0x463559
mov edx, dword [esp + 0x2c]
push 0x174
push edx
mov ecx, edi
call fcn.004309f0
test al, al
jne 0x4636ab
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.00473930
mov al, byte [esp + 0x10]
test al, al
jne 0x4636c5
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 0x4635fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esi + 0xc8], eax
jne 0x463763
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.00462c00
test al, al
je 0x4636df
jmp 0x463626
test edi, edi
jle 0x463622
push edi
mov ecx, ebp
call fcn.004738d0
mov al, byte [esi + 0x12c]
test al, al
je 0x463622
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x30]
push eax
push edi
call fcn.00473ca0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x46364e
test edi, edi
jle 0x463668
lea edx, [esp + 0x11]
mov byte [esp + 0x11], 0
push edx
push edi
call fcn.00430c90
mov al, byte [esp + 0x11]
test al, al
jne 0x4637b7
test edi, edi
jle 0x463668
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 0x463672
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46352a
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x46369f
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 0x463700
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 0x463720
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 0x46374d
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.004614f0
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 0x4637d8
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