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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640638
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [esi + 0x120], ebx
call fcn.00561fd0
mov eax, dword [esi + 0x118]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x5a82d1
mov dword [ebp - 0x20], 0x1499700
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
jne 0x5a8310
push str.No_socket_exists_for_sending__2a_
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00561ff0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [ebp - 0x1c]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp + 0xc], ebx
je 0x5a85e2
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
push edi
push edx
inc ebx
push eax
mov ecx, esi
mov dword [ebp - 0x24], ebx
call fcn.005a6f40
test al, al
je 0x5a8514
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
cmp ebx, dword [ebp + 0x14]
jle 0x5a8360
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], eax
jbe 0x5a836b
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x5a8387
mov eax, dword [ebp + 0x1c]
push 0x174
push eax
mov ecx, edi
call fcn.0056d6c0
test al, al
jne 0x5a8520
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 0x27]
push edx
push edi
lea ecx, [esi + 0xc8]
push eax
mov byte [ebp + 0x27], 0
call fcn.005f3f40
cmp byte [ebp + 0x27], 0
jne 0x5a8531
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0xa4]
push 0
push ecx
push edx
push eax
mov dword [esi + 0x120], 0
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5a84a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x120], eax
cmp eax, 0x2733
jne 0x5a8566
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x28]
push edi
push ecx
push edx
mov ecx, esi
call fcn.005a6f40
test al, al
je 0x5a8514
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0x11], 0
jbe 0x5a8471
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xe]
push edx
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x11]
push eax
push edi
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x64
push 0
push edx
mov ecx, esi
call fcn.005a6080
test al, al
jne 0x5a84c8
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
push edi
push eax
push ecx
mov ecx, esi
call fcn.005a6f40
test al, al
je 0x5a853b
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jb 0x5a8421
mov ecx, esi
call fcn.005a5390
cmp byte [ebp - 0xe], 0
jne 0x5a85ce
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push eax
push str.idleTimeoutMs
mov ecx, esi
call edx
mov eax, dword [esi]
push str.Socket_send_idle_timeout
mov ecx, esi
jmp 0x5a82e6
test ebx, ebx
jle 0x5a84c8
push ebx
lea ecx, [esi + 0xc8]
call fcn.005f3ed0
cmp byte [esi + 0x184], 0
je 0x5a84c8
push edi
push ebx
lea ecx, [esi + 0x58]
call fcn.005ab480
test edi, edi
je 0x5a84ea
test ebx, ebx
jle 0x5a84f6
lea edx, [ebp - 0xd]
push edx
push ebx
mov ecx, edi
mov byte [ebp - 0xd], 0
call fcn.0056d9e0
cmp byte [ebp - 0xd], 0
jne 0x5a85c7
test ebx, ebx
jle 0x5a84f6
sub dword [ebp + 0xc], ebx
add dword [ebp + 8], ebx
test ebx, ebx
jne 0x5a8502
push 0xa
call fcn.00550010
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x5a85e2
mov ebx, dword [ebp - 0x24]
jmp 0x5a8333
mov ecx, esi
call fcn.005a5390
jmp 0x5a82eb
mov ecx, esi
call fcn.005a5390
push str.Socket_SendBytes2_aborted_by_application.__1_
jmp 0x5a82e1
push str.Aborted_by_application_while_upload_throttling__2_
jmp 0x5a82e1
mov esi, dword [esi + 0xa4]
cmp esi, 0xffffffff
je 0x5a82eb
lea eax, [ebp + 0x20]
push eax
push 0x8004667e
push esi
mov dword [ebp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x5a82eb
mov edi, dword [ebp + 0x20]
push edi
push eax
call fcn.005a5550
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
add esp, 8
push str.Error_sending_on_socket
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
push str.send_size
mov ecx, edi
call edx
mov eax, dword [esi + 0xa4]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0xa4], eax
mov byte [esi + 0xa0], 0
mov dword [ebp - 4], eax
jmp 0x5a82f2
mov ecx, esi
call fcn.005a5390
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.Socket_send_aborted_by_application
call eax
jmp 0x5a82eb
mov ecx, esi
call fcn.005a5390
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00561ff0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24