Function at 0x52caf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0054b390
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xa4], 0xffffffff
jne 0x52cb2f
push str.No_socket_exists_for_sending.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x52ce01
cmp dword [ebp + 0x14], 0
jne 0x52cb3c
mov dword [ebp + 0x14], 0x1499700
cmp dword [ebp + 0x10], 0
jne 0x52cb4b
mov dword [ebp + 0x10], 0xfa0
jmp 0x52cb6d
cmp dword [ebp + 0x10], 0x3e8
jae 0x52cb5d
mov dword [ebp + 0x10], 0x3e8
jmp 0x52cb6d
cmp dword [ebp + 0x10], 0x3e80
jbe 0x52cb6d
mov dword [ebp + 0x10], 0x3e80
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1d0], 0
mov ecx, dword [ebp - 0x18]
call fcn.005274f0
cmp dword [ebp + 0xc], 0
je 0x52cdf7
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jbe 0x52cba0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x52cbd5
mov ecx, dword [ebp - 4]
call fcn.0050e810
movzx edx, al
test edx, edx
je 0x52cbd5
push str.Socket_SendBytes2_aborted_by_application.__1a_
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x52ce01
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0xb0
call fcn.00581750
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x52cc0f
push str.Aborted_by_application_while_upload_throttling__1b_
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x52ce01
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1d0], 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x52cc45
cmp dword [ebp - 0xc], 0
jge 0x52cc5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1d0], ecx
cmp dword [ebp - 0xc], 0xffffffff
je 0x52cc6a
cmp dword [ebp - 0xc], 0
jge 0x52cd4e
cmp dword [ebp - 8], 0x2733
jne 0x52cd08
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x1c]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0052b770
movzx edx, al
test edx, edx
jne 0x52cd06
mov ecx, dword [ebp - 0x18]
call fcn.00527530
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
je 0x52ccbd
push 0x65c838
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
jmp 0x52ccff
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x52cced
mov edx, dword [ebp + 0x14]
push edx
push str.idleTimeoutMs_wf
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
push str.Socket_send_idle_timeout
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
jmp 0x52ccff
push str.Socket_send_failed.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x52ce01
jmp 0x52cd4e
push str.Error_sending_on_socket__1_
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00528100
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
push str.send_size
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
mov ecx, dword [ebp - 0x18]
call fcn.0052c470
xor al, al
jmp 0x52ce01
cmp dword [ebp - 0xc], 0
jle 0x52cd79
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x24c]
test eax, eax
je 0x52cd79
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x58
call fcn.0057c810
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x248]
test edx, edx
je 0x52cdca
cmp dword [ebp - 4], 0
je 0x52cdca
cmp dword [ebp - 0xc], 0
jle 0x52cdca
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp - 4]
call fcn.0050e8c0
movzx ecx, al
test ecx, ecx
je 0x52cdca
mov ecx, dword [ebp - 0x18]
call fcn.00527530
push str.Socket_send_aborted_by_application
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x52ce01
cmp dword [ebp - 0xc], 0
jle 0x52cde2
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
cmp dword [ebp - 0xc], 0
jne 0x52cdf2
push 1
call fcn.00504680
add esp, 4
jmp 0x52cb82
mov ecx, dword [ebp - 0x18]
call fcn.00527530
mov al, 1
mov esp, ebp
pop ebp
ret 0x18