Function at 0x14000ea30
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 0x14000eac9
jmp 0x14000eb10
mov rbp, qword [rbp + 0x10]
test rbp, rbp
je 0x14000eb10
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 0x14000eac0
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 0x14000eae3
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x44], eax
test rdi, rdi
je 0x14000f292
mov rbp, r12
xor r13d, r13d
jmp 0x14000eb4d
add r13, 1
add rbp, 0x10
cmp r13, rdi
je 0x14000eba0
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 0x14000eb40
jmp 0x14000eae3
mov r9d, dword [rsp + 0x98]
test r9d, r9d
je 0x14000f336
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 0x14000ec03
test r8w, r8w
jne 0x14000ec70
test dx, dx
jne 0x14000ed00
add rbp, 1
mov eax, r9d
cmp rbp, rax
jae 0x14000ed10
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 0x14000ebe0
test r8w, r8w
jne 0x14000ece0
mov r12d, 0x29
test dx, dx
jne 0x14000ecf0
mov rdx, qword [rsi + 0x218]
mov rcx, qword [rcx]
mov r8d, r12d
call r13
test eax, eax
jne 0x14000eae3
mov r9d, dword [rsp + 0x98]
jmp 0x14000ebf3
mov eax, 0x36
mov r12d, 4
test dx, dx
je 0x14000ec45
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 0x14000ecc7
cmp dword [rsp + 0x8c], 1
je 0x14000ef11
mov rcx, qword [rsp + 0x90]
add rcx, r14
jmp 0x14000ec45
mov eax, 0x3f
mov r12d, 0x2d
jmp 0x14000ec7b
mov r12d, 0x3b
jmp 0x14000ec83
mov r12d, 0x32
jmp 0x14000ec83
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x218]
mov r14d, dword [rsp + 0x228]
test byte [rsi + 0x22c], 8
jne 0x14000f27c
cmp qword [rsi + 0xd0], 0
je 0x14000edca
lea rbp, [rsp + 0x70]
mov rcx, rbp
call sym.Curl_now
movdqa xmm1, xmmword [0x1400fe7c0]
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 0x14000f283
jl 0x14000ed96
cmp r13d, dword [rax + 0x28]
jg 0x14000f283
jge 0x14000f283
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 0x14000edca
cmp r14d, eax
cmovg r14d, eax
test r9d, r9d
je 0x14000ef2a
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 0x14000eae8
je 0x14000ef77
test rdi, rdi
je 0x14000f356
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 0x14000eeae
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 0x14000ee98
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 0x14000f266
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 0x14000ee50
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 0x14000ee53
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000ecc7
xor r14d, r14d
cmp byte [rsp + 0x34], 0
jne 0x14000ef77
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x230], 0
je 0x14000ef52
mov rax, qword [rsp + 0x230]
mov edi, dword [rsp + 0x40]
mov dword [rax], edi
cmp byte [rsp + 0x30], 0
je 0x14000ef70
mov eax, dword [rsp + 0x98]
test eax, eax
jne 0x14000ef70
cmp byte [rsp + 0x34], 0
je 0x14000f06b
nop
xor ebp, ebp
jmp 0x14000eae8
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 0x14000f129
cmp qword [rsp + 0x230], 0
mov dword [rsp + 0x40], 0
je 0x14000ee06
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 0x14000f037
mov eax, dword [rsp + 0xb0]
xor ebx, ebx
test al, 0x29
setne bl
test al, 0x32
je 0x14000f228
mov rdx, qword [rsi + 0x218]
or ebx, 4
test al, 4
jne 0x14000f220
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 0x14000f252
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 0x14000efe8
mov rdx, qword [rsi + 0x218]
xor r8d, r8d
mov rcx, r14
xor ebx, ebx
call r13
jmp 0x14000f020
cmp dword [rsi], 0xbab1e
jne 0x14000ef70
test byte [rsi + 0x22c], 0xc
jne 0x14000ef70
cmp qword [rsi + 0xd0], 0
je 0x14000f117
lea rbp, [rsp + 0x70]
mov rcx, rbp
call sym.Curl_now
movdqa xmm3, xmmword [0x1400fe7c0]
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 0x14000ef70
jl 0x14000f0e7
cmp edi, dword [rax + 0x28]
jg 0x14000ef70
jge 0x14000ef70
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 0x14000ef70
cmp r14d, eax
jae 0x14000f11a
mov edx, r14d
movsxd rcx, edx
xor ebp, ebp
call sym.Curl_wait_ms
jmp 0x14000eae8
mov dword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14000f240
mov r8, qword [rsi + 8]
test r8, r8
je 0x14000f240
cmp qword [rsp + 0x230], 0
lea r15, [rsp + 0xe0]
je 0x14000f29a
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 0x14000f1f8
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 0x14000f1d7
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 0x14000f1b0
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f190
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ef44
or ebx, 2
jmp 0x14000f010
mov rdx, qword [rsi + 0x218]
test al, 4
jne 0x14000f220
test eax, eax
je 0x14000f05e
jmp 0x14000f010
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ef39
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x48]
xor edi, edi
jmp 0x14000f131
mov r14d, dword [rsp + 0x228]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x40]
jmp 0x14000f131
xor eax, eax
jmp 0x14000edc3
mov r9d, dword [rsp + 0x98]
xor eax, eax
jmp 0x14000edc3
mov r9d, eax
jmp 0x14000eba8
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 0x14000f316
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 0x14000f2e0
mov r13, qword [r13 + 0x10]
test r13, r13
jne 0x14000f2c0
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x218]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x14000ef52
test byte [rsi + 0x22c], 8
jne 0x14000ef27
cmp qword [rsi + 0xd0], 0
jne 0x14000ed40
jmp 0x14000ef2a
mov edi, eax
jmp 0x14000f131