Function at 0x51dc30
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.00540570
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xa4], 0xffffffff
jne 0x51dc6f
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 0x51df41
cmp dword [ebp + 0x14], 0
jne 0x51dc7c
mov dword [ebp + 0x14], 0x1499700
cmp dword [ebp + 0x10], 0
jne 0x51dc8b
mov dword [ebp + 0x10], 0xfa0
jmp 0x51dcad
cmp dword [ebp + 0x10], 0x3e8
jae 0x51dc9d
mov dword [ebp + 0x10], 0x3e8
jmp 0x51dcad
cmp dword [ebp + 0x10], 0x3e80
jbe 0x51dcad
mov dword [ebp + 0x10], 0x3e80
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1d0], 0
mov ecx, dword [ebp - 0x18]
call fcn.00517fd0
cmp dword [ebp + 0xc], 0
je 0x51df37
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jbe 0x51dce0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x51dd15
mov ecx, dword [ebp - 4]
call fcn.00520b70
movzx edx, al
test edx, edx
je 0x51dd15
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 0x51df41
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0xb0
call fcn.00594660
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x51dd4f
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 0x51df41
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 0x51dd85
cmp dword [ebp - 0xc], 0
jge 0x51dd9a
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 0x51ddaa
cmp dword [ebp - 0xc], 0
jge 0x51de8e
cmp dword [ebp - 8], 0x2733
jne 0x51de48
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.0051c560
movzx edx, al
test edx, edx
jne 0x51de46
mov ecx, dword [ebp - 0x18]
call fcn.00518010
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
je 0x51ddfd
push 0x69a020
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
jmp 0x51de3f
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x51de2d
mov edx, dword [ebp + 0x14]
push edx
push str.idleTimeoutMs_wf
mov ecx, dword [ebp + 0x18]
call fcn.004f50b0
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 0x51de3f
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 0x51df41
jmp 0x51de8e
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.00518ef0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
push str.send_size
mov ecx, dword [ebp + 0x18]
call fcn.004f50b0
mov ecx, dword [ebp - 0x18]
call fcn.0051d5b0
xor al, al
jmp 0x51df41
cmp dword [ebp - 0xc], 0
jle 0x51deb9
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x24c]
test eax, eax
je 0x51deb9
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.0058f710
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x248]
test edx, edx
je 0x51df0a
cmp dword [ebp - 4], 0
je 0x51df0a
cmp dword [ebp - 0xc], 0
jle 0x51df0a
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp - 4]
call fcn.00520c20
movzx ecx, al
test ecx, ecx
je 0x51df0a
mov ecx, dword [ebp - 0x18]
call fcn.00518010
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 0x51df41
cmp dword [ebp - 0xc], 0
jle 0x51df22
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 0x51df32
push 1
call fcn.004f3ec0
add esp, 4
jmp 0x51dcc2
mov ecx, dword [ebp - 0x18]
call fcn.00518010
mov al, 1
mov esp, ebp
pop ebp
ret 0x18