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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
and dword [eax + 0xc0], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xb8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5171fc
mov dword [ebp - 4], 0x1499700
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x51721c
push str.No_socket_exists_for_sending__2_
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x5174bf
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp + 0xc], 0
je 0x5174a4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jbe 0x517256
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x1c], 0
je 0x517292
push 0x174
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
call fcn.004f20f4
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x517292
push str.Socket_SendBytes2_aborted_by_application.__1_
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x5174bf
and byte [ebp - 0x11], 0
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, 0x68
call fcn.0053b47a
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x5172ca
push str.Aborted_by_application_while_upload_throttling__1_
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x5174bf
mov eax, dword [ebp - 0x20]
and dword [eax + 0xc0], 0
push 0
push dword [ebp - 0x18]
push dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x517306
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc0], ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x5173ec
cmp dword [ebp - 0xc], 0x2733
jne 0x51738c
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1a]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
push 0
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.005168bb
movzx eax, al
test eax, eax
je 0x517340
jmp 0x51738a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x517373
push str.Socket_send_aborted_by_application
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
jmp 0x517383
push str.Socket_send_idle_timeout
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x5174bf
jmp 0x5173ec
push dword [ebp + 0x18]
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
call fcn.00514f71
push str.Error_sending_on_socket
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
push dword [ebp - 0x18]
push str.send_size
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x2c]
push 2
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x20]
or dword [eax + 0x4c], 0xffffffff
mov eax, dword [ebp - 0x20]
and byte [eax + 0x48], 0
xor al, al
jmp 0x5174bf
cmp dword [ebp - 0x10], 0
jle 0x51741f
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0x68
call fcn.0053b3ea
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0xe4]
test eax, eax
je 0x51741f
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
call fcn.0053b91f
cmp dword [ebp + 0x1c], 0
je 0x517479
cmp dword [ebp - 0x10], 0
jle 0x517479
and byte [ebp - 0x1b], 0
cmp dword [ebp + 0x1c], 0
je 0x517444
lea eax, [ebp - 0x1b]
push eax
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
call fcn.004f24ac
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x517479
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push str.Socket_send_aborted_by_application
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x5174bf
cmp dword [ebp - 0x10], 0
jle 0x517491
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x10], 0
jne 0x51749f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x517238
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
leave
ret 0x18