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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov eax, ecx
push esi
mov dword [ebp - 8], eax
mov esi, edx
push edi
mov ebx, dword [eax + 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
push eax
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x18]
push eax
push 0
mov dword [ebp - 0xc], ebx
call fcn.00401c90
mov edx, dword [ebp - 0x20]
add esp, 0x10
test edx, edx
jne 0x40a20d
xor edi, edi
jmp 0x40a227
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40a224
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edx + 0xc], eax
mov dword [ecx], edx
mov edi, dword [edx + 8]
mov ecx, dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x18]
mov edx, esi
push eax
push 0
call fcn.00401c90
mov edx, dword [ebp - 0x20]
add esp, 0x10
test edx, edx
jne 0x40a251
mov dword [ebp - 0x14], edx
jmp 0x40a26e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40a268
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edx + 0xc], eax
mov dword [ecx], edx
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40a54d
mov ebx, dword [edi + 0x10]
mov eax, ebx
mov esi, dword [edi + 0xc]
sub eax, esi
push eax
push dword [ebp - 0x10]
push edi
push str.ss.sendq__p__resume_send_to_fd_d_len_zd
push dword [ebp - 8]
call fcn.00409820
add esp, 0x14
cmp esi, ebx
jae 0x40a34c
nop dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
sub eax, esi
test ecx, ecx
jne 0x40a301
push ecx
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jg 0x40a313
je 0x40a349
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x40a349
call edi
push eax
push str.sendq_retry_failed_with_error:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004014d0
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push esi
push ecx
call dword [sym.imp.libssl_1_1.dll_SSL_write]
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x40a321
add esi, edi
cmp esi, ebx
jb 0x40a2a0
mov edi, dword [ebp - 4]
mov dword [edi + 0xc], esi
jmp 0x40a357
push edi
push dword [ebp - 0x14]
call dword [sym.imp.libssl_1_1.dll_SSL_get_error]
add esp, 8
cmp eax, 2
je 0x40a349
push edi
push dword [ebp - 0x14]
call dword [sym.imp.libssl_1_1.dll_SSL_get_error]
add esp, 8
cmp eax, 3
jne 0x40a518
mov edi, dword [ebp - 4]
mov dword [edi + 0xc], esi
cmp esi, ebx
jb 0x40a539
mov eax, dword [edi + 8]
sub ebx, eax
mov esi, dword [ebp - 0x10]
push ebx
push eax
push dword [edi]
mov eax, dword [ebp - 8]
push esi
push eax
mov eax, dword [eax + 0x20]
call eax
mov ebx, dword [edi + 0x14]
mov edx, esi
mov esi, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [esi + 0x24]
call fcn.00401d30
add esp, 0x18
test ebx, ebx
jne 0x40a3cc
mov ecx, dword [esi + 0x14]
xor edx, edx
mov esi, dword [ecx]
test esi, esi
je 0x40a3cc
lea eax, [ecx + 4]
mov ebx, dword [ebp - 0x10]
cmp dword [eax], ebx
mov ebx, dword [ebp - 0x1c]
je 0x40a3aa
inc edx
add eax, 4
cmp edx, esi
jb 0x40a396
jmp 0x40a3cc
lea eax, [esi - 1]
cmp edx, eax
jae 0x40a3ca
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + edx*4 + 8]
mov dword [ecx + edx*4 + 4], eax
inc edx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
dec eax
cmp edx, eax
jb 0x40a3b4
dec dword [ecx]
mov esi, dword [edi + 4]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40a4d9
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40a4d9
mov eax, dword [ebp - 0xc]
xor bl, bl
mov edi, dword [eax + 0x24]
mov eax, dword [edi + 8]
test eax, eax
je 0x40a48a
inc eax
push 4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40a44b
xor esi, esi
mov edx, eax
cmp dword [edi + 0x10], esi
jbe 0x40a448
nop
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x40a43f
nop word [eax + eax]
mov eax, dword [ecx + 8]
mov dword [edx], eax
add edx, 4
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x40a430
inc esi
cmp esi, dword [edi + 0x10]
jb 0x40a420
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
cmp dword [eax], 0
mov ecx, eax
je 0x40a47c
test bl, bl
jne 0x40a479
mov eax, dword [ecx]
test eax, eax
je 0x40a471
nop dword [eax]
test bl, bl
jne 0x40a471
cmp dword [eax + 4], esi
mov eax, dword [eax + 0x14]
sete bl
test eax, eax
jne 0x40a460
add ecx, 4
cmp dword [ecx], 0
jne 0x40a452
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test bl, bl
jne 0x40a4d3
push esi
push dword [ebp - 4]
push str.ss.sendq__p__re_enable_recv_fd_d
push dword [ebp - 8]
call fcn.00409820
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edi, dword [ebp - 0x18]
xor eax, eax
mov esi, dword [ecx + 0x18]
mov edx, dword [esi]
test edx, edx
je 0x40a4c1
lea ecx, [esi + 4]
cmp dword [ecx], edi
je 0x40a4d3
inc eax
add ecx, 4
cmp eax, edx
jb 0x40a4b2
mov ecx, dword [ebp - 0xc]
cmp eax, edx
jne 0x40a4d3
cmp edx, 0x40
jae 0x40a4d3
mov dword [esi + eax*4 + 4], edi
mov eax, dword [ecx + 0x18]
inc dword [eax]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
push ebx
push edi
push str.ss.sendq__p__free__next__p_
push dword [ebp - 8]
call fcn.00409820
push dword [edi + 8]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push edi
movq qword [edi + 0x10], xmm0
call esi
add esp, 0x18
mov edi, ebx
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x40a276
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ssl_sendq_retry_failed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ebx, esi
push ebx
push edi
push str.ss.sendq__p__defer_len_zd
push dword [ebp - 8]
call fcn.00409820
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret