Function at 0x1400e6100
Capabilities:
Print debug messages
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 0x1400e679d
dec ecx
je 0x1400e6775
sub ecx, 2
je 0x1400e6762
dec ecx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x38], r13
je 0x1400e6162
dec ecx
jne 0x1400e647f
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.1400e71a0
jmp 0x1400e6424
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x1400e647f
mov r13, qword [r12]
cmp word [r13], 0x30
je 0x1400e6193
mov rdx, qword [rdx]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
jmp 0x1400e6424
movzx edx, byte [rbx + 0x23]
mov qword [rsp + 0x30], r14
test dl, dl
jne 0x1400e61bd
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r13
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x1400e6477
xor esi, esi
mov r8b, 1
test r13, r13
jne 0x1400e61d6
xor r8b, r8b
mov r14d, esi
lea r13, [0x1401035ac]
jmp 0x1400e61f8
cmp qword [rbx + 8], r13
jne 0x1400e61e5
mov r14, qword [rbx + 0x10]
shr r14, 1
jmp 0x1400e61f8
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 0x1400e6215
mov rdx, r14
mov rcx, r13
call fcn.140006bc0
jmp 0x1400e6477
mov r9, qword [0x14013b0d0]
cmp rbp, r9
jbe 0x1400e6233
cmp rbp, qword [rbx + 0x18]
jbe 0x1400e6233
lea rdx, [0x140124720]
jmp 0x1400e6464
cmp rax, 2
jae 0x1400e6253
test r8b, r8b
mov rcx, rbx
setne sil
xor r8d, r8d
lea edx, [rsi + 2]
call fcn.1400e74d0
jmp 0x1400e6407
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400e6270
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [0x14013b0d0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rbp, r8
jbe 0x1400e63e1
movzx r10d, byte [rbx + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x1400e62a3
cmp al, 2
je 0x1400e62e0
mov rdi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
jmp 0x1400e63d5
mov edi, 0x80
cmp rbp, rdi
ja 0x1400e62e0
cmp rbp, 8
ja 0x1400e62ba
mov edi, 8
jmp 0x1400e62c6
mov eax, reloc.WSOCK32.dll_recv
cmp rbp, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x1400e647b
mov byte [rbx + 0x20], 1
jmp 0x1400e63d5
cmp rbp, 0x20
jae 0x1400e62f0
mov edi, SafeArrayAllocDescriptor
jmp 0x1400e639a
mov edi, 0x208
cmp rbp, rdi
jb 0x1400e639a
cmp rbp, 0x50000
jae 0x1400e6356
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
test rbp, rbp
jns 0x1400e631d
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x1400e634c
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400e634c
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rdi, xmm0
add rdi, rcx
jmp 0x1400e639a
cmp rbp, 0x320000
jae 0x1400e6368
lea rdi, [rbp + 0x8000]
jmp 0x1400e639a
cmp rbp, 0xc80000
jae 0x1400e6393
movabs rax, 0x47ae147ae147ae15
mov rdi, rbp
mul rbp
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rbp
jmp 0x1400e639a
lea rdi, [rbp + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r10b, 2
jne 0x1400e63bb
test r8, r8
je 0x1400e63bb
mov rcx, qword [rbx + 8]
mov bpl, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400e63be
xor bpl, bpl
test rdi, rdi
js 0x1400e643c
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x1400e643c
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 0x1400e63f7
lea r8, [r14 + r14]
mov rdx, r13
call qword [sym.imp.MSVCR100.dll_memmove]
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.WSOCK32.dll_recv
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 0x1400e6452
lea rax, [0x140141fa8]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 8], rax
jmp 0x1400e6459
mov rax, qword [rbx + 8]
mov word [rax], si
mov qword [rbx + 0x10], rsi
lea rdx, str.Out_of_memory.
lea r8, [0x1401035ac]
lea rcx, [0x140143150]
call fcn.14005f7b0
test eax, eax
jne 0x1400e6407
xor eax, eax
jmp 0x1400e641f
movzx edx, byte [rbx + 0x23]
mov r12, qword [r12]
test dl, dl
jne 0x1400e64aa
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r12
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
mov esi, eax
jmp 0x1400e6424
xor esi, esi
mov r8b, 1
test r12, r12
jne 0x1400e64c3
xor r8b, r8b
mov r13d, esi
lea r12, [0x1401035ac]
jmp 0x1400e64e5
cmp qword [rbx + 8], r12
jne 0x1400e64d2
mov r13, qword [rbx + 0x10]
shr r13, 1
jmp 0x1400e64e5
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 0x1400e6504
mov rdx, r13
mov rcx, r12
call fcn.140006bc0
mov esi, eax
jmp 0x1400e6424
mov r9, qword [0x14013b0d0]
cmp rbp, r9
jbe 0x1400e6537
cmp rbp, qword [rbx + 0x18]
jbe 0x1400e6537
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
mov esi, eax
jmp 0x1400e6424
cmp rax, 2
jae 0x1400e655e
test r8b, r8b
mov rcx, rbx
setne sil
xor r8d, r8d
lea edx, [rsi + 2]
call fcn.1400e74d0
mov esi, 1
mov eax, esi
jmp 0x1400e6424
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400e657b
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [0x14013b0d0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rbp, r8
jbe 0x1400e66ec
movzx r10d, byte [rbx + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x1400e65ae
cmp al, 2
je 0x1400e65eb
mov rdi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
jmp 0x1400e66e0
mov edi, 0x80
cmp rbp, rdi
ja 0x1400e65eb
cmp rbp, 8
ja 0x1400e65c5
mov edi, 8
jmp 0x1400e65d1
mov eax, reloc.WSOCK32.dll_recv
cmp rbp, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x1400e6719
mov byte [rbx + 0x20], 1
jmp 0x1400e66e0
cmp rbp, 0x20
jae 0x1400e65fb
mov edi, SafeArrayAllocDescriptor
jmp 0x1400e66a5
mov edi, 0x208
cmp rbp, rdi
jb 0x1400e66a5
cmp rbp, 0x50000
jae 0x1400e6661
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
test rbp, rbp
jns 0x1400e6628
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x1400e6657
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400e6657
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rdi, xmm0
add rdi, rcx
jmp 0x1400e66a5
cmp rbp, 0x320000
jae 0x1400e6673
lea rdi, [rbp + 0x8000]
jmp 0x1400e66a5
cmp rbp, 0xc80000
jae 0x1400e669e
movabs rax, 0x47ae147ae147ae15
mov rdi, rbp
mul rbp
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rbp
jmp 0x1400e66a5
lea rdi, [rbp + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r10b, 2
jne 0x1400e66c6
test r8, r8
je 0x1400e66c6
mov rcx, qword [rbx + 8]
mov bpl, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400e66c9
xor bpl, bpl
test rdi, rdi
js 0x1400e6720
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x1400e6720
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 0x1400e6703
lea r8, [r13 + r13]
mov rdx, r12
call qword [sym.imp.MSVCR100.dll_memmove]
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 0x1400e6424
test bpl, bpl
je 0x1400e6736
lea rax, [0x140141fa8]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 8], rax
jmp 0x1400e673d
mov rax, qword [rbx + 8]
mov word [rax], si
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rbx + 0x10], rsi
call fcn.14005f7b0
mov esi, eax
jmp 0x1400e6424
mov rdx, qword [rdx]
mov rcx, rbx
add rsp, 0x40
pop r12
pop rsi
pop rbx
jmp fcn.1400e5f70
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