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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7482e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
call fcn.004a71c0
mov ecx, dword [ebp + 0x20]
xor esi, esi
mov dword [ecx], esi
cmp dword [ebx + 0xb4], 0xffffffff
jne 0x5142bd
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.No_socket_exists_for_sending.
call eax
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
cmp byte [ebx + 0x10], 0
lea eax, [ebx + 0x10]
je 0x5142eb
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Another_thread_is_already_sending_on_this_socket.
call eax
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
cmp byte [ebx + 0x12], 0
je 0x514317
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
mov edx, dword [edx + 0x14]
push eax
call edx
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
push eax
lea ecx, [ebp - 0x18]
call fcn.0046e4a0
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], esi
jne 0x514335
cmp byte [ebp + 0x18], 0
jne 0x514335
mov dword [ebp + 0x1c], 0x1499700
mov edi, dword [ebp + 0x10]
mov eax, 0x41a0
cmp edi, esi
jne 0x514348
mov dword [ebp + 0x10], eax
mov edi, eax
jmp 0x51435a
cmp edi, 0x400
jae 0x51435a
mov dword [ebp + 0x10], 0x400
mov edi, dword [ebp + 0x10]
cmp byte [ebp + 0x14], 0
je 0x514369
cmp edi, eax
jbe 0x514369
mov dword [ebp + 0x10], eax
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1e0], esi
cmp eax, esi
je 0x5144e7
mov esi, dword [ebp + 0x24]
jmp 0x514386
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x24], edi
cmp edi, eax
jbe 0x514392
mov dword [ebp + 0x24], eax
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x14], 0
test ecx, ecx
je 0x5143b1
push esi
call fcn.00487de0
test al, al
jne 0x51450c
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push edi
lea ecx, [ebx + 0xc0]
call fcn.00566620
test al, al
jne 0x51453f
cmp byte [ebx + 0x12], al
jne 0x514546
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xb4]
push 0
push edi
push eax
push ecx
mov dword [ebx + 0x1e0], 0
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x5143f9
test edi, edi
jns 0x51440a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x14], eax
mov dword [ebx + 0x1e0], eax
jmp 0x51440d
mov eax, dword [ebp + 0x14]
cmp edi, 0xffffffff
je 0x514416
test edi, edi
jns 0x514480
cmp eax, 0x2733
jne 0x514597
cmp byte [ebp + 0x18], 0
jne 0x514557
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
push esi
push edx
push 0
push 0
push eax
mov ecx, ebx
call fcn.005135a0
test al, al
je 0x514560
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x51447e
push 0x2a
call fcn.00474010
mov eax, dword [esi + 0xa8]
xor ecx, ecx
mov dword [eax + 0x410], ecx
mov dword [eax + 0x414], ecx
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x6c8], ecx
mov dword [eax + 0x6cc], ecx
test edi, edi
jle 0x51449e
cmp byte [ebx + 0x278], 0
je 0x514499
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push edi
lea ecx, [ebx + 0x68]
call fcn.004a6c80
mov eax, dword [ebp + 0x20]
add dword [eax], edi
cmp byte [ebx + 0x274], 0
je 0x5144c5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5144c5
test edi, edi
jle 0x5144d1
mov eax, edi
cdq
push esi
push edx
push eax
call fcn.00487ea0
test al, al
jne 0x514569
test edi, edi
jle 0x5144d1
sub dword [ebp + 0xc], edi
add dword [ebp + 8], edi
test edi, edi
jne 0x5144dd
push 1
call fcn.004213c0
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x514380
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e4c0
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
push str.Socket_SendBytes2_aborted_by_application.__1a_
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e4c0
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
push str.Aborted_by_application_while_upload_throttling__1b_
jmp 0x514511
mov edx, dword [esi]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
jmp 0x51451a
mov eax, dword [ebp + 0x28]
mov byte [eax + 0x14], 1
jmp 0x51451a
mov eax, dword [ebp + 0x28]
cmp byte [eax + 0x11], 0
je 0x514570
push str.Socket_send_aborted_by_application
jmp 0x514511
cmp byte [eax + 0x10], 0
je 0x51458d
mov ecx, dword [ebp + 0x1c]
push ecx
push str.idleTimeoutMs_wf
mov ecx, esi
call fcn.00474a80
push str.Socket_send_idle_timeout
jmp 0x514511
push str.Socket_send_failed.
jmp 0x514511
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Error_sending_on_socket__1_
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x14]
push esi
push ecx
push edx
call fcn.005126e0
mov eax, dword [ebp + 0x24]
add esp, 0xc
push eax
push str.send_size
mov ecx, esi
call fcn.00474a80
mov ecx, ebx
call fcn.00513cb0
jmp 0x51451a