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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
mov eax, dword [rsp + 0x238]
mov dword [rsp + 0x30], eax
mov rsi, rcx
mov r12, rdx
mov edi, r8d
mov eax, dword [rsp + 0x240]
mov r8d, 0xa
mov r14d, r9d
lea rbx, [rsp + 0x90]
lea rdx, [rsp + 0x120]
mov rcx, rbx
lea r15, [rsp + 0xe0]
mov dword [rsp + 0x34], eax
call sym.Curl_pollfds_init
mov rbp, qword [rsi + 8]
pxor xmm0, xmm0
mov qword [rsp + 0x110], 0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm0
test rbp, rbp
jne 0x14000e5f9
jmp 0x14000e640
mov rbp, qword [rbp + 0x10]
test rbp, rbp
je 0x14000e640
mov rdx, r15
mov rcx, rbp
call sym.multi_getsock
mov rdx, r15
mov rcx, rbx
call sym.Curl_pollfds_add_ps
test eax, eax
je 0x14000e5f0
mov ebp, 3
mov rcx, rbx
call sym.Curl_pollfds_cleanup
mov eax, ebp
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsi + 0x158]
mov rdx, rbx
call sym.Curl_conncache_add_pollfds
test eax, eax
jne 0x14000e613
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x44], eax
test rdi, rdi
je 0x14000edc2
mov rbp, r12
xor r13d, r13d
jmp 0x14000e67d
add r13, 1
add rbp, 0x10
cmp r13, rdi
je 0x14000e6d0
movzx edx, word [rbp + 8]
mov rcx, rbx
mov eax, edx
and eax, 1
cmp ax, 1
sbb r8d, r8d
neg eax
and r8w, 0xfd00
and ax, 0x300
add r8w, 0x700
test dl, 2
cmove r8d, eax
mov eax, r8d
or eax, 0x10
and edx, 4
mov rdx, qword [rbp]
cmovne r8d, eax
movzx r8d, r8w
call sym.Curl_pollfds_add_sock
test eax, eax
je 0x14000e670
jmp 0x14000e613
mov r9d, dword [rsp + 0x98]
test r9d, r9d
je 0x14000ee66
mov qword [rsp + 0x38], rdi
mov r13, qword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebp, ebp
lea r15, [rsp + 0x8c]
mov qword [rsp + 0x218], r12
mov dword [rsp + 0x228], r14d
jmp 0x14000e733
test r8w, r8w
jne 0x14000e7a0
test dx, dx
jne 0x14000e830
add rbp, 1
mov eax, r9d
cmp rbp, rax
jae 0x14000e840
mov rcx, qword [rsp + 0x90]
mov r14, rbp
shl r14, 4
add rcx, r14
movzx eax, word [rcx + 8]
mov edx, eax
mov r8d, eax
and edx, 0x10
and r8w, 0x400
test ah, 3
je 0x14000e710
test r8w, r8w
jne 0x14000e810
mov r12d, 0x29
test dx, dx
jne 0x14000e820
mov rdx, qword [rsi + 0x218]
mov rcx, qword [rcx]
mov r8d, r12d
call r13
test eax, eax
jne 0x14000e613
mov r9d, dword [rsp + 0x98]
jmp 0x14000e723
mov eax, 0x36
mov r12d, 4
test dx, dx
je 0x14000e775
mov r12d, eax
mov rdi, qword [rcx]
mov r9, r15
mov edx, 0xffff
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r8d, 0x1008
mov dword [rsp + 0xb0], 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000e7f7
cmp dword [rsp + 0x8c], 1
je 0x14000ea41
mov rcx, qword [rsp + 0x90]
add rcx, r14
jmp 0x14000e775
mov eax, 0x3f
mov r12d, 0x2d
jmp 0x14000e7ab
mov r12d, 0x3b
jmp 0x14000e7b3
mov r12d, 0x32
jmp 0x14000e7b3
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x218]
mov r14d, dword [rsp + 0x228]
test byte [rsi + 0x22c], 8
jne 0x14000edac
cmp qword [rsi + 0xd0], 0
je 0x14000e8fa
lea rbp, [rsp + 0x70]
mov rcx, rbp
call sym.Curl_now
movdqa xmm1, xmmword [0x1400f36a0]
mov rcx, rbp
mov rdx, qword [rsi + 0xd0]
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
movaps xmmword [rsp + 0x70], xmm1
call sym.Curl_splay
mov qword [rsi + 0xd0], rax
cmp r15, qword [rax + 0x20]
jg 0x14000edb3
jl 0x14000e8c6
cmp r13d, dword [rax + 0x28]
jg 0x14000edb3
jge 0x14000edb3
movdqu xmm2, xmmword [rax + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r13
movaps xmmword [rsp + 0x70], xmm2
call sym.Curl_timediff_ceil
mov r9d, dword [rsp + 0x98]
test eax, eax
js 0x14000e8fa
cmp r14d, eax
cmovg r14d, eax
test r9d, r9d
je 0x14000ea5a
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov edx, r9d
mov ebp, 0xc
call sym.Curl_poll
mov dword [rsp + 0x40], eax
test eax, eax
js 0x14000e618
je 0x14000eaa7
test rdi, rdi
je 0x14000ee86
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x58], rbx
xor ebp, ebp
mov dword [rsp + 0x228], r14d
mov r15, qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov r14, r12
shl rax, 4
sub rax, r12
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov qword [rsp + 0x50], rax
jmp 0x14000e9de
xor r12d, r12d
mov rdx, qword [rsi + 0x218]
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, r13
call rax
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x14000e9c8
mov eax, r12d
or eax, 1
test bh, 3
cmovne r12d, eax
mov eax, r12d
or eax, 4
test bl, 0x10
cmovne r12d, eax
mov eax, r12d
or eax, 2
and bh, 4
cmovne r12d, eax
add rbp, 1
mov word [r14 + 0xa], r12w
add r14, 0x10
cmp rdi, rbp
je 0x14000ed96
mov r13, qword [r14]
mov rax, qword [rsp + 0x48]
xor edx, edx
add rax, qword [rsp + 0x90]
mov r8, qword [rsp + 0x38]
movzx ebx, word [r14 + rax + 0xa]
mov rcx, r13
mov dword [rsp + 0xb0], 0
call r15
test eax, eax
jne 0x14000e980
mov eax, dword [rsp + 0xb0]
xor r12d, r12d
test al, 0x29
setne r12b
mov edx, r12d
or edx, 4
test al, 0x32
cmovne r12d, edx
mov edx, r12d
or edx, 2
test al, 4
cmovne r12d, edx
jmp 0x14000e983
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000e7f7
xor r14d, r14d
cmp byte [rsp + 0x34], 0
jne 0x14000eaa7
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x230], 0
je 0x14000ea82
mov rax, qword [rsp + 0x230]
mov edi, dword [rsp + 0x40]
mov dword [rax], edi
cmp byte [rsp + 0x30], 0
je 0x14000eaa0
mov eax, dword [rsp + 0x98]
test eax, eax
jne 0x14000eaa0
cmp byte [rsp + 0x34], 0
je 0x14000eb9b
nop
xor ebp, ebp
jmp 0x14000e618
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r14d
mov ecx, 1
lea rdx, [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test rdi, rdi
je 0x14000ec59
cmp qword [rsp + 0x230], 0
mov dword [rsp + 0x40], 0
je 0x14000e936
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov r13, qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov qword [rsp + 0x38], rax
mov r15, qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [rsp + 0x228], r14d
jmp 0x14000eb67
mov eax, dword [rsp + 0xb0]
xor ebx, ebx
test al, 0x29
setne bl
test al, 0x32
je 0x14000ed58
mov rdx, qword [rsi + 0x218]
or ebx, 4
test al, 4
jne 0x14000ed50
add dword [rsp + 0x40], 1
xor r8d, r8d
mov rcx, r14
call r13
nop
add rbp, 1
mov word [r12 + 0xa], bx
add r12, 0x10
cmp rbp, rdi
je 0x14000ed82
mov r14, qword [r12]
xor edx, edx
mov r8, qword [rsp + 0x38]
mov dword [rsp + 0xb0], 0
mov rcx, r14
call r15
test eax, eax
je 0x14000eb18
mov rdx, qword [rsi + 0x218]
xor r8d, r8d
mov rcx, r14
xor ebx, ebx
call r13
jmp 0x14000eb50
cmp dword [rsi], 0xbab1e
jne 0x14000eaa0
test byte [rsi + 0x22c], 0xc
jne 0x14000eaa0
cmp qword [rsi + 0xd0], 0
je 0x14000ec47
lea rbp, [rsp + 0x70]
mov rcx, rbp
call sym.Curl_now
movdqa xmm3, xmmword [0x1400f36a0]
mov rcx, rbp
mov rdx, qword [rsi + 0xd0]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
movaps xmmword [rsp + 0x70], xmm3
call sym.Curl_splay
mov qword [rsi + 0xd0], rax
cmp r12, qword [rax + 0x20]
jg 0x14000eaa0
jl 0x14000ec17
cmp edi, dword [rax + 0x28]
jg 0x14000eaa0
jge 0x14000eaa0
movdqu xmm4, xmmword [rax + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rdi
movaps xmmword [rsp + 0x70], xmm4
call sym.Curl_timediff_ceil
mov edx, eax
test eax, eax
je 0x14000eaa0
cmp r14d, eax
jae 0x14000ec4a
mov edx, r14d
movsxd rcx, edx
xor ebp, ebp
call sym.Curl_wait_ms
jmp 0x14000e618
mov dword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14000ed70
mov r8, qword [rsi + 8]
test r8, r8
je 0x14000ed70
cmp qword [rsp + 0x230], 0
lea r15, [rsp + 0xe0]
je 0x14000edca
mov dword [rsp + 0x228], r14d
mov r12, qword [sym.imp.WS2_32.dll_WSAEventSelect]
lea r13, [rsp + 0xb0]
mov rbp, qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov qword [rsp + 0x38], rbx
mov rbx, r8
nop dword [rax]
mov rdx, r15
mov rcx, rbx
call sym.multi_getsock
mov edx, dword [rsp + 0x108]
test edx, edx
je 0x14000ed28
xor r14d, r14d
nop dword [rax]
xor edx, edx
mov rcx, qword [r15 + r14*8]
mov r8, r13
mov dword [rsp + 0xb0], 0
call rbp
or eax, edi
jne 0x14000ed07
cmp dword [rsp + 0xb0], 1
sbb dword [rsp + 0x40], 0xffffffff
mov rcx, qword [r15 + r14*8]
mov rdx, qword [rsi + 0x218]
xor r8d, r8d
add r14, 1
call r12
mov eax, dword [rsp + 0x108]
cmp r14, rax
jb 0x14000ece0
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ecc0
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ea74
or ebx, 2
jmp 0x14000eb40
mov rdx, qword [rsi + 0x218]
test al, 4
jne 0x14000ed50
test eax, eax
je 0x14000eb8e
jmp 0x14000eb40
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ea69
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x48]
xor edi, edi
jmp 0x14000ec61
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x40]
jmp 0x14000ec61
xor eax, eax
jmp 0x14000e8f3
mov r9d, dword [rsp + 0x98]
xor eax, eax
jmp 0x14000e8f3
mov r9d, eax
jmp 0x14000e6d8
mov qword [rsp + 0x38], rbx
mov rbp, qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov r13, r8
lea r12, [rsp + 0xb0]
mov rdi, qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
nop dword [rax + rax]
mov rcx, r13
mov rdx, r15
call sym.multi_getsock
mov ecx, dword [rsp + 0x108]
test ecx, ecx
je 0x14000ee46
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [r15 + rbx*8]
mov r8, r12
xor edx, edx
mov dword [rsp + 0xb0], 0
call rdi
mov rcx, qword [r15 + rbx*8]
mov rdx, qword [rsi + 0x218]
xor r8d, r8d
call rbp
mov eax, dword [rsp + 0x108]
add rbx, 1
cmp rbx, rax
jb 0x14000ee10
mov r13, qword [r13 + 0x10]
test r13, r13
jne 0x14000edf0
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ea82
test byte [rsi + 0x22c], 8
jne 0x14000ea57
cmp qword [rsi + 0xd0], 0
jne 0x14000e870
jmp 0x14000ea5a
mov edi, eax
jmp 0x14000ec61