Function at 0x508234
Capabilities:
Open clipboard

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x350
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
movzx esi, r8w
lea rax, [r11 - 0x2c8]
mov qword [r11 - 0x288], rax
lea rax, [r11 - 0x2c8]
mov qword [r11 - 0x280], rax
xor r12d, r12d
mov word [r11 - 0x2c8], r12w
mov ebp, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8b, 1
lea rdx, [rsp + 0x28]
call fcn.00502a20
mov rdi, qword [rsp + 0x28]
mov r13d, 0x100
cmp rdi, qword [rsp + 0x30]
je 0x50871e
mov rbx, qword [rdi]
mov qword [rsp + 0x20], rbx
cmp rbx, r12
je 0x5082d1
lock add dword [rbx + 8], 1
mov rbx, qword [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov word [rsp + 0x50], r12w
mov eax, 0x27a8
cmp si, ax
jne 0x50841c
lea rdx, [rbx + 0x80]
mov r8b, 0x5c
lea rcx, [rsp + 0x128]
call fcn.004455f0
nop
lea rdx, [rbx + 0x20]
mov r9, qword [rbx + 0xb8]
mov r8, rax
lea rcx, [rsp + 0x158]
call fcn.00560a04
nop
mov rdx, rax
lea rcx, [rsp + 0x1b8]
call fcn.00401f00
nop
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x508361
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x50]
call fcn.00406d38
nop
lea rax, [rsp + 0x1b8]
mov rcx, qword [rsp + 0x200]
cmp rcx, rax
je 0x50839f
cmp rcx, r12
je 0x50839f
mov rax, qword [rsp + 0x1b8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x508399
call fcn.006a4944
jmp 0x50839f
call fcn.006a3610
nop
lea rax, [rsp + 0x158]
mov rcx, qword [rsp + 0x180]
cmp rcx, rax
je 0x5083d6
cmp rcx, r12
je 0x5083d6
mov rdx, qword [rsp + 0x158]
sub rdx, rcx
cmp rdx, r13
jbe 0x5083d0
call fcn.006a4944
jmp 0x5083d6
call fcn.006a3610
nop
lea rax, [rsp + 0x128]
mov rcx, qword [rsp + 0x150]
cmp rcx, rax
je 0x5085b0
cmp rcx, r12
je 0x5085b0
mov rdx, qword [rsp + 0x128]
sub rdx, rcx
cmp rdx, r13
jbe 0x508412
call fcn.006a4944
jmp 0x5085b0
call fcn.006a3610
jmp 0x5085b0
mov eax, 0x27a9
cmp si, ax
jne 0x508541
lea rdx, [rbx + 0x80]
mov r8b, 0x5c
lea rcx, [rsp + 0xf8]
call fcn.004455f0
nop
lea rdx, [rbx + 0x20]
mov r9, qword [rbx + 0xb8]
mov r8, rax
lea rcx, [rsp + 0x188]
call fcn.00560d54
nop
mov rdx, rax
lea rcx, [rsp + 0x2a8]
call fcn.00401f00
nop
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x50848c
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x50]
call fcn.00406d38
nop
lea rax, [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2f0]
cmp rcx, rax
je 0x5084ca
cmp rcx, r12
je 0x5084ca
mov rax, qword [rsp + 0x2a8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x5084c4
call fcn.006a4944
jmp 0x5084ca
call fcn.006a3610
nop
lea rax, [rsp + 0x188]
mov rcx, qword [rsp + 0x1b0]
cmp rcx, rax
je 0x508501
cmp rcx, r12
je 0x508501
mov rdx, qword [rsp + 0x188]
sub rdx, rcx
cmp rdx, r13
jbe 0x5084fb
call fcn.006a4944
jmp 0x508501
call fcn.006a3610
nop
lea rax, [rsp + 0xf8]
mov rcx, qword [rsp + 0x120]
cmp rcx, rax
je 0x5085b0
cmp rcx, r12
je 0x5085b0
mov rdx, qword [rsp + 0xf8]
sub rdx, rcx
cmp rdx, r13
jbe 0x50853a
call fcn.006a4944
jmp 0x5085b0
call fcn.006a3610
jmp 0x5085b0
lea r8d, [rbp - 0x80]
lea rdx, [rsp + 0x208]
mov rcx, rbx
call fcn.004ff8d4
nop
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x508573
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x50]
call fcn.00406d38
nop
lea rax, [rsp + 0x208]
mov rcx, qword [rsp + 0x250]
cmp rcx, rax
je 0x5085b0
cmp rcx, r12
je 0x5085b0
mov rax, qword [rsp + 0x208]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x5085ab
call fcn.006a4944
jmp 0x5085b0
call fcn.006a3610
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0xe8], rax
jne 0x5085e4
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call fcn.00406d38
jmp 0x5086b6
lea r8, [0x00794f6c]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2f8]
call fcn.0040fd24
nop
lea r8, [rsp + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x258]
call fcn.0040fc8c
nop
lea rcx, [rsp + 0xa0]
cmp rax, rcx
je 0x50863a
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0xa0]
call fcn.00406d38
nop
lea rax, [rsp + 0x258]
mov rcx, qword [rsp + 0x2a0]
cmp rcx, rax
je 0x508678
cmp rcx, r12
je 0x508678
mov rax, qword [rsp + 0x258]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x508672
call fcn.006a4944
jmp 0x508678
call fcn.006a3610
nop
lea rax, [rsp + 0x2f8]
mov rcx, qword [rsp + 0x340]
cmp rcx, rax
je 0x5086b6
cmp rcx, r12
je 0x5086b6
mov rax, qword [rsp + 0x2f8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x5086b0
call fcn.006a4944
jmp 0x5086b6
call fcn.006a3610
nop
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x5086ee
cmp rcx, r12
je 0x5086ee
mov rax, qword [rsp + 0x50]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r13
jbe 0x5086e8
call fcn.006a4944
jmp 0x5086ee
call fcn.006a3610
nop
cmp rbx, r12
je 0x50870f
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
add eax, 0xffffffff
jne 0x50870f
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rdi, 8
cmp rdi, qword [rsp + 0x30]
jne 0x5082ba
mov rcx, qword [0x008669d0]
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, r12d
je 0x50873e
lea rcx, [rsp + 0xa0]
call fcn.0055cb24
nop
lea rcx, [rsp + 0x28]
call fcn.00445244
nop
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xe8]
cmp rcx, rax
je 0x508785
cmp rcx, r12
je 0x508785
mov rdx, qword [rsp + 0xa0]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r13
jbe 0x508780
call fcn.006a4944
jmp 0x508785
call fcn.006a3610
xor eax, eax
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret