Function at 0x140058090
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140129718]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp byte [rcx + 0xa5], 0
je 0x140058319
mov edx, dword [rcx + 0x94]
mov r8d, dword [rcx + 0x9c]
cmp edx, r8d
jl 0x140058100
jne 0x1400580ed
mov eax, dword [rcx + 0xa0]
cmp dword [rcx + 0x98], eax
jl 0x140058100
mov eax, r8d
mov r15d, dword [rcx + 0xa0]
mov r12d, dword [rcx + 0x98]
jmp 0x140058113
mov eax, edx
mov r15d, dword [rcx + 0x98]
mov edx, r8d
mov r12d, dword [rcx + 0xa0]
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
mov r14d, 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x40], bp
movsxd rbx, eax
mov r13, rbx
movsxd rsi, edx
cmp rbx, rsi
jg 0x14005824f
mov rax, qword [rdi + 0xb0]
mov rcx, qword [rax + rbx*8]
mov r8d, r15d
cmp rbx, r13
cmovne r8d, ebp
mov eax, r12d
cmp rbx, rsi
cmovne eax, dword [rcx + 0x10]
movsxd r9, r8d
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r14
mov word [rsp + 0x20], bp
mov rdx, qword [rcx + 0x10]
cmp rdx, r9
jb 0x140058344
sub eax, r8d
movsxd r8, eax
sub rdx, r9
cmp rdx, r8
cmovb r8, rdx
cmp qword [rcx + 0x18], 8
jb 0x14005819e
mov rcx, qword [rcx]
lea rdx, [rcx + r9*2]
lea rcx, [rsp + 0x20]
call fcn.14000f2a0
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400581c5
lea rcx, [rsp + 0x40]
call fcn.14000f120
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005821d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058218
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005830a
call fcn.1400dc8cc
cmp rbx, rsi
je 0x140058239
mov r8d, 2
lea rdx, [0x1400ed50c]
lea rcx, [rsp + 0x40]
call fcn.14000f120
inc rbx
cmp rbx, rsi
jle 0x140058141
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x1400582d4
lea rdx, [rbp*2 + 2]
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400582cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
test rax, rax
je 0x1400582d4
lea rcx, [rsp + 0x40]
cmp r14, 8
cmovae rcx, rbx
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400582a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
cmp r14, 8
jb 0x140058319
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140058311
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058311
call qword [0x1400e7dc8]
nop
call qword [0x1400e7dc8]
nop
mov rcx, rbx
call fcn.1400dc8cc
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400dc960
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14005bd90
nop
int3