Function at 0x537814
Capabilities:
Open clipboard

Disassembly:
mov r11, rsp
push r12
push r13
push r14
sub rsp, 0x220
mov qword [rsp + 0x170], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
movzx esi, r8w
mov r12, rcx
lea rax, [r11 - 0x178]
mov qword [r11 - 0x138], rax
lea rax, [r11 - 0x178]
mov qword [r11 - 0x130], rax
xor r13d, r13d
mov word [r11 - 0x178], r13w
mov ebp, esi
lea r9d, [r13 + 2]
or r8, 0xffffffffffffffff
mov edx, 0x100c
mov rcx, qword [rcx + 0xf0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
mov r14d, 0x100
cmp eax, 0xffffffff
je 0x537d3e
xor edx, edx
lea r8d, [rdx + 0x44]
lea rcx, [rsp + 0x184]
call fcn.006aba40
mov dword [rsp + 0x184], edi
mov dword [rsp + 0x180], 4
lea r9, [rsp + 0x180]
xor r8d, r8d
mov edx, 0x104b
mov rcx, qword [r12 + 0xf0]
call qword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb rbx, rbx
and rbx, qword [rsp + 0x1a8]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x68], rax
mov word [rsp + 0x20], r13w
lea rdx, [rbx + 0xd0]
mov r8b, 0x5c
lea rcx, [rsp + 0x1d0]
call fcn.00447328
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.00402190
nop
lea rax, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x218]
cmp rcx, rax
je 0x53796b
cmp rcx, r13
je 0x53796b
mov rax, qword [rsp + 0x1d0]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537966
call fcn.006a4944
jmp 0x53796b
call fcn.006a3610
mov eax, 0x27a8
cmp si, ax
jne 0x537a60
cmp byte [rbx + 0x17], r13b
je 0x537b4f
mov eax, dword [rbx + 0x10]
cmp eax, r13d
je 0x537999
cmp eax, 3
je 0x537999
cmp eax, 4
jne 0x537b4f
lea rdx, [rbx + 0x24]
mov r9, qword [rbx + 0x58]
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0x110]
call fcn.00560a04
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.00401f00
nop
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x5379e2
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x20]
call fcn.00406d38
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x537a1a
cmp rcx, r13
je 0x537a1a
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537a14
call fcn.006a4944
jmp 0x537a1a
call fcn.006a3610
nop
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0x138]
cmp rcx, rax
je 0x537bb5
cmp rcx, r13
je 0x537bb5
mov rdx, qword [rsp + 0x110]
sub rdx, rcx
cmp rdx, r14
jbe 0x537a56
call fcn.006a4944
jmp 0x537bb5
call fcn.006a3610
jmp 0x537bb5
mov eax, 0x27a9
cmp si, ax
jne 0x537b4f
cmp byte [rbx + 0x17], r13b
je 0x537b4f
mov eax, dword [rbx + 0x10]
cmp eax, r13d
je 0x537a8e
cmp eax, 3
je 0x537a8e
cmp eax, 4
jne 0x537b4f
lea rdx, [rbx + 0x24]
mov r9, qword [rbx + 0x58]
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0x110]
call fcn.00560d54
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.00401f00
nop
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x537ad7
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x20]
call fcn.00406d38
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x537b0f
cmp rcx, r13
je 0x537b0f
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537b09
call fcn.006a4944
jmp 0x537b0f
call fcn.006a3610
nop
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0x138]
cmp rcx, rax
je 0x537bb5
cmp rcx, r13
je 0x537bb5
mov rdx, qword [rsp + 0x110]
sub rdx, rcx
cmp rdx, r14
jbe 0x537b48
call fcn.006a4944
jmp 0x537bb5
call fcn.006a3610
jmp 0x537bb5
lea r8d, [rbp - 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.0053e350
nop
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x537b7e
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x20]
call fcn.00406d38
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x537bb5
cmp rcx, r13
je 0x537bb5
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537bb0
call fcn.006a4944
jmp 0x537bb5
call fcn.006a3610
mov rax, qword [rsp + 0x100]
cmp qword [rsp + 0x108], rax
jne 0x537be3
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.00406d38
jmp 0x537cac
lea r8, [0x00794f6c]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x180]
call fcn.0040fd24
nop
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0040fc8c
nop
lea rcx, [rsp + 0xc0]
cmp rax, rcx
je 0x537c36
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0xc0]
call fcn.00406d38
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x537c6e
cmp rcx, r13
je 0x537c6e
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537c68
call fcn.006a4944
jmp 0x537c6e
call fcn.006a3610
nop
lea rax, [rsp + 0x180]
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rax
je 0x537cac
cmp rcx, r13
je 0x537cac
mov rax, qword [rsp + 0x180]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537ca6
call fcn.006a4944
jmp 0x537cac
call fcn.006a3610
nop
lea rax, [rsp + 0x140]
mov rcx, qword [rsp + 0x168]
cmp rcx, rax
je 0x537ce3
cmp rcx, r13
je 0x537ce3
mov rdx, qword [rsp + 0x140]
sub rdx, rcx
cmp rdx, r14
jbe 0x537cdd
call fcn.006a4944
jmp 0x537ce3
call fcn.006a3610
nop
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x537d17
cmp rcx, r13
je 0x537d17
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x537d12
call fcn.006a4944
jmp 0x537d17
call fcn.006a3610
movsxd r8, edi
mov edx, 0x100c
mov r9d, 2
mov rcx, qword [r12 + 0xf0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x53789c
mov rcx, qword [0x008669d0]
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, r13d
je 0x537d5e
lea rcx, [rsp + 0xc0]
call fcn.0055cb24
nop
lea rax, [rsp + 0xc0]
mov rcx, qword [rsp + 0x108]
cmp rcx, rax
je 0x537d9a
cmp rcx, r13
je 0x537d9a
mov rdx, qword [rsp + 0xc0]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r14
jbe 0x537d95
call fcn.006a4944
jmp 0x537d9a
call fcn.006a3610
xor eax, eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret