Function at 0x180008790
Capabilities:
Open clipboard

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rcx
xor r13d, r13d
cmp qword [rcx + 0x10], r13
je 0x180008f61
mov rsi, qword [rcx + 0x30]
test rsi, rsi
je 0x180008f61
mov rsi, qword [rsi + 0x50]
test rsi, rsi
je 0x180008f61
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], r13
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r13w
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
call qword [rax + 0x68]
nop
cmp qword [rbp + 0x80], r13
jne 0x180008840
xor bl, bl
jmp 0x180008f46
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov qword [rbp], r13
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r13w
mov eax, dword [r14 + 0x28]
cmp eax, 0x9c8c
jne 0x1800088fa
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
mov r8d, 0x9c8e
lea rdx, [rbp - 0x50]
call qword [rax + 0x20]
mov rbx, rax
lea rax, [rbp - 0x10]
cmp rax, rbx
je 0x1800088b0
lea rcx, [rbp - 0x10]
call fcn.180004df0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180008990
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000898b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000898b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 0x9c8d
jne 0x1800089a1
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
mov r8d, 0x9c8f
lea rdx, [rbp - 0x50]
call qword [rax + 0x20]
mov rbx, rax
lea rax, [rbp - 0x10]
cmp rax, rbx
je 0x18000894d
lea rcx, [rbp - 0x10]
call fcn.180004df0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180008990
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000898b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000898b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov word [rbp - 0x50], r13w
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r13
mov rdx, qword [r14 + 0x18]
lea rcx, [rsp + 0x68]
call fcn.180234610
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.180157470
nop
mov r9b, 1
lea r8, [rsp + 0x68]
mov rdx, qword [r14 + 0x18]
lea rcx, [rbp + 0x10]
call fcn.1802378a0
nop
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
xor r8d, r8d
lea rdx, [0x1803be558]
lea rcx, [rbp - 0x30]
call fcn.180004e70
nop
mov rax, qword [r14 + 0x20]
lea r12, vtable.RC::RCFileDialog.0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x58], 0
call fcn.180202800
test al, al
je 0x180008b8b
mov ecx, 0xe8
call fcn.180385c34
mov rdi, rax
mov qword [rbp - 0x58], rax
lea rax, vtable.RC::IFileDialogImpl.0
mov qword [rdi], rax
lea rax, vtable.RC::RCFileDialogImpl2.0
mov qword [rdi], rax
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], 7
mov word [rdi + 8], r13w
mov qword [rdi + 0x38], r13
mov qword [rdi + 0x40], 7
mov word [rdi + 0x28], r13w
lea rcx, [rdi + 0x50]
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea r15, [rdi + 0x70]
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 7
mov word [r15], r13w
lea rbx, [rdi + 0x90]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov qword [rdi + 0xc8], r13
mov qword [rdi + 0xd0], 7
mov word [rdi + 0xb8], r13w
lea r12, [rdi + 0xd8]
mov qword [rsp + 0x60], r12
mov qword [r12], r13
mov byte [rdi + 0x48], 0
lea rax, [rbp + 0x30]
cmp rcx, rax
je 0x180008afc
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
call fcn.180004e70
lea rax, [rbp + 0x10]
cmp rbx, rax
je 0x180008b1f
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rcx, rbx
call fcn.180004e70
mov dword [rdi + 0x4c], r13d
lea rax, [rbp - 0x30]
cmp r15, rax
je 0x180008b46
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, r15
call fcn.180004e70
mov qword [rdi + 0xe0], rsi
lea rax, [0x1803b2168]
lea rcx, [0x1803b2178]
cmp byte [rdi + 0x48], 0
cmovne rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [0x1803d3868]
xor edx, edx
lea r8d, [rdx + 0x17]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rdi + 0x4c], 0x1000
lea r12, vtable.RC::RCFileDialog.0
jmp 0x180008bca
mov ecx, 0x558
call fcn.180385c34
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x30]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rax
call fcn.1802265e0
nop
test rax, rax
lea rdi, [rax + 0x4e8]
jne 0x180008bca
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180008c12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008c0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008c0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
test rdi, rdi
je 0x180008c43
mov rax, qword [rdi]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [rax + 8]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
lea r8, [rbp + 0x70]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.180009130
mov ecx, dword [r14 + 0x28]
sub ecx, 0x11ce
je 0x180008de2
sub ecx, 0x8abe
je 0x180008d0f
cmp ecx, 1
jne 0x180008eae
test rdi, rdi
je 0x180008d08
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180216a80
cmp rax, 1
jne 0x180008d03
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180216c70
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1800049b0
nop
lea rcx, [rbp + 0x50]
call fcn.180004df0
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.1801fd080
nop
lea rcx, [rbp - 0x50]
call fcn.180004df0
mov rdi, qword [rsp + 0x50]
jmp 0x180008eae
mov rdi, qword [rsp + 0x50]
xor bl, bl
jmp 0x180008eb0
test rdi, rdi
je 0x180008d08
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180216a80
cmp rax, 1
jne 0x180008d03
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180216c70
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1800049b0
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x180008d9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008d9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008d9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r13w
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1801fd5a0
nop
lea rcx, [rbp - 0x50]
call fcn.180004df0
mov rdi, qword [rsp + 0x50]
jmp 0x180008eae
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180008dfb
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rdx, [rbp - 0x80]
call fcn.1802013b0
mov rbx, rax
xor r15b, r15b
test rax, rax
je 0x180008e30
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r8, rbx
mov dl, 1
call fcn.180201070
movzx r15d, al
test al, al
jne 0x180008e39
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180008e5c
mov rax, qword [rax]
mov rcx, rsi
call qword [rax]
nop
test rsi, rsi
je 0x180008eae
mov rbx, qword [rsi]
add rbx, 0xb8
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, rax
mov rcx, rsi
call qword [rbx]
movzx ebx, al
test al, al
jne 0x180008e85
test r15b, r15b
je 0x180008ea3
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x60e
call qword [rax + 0x118]
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
jmp 0x180008eb0
mov bl, 1
lea rcx, [rbp - 0x80]
call fcn.180004d00
nop
mov qword [rsp + 0x40], r12
test rdi, rdi
je 0x180008ed6
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov qword [rsp + 0x50], r13
lea rcx, [rbp + 0x10]
call fcn.180004df0
nop
lea rcx, [rbp + 0x30]
call fcn.180004df0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180008f3c
mov rdx, qword [rsp + 0x70]
call fcn.1800092c0
mov rcx, qword [rsp + 0x78]
sub rcx, qword [rsp + 0x68]
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
lea r8, [rax + rdx]
mov rdx, qword [rsp + 0x68]
call fcn.1800090e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea rcx, [rbp - 0x10]
call fcn.180004df0
nop
lea rcx, [rbp + 0x70]
call fcn.180004df0
nop
lea rcx, [rbp + 0x90]
call fcn.180004df0
movzx eax, bl
jmp 0x180008f63
xor al, al
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret