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

Disassembly:
mov eax, 0x5ae16a
call fcn.00591b5c
sub esp, 0x40
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
and dword [eax + 0xc0], 0
lea ecx, [ebp - 0x1c]
call fcn.004d9dc1
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xb8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x517502
mov dword [ebp - 0x10], 0x1499700
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x517533
push str.No_socket_exists_for_sending__2a_
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
and byte [ebp - 0x3d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x3d]
jmp 0x517987
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x51795b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x28]
mov ecx, dword [ebp - 0x4c]
call fcn.00517fbf
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
test eax, eax
jne 0x5175b1
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp - 0x3e], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x3e]
jmp 0x517987
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
jle 0x5175c5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x5175d3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
and dword [ebp - 0x24], 0
cmp dword [ebp + 0x24], 0
je 0x517639
push 0x174
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
call fcn.004f20f4
mov byte [ebp - 0x31], al
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x517639
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push str.Socket_SendBytes2_aborted_by_application.__1_
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
and byte [ebp - 0x3f], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x3f]
jmp 0x517987
and byte [ebp - 0x29], 0
lea eax, [ebp - 0x29]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x4c]
add ecx, 0x68
call fcn.0053b47a
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x517682
push str.Aborted_by_application_while_upload_throttling__2_
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
and byte [ebp - 0x40], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x40]
jmp 0x517987
mov eax, dword [ebp - 0x4c]
and dword [eax + 0xc0], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5176be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc0], ecx
cmp dword [ebp - 0x28], 0xffffffff
jne 0x517892
cmp dword [ebp - 0x24], 0x2733
jne 0x517821
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x28]
mov ecx, dword [ebp - 0x4c]
call fcn.00517fbf
mov byte [ebp - 0x3a], al
movzx eax, byte [ebp - 0x3a]
test eax, eax
jne 0x517722
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp - 0x41], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x41]
jmp 0x517987
and dword [ebp - 0x38], 0
and byte [ebp - 0x39], 0
and byte [ebp - 0x32], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jae 0x5177bc
lea eax, [ebp - 0x32]
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0x64
push 0
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x4c]
call fcn.005168bb
movzx eax, al
test eax, eax
je 0x517761
mov byte [ebp - 0x39], 1
jmp 0x5177bc
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x28]
mov ecx, dword [ebp - 0x4c]
call fcn.00517fbf
mov byte [ebp - 0x3b], al
movzx eax, byte [ebp - 0x3b]
test eax, eax
jne 0x5177ae
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp - 0x42], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x42]
jmp 0x517987
mov eax, dword [ebp - 0x38]
add eax, 0x64
mov dword [ebp - 0x38], eax
jmp 0x51772e
movzx eax, byte [ebp - 0x39]
test eax, eax
jne 0x51781f
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
movzx eax, byte [ebp - 0x32]
test eax, eax
je 0x5177f7
push str.Socket_send_aborted_by_application
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
jmp 0x517807
push str.Socket_send_idle_timeout
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
and byte [ebp - 0x43], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x43]
jmp 0x517987
jmp 0x517892
push dword [ebp + 0x20]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
call fcn.00514f71
push str.Error_sending_on_socket
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
push dword [ebp - 0x30]
push str.send_size
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x2c]
push 2
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x4c]
or dword [eax + 0x4c], 0xffffffff
mov eax, dword [ebp - 0x4c]
and byte [eax + 0x48], 0
and byte [ebp - 0x44], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x44]
jmp 0x517987
cmp dword [ebp - 0x28], 0
jle 0x5178c5
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
add ecx, 0x68
call fcn.0053b3ea
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0xe4]
test eax, eax
je 0x5178c5
push dword [ebp + 0x24]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
add ecx, 0x28
call fcn.0053b91f
cmp dword [ebp + 0x24], 0
je 0x517930
cmp dword [ebp - 0x28], 0
jle 0x517930
and byte [ebp - 0x3c], 0
cmp dword [ebp + 0x24], 0
je 0x5178ea
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x28]
mov ecx, dword [ebp + 0x24]
call fcn.004f24ac
movzx eax, byte [ebp - 0x3c]
test eax, eax
je 0x517930
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push str.Socket_send_aborted_by_application
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
call dword [eax + 0x10]
and byte [ebp - 0x45], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x45]
jmp 0x517987
cmp dword [ebp - 0x28], 0
jle 0x517948
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x28], 0
jne 0x517956
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x517553
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [ebp - 0x46], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d9e07
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x24