Function at 0x1400bc930
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x40
mov rbx, rcx
mov ecx, dword [rdx + 0x10]
mov r12, rdx
dec ecx
je 0x1400bcfc7
dec ecx
je 0x1400bcf9f
sub ecx, 2
je 0x1400bcf8c
dec ecx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x38], r13
je 0x1400bc992
dec ecx
jne 0x1400bccac
mov rdi, qword [rdx]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WSOCK32.DLL_htonl]
mov rdx, rdi
mov rcx, rbx
call fcn.1400bd9d0
jmp 0x1400bcc51
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x1400bccac
mov r13, qword [r12]
cmp word [r13], 0x30
je 0x1400bc9c3
mov rdx, qword [rdx]
mov r8b, reloc.OLEAUT32.DLL_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
jmp 0x1400bcc51
movzx edx, byte [rbx + 0x23]
mov qword [rsp + 0x30], r14
test dl, dl
jne 0x1400bc9ed
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r13
mov byte [rsp + 0x20], 1
call fcn.1400bd650
jmp 0x1400bcca4
xor esi, esi
mov r8b, 1
test r13, r13
jne 0x1400bca06
xor r8b, r8b
mov r14d, esi
lea r13, [0x1400f1514]
jmp 0x1400bca28
cmp qword [rbx + 8], r13
jne 0x1400bca15
mov r14, qword [rbx + 0x10]
shr r14, 1
jmp 0x1400bca28
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
lea rax, [r14 + 1]
lea rbp, [rax + rax]
cmp dl, 2
jne 0x1400bca45
mov rdx, r14
mov rcx, r13
call fcn.140006d20
jmp 0x1400bcca4
mov r9, qword [0x1401255a0]
cmp rbp, r9
jbe 0x1400bca63
cmp rbp, qword [rbx + 0x18]
jbe 0x1400bca63
lea rdx, [0x140110440]
jmp 0x1400bcc91
cmp rax, 2
jae 0x1400bca83
test r8b, r8b
mov rcx, rbx
setne sil
xor r8d, r8d
lea edx, [rsi + 3]
call fcn.1400bdd00
jmp 0x1400bcc34
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400bcaa0
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.DLL_SafeArrayGetDim]
mov r9, qword [0x1401255a0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rbp, r8
jbe 0x1400bcc0f
movzx r10d, byte [rbx + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x1400bcad3
cmp al, 2
je 0x1400bcb10
mov rdi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
jmp 0x1400bcc03
mov edi, 0x80
cmp rbp, rdi
ja 0x1400bcb10
cmp rbp, 8
ja 0x1400bcaea
mov edi, 8
jmp 0x1400bcaf6
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
cmp rbp, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b60b0
test rax, rax
je 0x1400bcca8
mov byte [rbx + 0x20], 1
jmp 0x1400bcc03
cmp rbp, 0x20
jae 0x1400bcb20
mov edi, SafeArrayAllocDescriptor
jmp 0x1400bcbca
mov edi, 0x208
cmp rbp, rdi
jb 0x1400bcbca
cmp rbp, 0x50000
jae 0x1400bcb86
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
test rbp, rbp
jns 0x1400bcb4d
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x1400bcb7c
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400bcb7c
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rdi, xmm0
add rdi, rcx
jmp 0x1400bcbca
cmp rbp, 0x320000
jae 0x1400bcb98
lea rdi, [rbp + 0x8000]
jmp 0x1400bcbca
cmp rbp, 0xc80000
jae 0x1400bcbc3
movabs rax, 0x47ae147ae147ae15
mov rdi, rbp
mul rbp
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rbp
jmp 0x1400bcbca
lea rdi, [rbp + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r10b, 2
jne 0x1400bcbea
test r8, r8
je 0x1400bcbea
mov rcx, qword [rbx + 8]
mov bpl, 1
call fcn.1400d6fd8
jmp 0x1400bcbed
xor bpl, bpl
test rdi, rdi
js 0x1400bcc69
mov rcx, rdi
call fcn.1400d6f18
test rax, rax
je 0x1400bcc69
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x1400bcc24
lea r8, [r14 + r14]
mov rdx, r13
call fcn.1400d7a40
mov rax, qword [rbx + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], si
mov qword [rbx + 0x10], rcx
mov rdx, qword [r12 + 8]
mov r8b, reloc.OLEAUT32.DLL_SafeArrayGetDim
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140001090
mov eax, 1
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x38]
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
test bpl, bpl
je 0x1400bcc7f
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 8], rax
jmp 0x1400bcc86
mov rax, qword [rbx + 8]
mov word [rax], si
mov qword [rbx + 0x10], rsi
lea rdx, [0x1400f5a30]
lea r8, [0x1400f1514]
lea rcx, [0x14012c5c0]
call fcn.14004e5e0
test eax, eax
jne 0x1400bcc34
xor eax, eax
jmp 0x1400bcc4c
movzx edx, byte [rbx + 0x23]
mov r12, qword [r12]
test dl, dl
jne 0x1400bccd7
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r12
mov byte [rsp + 0x20], 1
call fcn.1400bd650
mov esi, eax
jmp 0x1400bcc51
xor esi, esi
mov r8b, 1
test r12, r12
jne 0x1400bccf0
xor r8b, r8b
mov r13d, esi
lea r12, [0x1400f1514]
jmp 0x1400bcd12
cmp qword [rbx + 8], r12
jne 0x1400bccff
mov r13, qword [rbx + 0x10]
shr r13, 1
jmp 0x1400bcd12
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
lea rax, [r13 + 1]
lea rbp, [rax + rax]
cmp dl, 2
jne 0x1400bcd31
mov rdx, r13
mov rcx, r12
call fcn.140006d20
mov esi, eax
jmp 0x1400bcc51
mov r9, qword [0x1401255a0]
cmp rbp, r9
jbe 0x1400bcd64
cmp rbp, qword [rbx + 0x18]
jbe 0x1400bcd64
lea r8, [0x1400f1514]
lea rdx, [0x140110440]
lea rcx, [0x14012c5c0]
call fcn.14004e5e0
mov esi, eax
jmp 0x1400bcc51
cmp rax, 2
jae 0x1400bcd8b
test r8b, r8b
mov rcx, rbx
setne sil
xor r8d, r8d
lea edx, [rsi + 3]
call fcn.1400bdd00
mov esi, 1
mov eax, esi
jmp 0x1400bcc51
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400bcda8
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.DLL_SafeArrayGetDim]
mov r9, qword [0x1401255a0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rbp, r8
jbe 0x1400bcf17
movzx r10d, byte [rbx + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x1400bcddb
cmp al, 2
je 0x1400bce18
mov rdi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
jmp 0x1400bcf0b
mov edi, 0x80
cmp rbp, rdi
ja 0x1400bce18
cmp rbp, 8
ja 0x1400bcdf2
mov edi, 8
jmp 0x1400bcdfe
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
cmp rbp, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b60b0
test rax, rax
je 0x1400bcf43
mov byte [rbx + 0x20], 1
jmp 0x1400bcf0b
cmp rbp, 0x20
jae 0x1400bce28
mov edi, SafeArrayAllocDescriptor
jmp 0x1400bced2
mov edi, 0x208
cmp rbp, rdi
jb 0x1400bced2
cmp rbp, 0x50000
jae 0x1400bce8e
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
test rbp, rbp
jns 0x1400bce55
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x1400bce84
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400bce84
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rdi, xmm0
add rdi, rcx
jmp 0x1400bced2
cmp rbp, 0x320000
jae 0x1400bcea0
lea rdi, [rbp + 0x8000]
jmp 0x1400bced2
cmp rbp, 0xc80000
jae 0x1400bcecb
movabs rax, 0x47ae147ae147ae15
mov rdi, rbp
mul rbp
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rbp
jmp 0x1400bced2
lea rdi, [rbp + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r10b, 2
jne 0x1400bcef2
test r8, r8
je 0x1400bcef2
mov rcx, qword [rbx + 8]
mov bpl, 1
call fcn.1400d6fd8
jmp 0x1400bcef5
xor bpl, bpl
test rdi, rdi
js 0x1400bcf4a
mov rcx, rdi
call fcn.1400d6f18
test rax, rax
je 0x1400bcf4a
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r12
je 0x1400bcf2d
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400d7a40
mov rax, qword [rbx + 8]
lea rcx, [r13 + r13]
mov word [rcx + rax], si
mov qword [rbx + 0x10], rcx
mov esi, 1
mov eax, esi
jmp 0x1400bcc51
test bpl, bpl
je 0x1400bcf60
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 8], rax
jmp 0x1400bcf67
mov rax, qword [rbx + 8]
mov word [rax], si
lea r8, [0x1400f1514]
lea rdx, [0x1400f5a30]
lea rcx, [0x14012c5c0]
mov qword [rbx + 0x10], rsi
call fcn.14004e5e0
mov esi, eax
jmp 0x1400bcc51
mov rdx, qword [rdx]
mov rcx, rbx
add rsp, 0x40
pop r12
pop rsi
pop rbx
jmp fcn.1400bc7a0
movsd xmm0, qword [rdx]
mov r8b, 0x28
mov rcx, rbx
movsd qword [rsp + 0x68], xmm0
mov rdx, qword [rsp + 0x68]
call fcn.140001090
mov eax, 1
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
mov rdx, qword [rdx]
mov r8b, reloc.OLEAUT32.DLL_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret