Function at 0x1800087c0
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rcx
xor r13d, r13d
cmp qword [rcx + 0x10], r13
je 0x180008f91
mov rsi, qword [rcx + 0x30]
test rsi, rsi
je 0x180008f91
mov rsi, qword [rsi + 0x50]
test rsi, rsi
je 0x180008f91
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 0x180008870
xor bl, bl
jmp 0x180008f76
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 0x18000892a
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 0x1800088e0
lea rcx, [rbp - 0x10]
call fcn.180004e20
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 0x1800089c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800089bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800089bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 0x9c8d
jne 0x1800089d1
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 0x18000897d
lea rcx, [rbp - 0x10]
call fcn.180004e20
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 0x1800089c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800089bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800089bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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.180236e00
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.180157a30
nop
mov r9b, 1
lea r8, [rsp + 0x68]
mov rdx, qword [r14 + 0x18]
lea rcx, [rbp + 0x10]
call fcn.18023a090
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, [0x1803c0558]
lea rcx, [rbp - 0x30]
call fcn.180004ea0
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.180202dc0
test al, al
je 0x180008bbb
mov ecx, 0xe8
call fcn.180388424
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 0x180008b2c
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
call fcn.180004ea0
lea rax, [rbp + 0x10]
cmp rbx, rax
je 0x180008b4f
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rcx, rbx
call fcn.180004ea0
mov dword [rdi + 0x4c], r13d
lea rax, [rbp - 0x30]
cmp r15, rax
je 0x180008b76
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, r15
call fcn.180004ea0
mov qword [rdi + 0xe0], rsi
lea rax, [0x1803b4178]
lea rcx, [0x1803b4188]
cmp byte [rdi + 0x48], 0
cmovne rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [0x1803d58c0]
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 0x180008bfa
mov ecx, 0x558
call fcn.180388424
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.180228dd0
nop
test rax, rax
lea rdi, [rax + 0x4e8]
jne 0x180008bfa
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180008c42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008c3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008c3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
test rdi, rdi
je 0x180008c73
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.180009160
mov ecx, dword [r14 + 0x28]
sub ecx, 0x11ce
je 0x180008e12
sub ecx, 0x8abe
je 0x180008d3f
cmp ecx, 1
jne 0x180008ede
test rdi, rdi
je 0x180008d38
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180217040
cmp rax, 1
jne 0x180008d33
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.180217230
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1800049e0
nop
lea rcx, [rbp + 0x50]
call fcn.180004e20
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.1801fd640
nop
lea rcx, [rbp - 0x50]
call fcn.180004e20
mov rdi, qword [rsp + 0x50]
jmp 0x180008ede
mov rdi, qword [rsp + 0x50]
xor bl, bl
jmp 0x180008ee0
test rdi, rdi
je 0x180008d38
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180217040
cmp rax, 1
jne 0x180008d33
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.180217230
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1800049e0
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x180008dcf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008dca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008dca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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.1801fdb60
nop
lea rcx, [rbp - 0x50]
call fcn.180004e20
mov rdi, qword [rsp + 0x50]
jmp 0x180008ede
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180008e2b
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rdx, [rbp - 0x80]
call fcn.180201970
mov rbx, rax
xor r15b, r15b
test rax, rax
je 0x180008e60
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r8, rbx
mov dl, 1
call fcn.180201630
movzx r15d, al
test al, al
jne 0x180008e69
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 0x180008e8c
mov rax, qword [rax]
mov rcx, rsi
call qword [rax]
nop
test rsi, rsi
je 0x180008ede
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 0x180008eb5
test r15b, r15b
je 0x180008ed3
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 0x180008ee0
mov bl, 1
lea rcx, [rbp - 0x80]
call fcn.180004d30
nop
mov qword [rsp + 0x40], r12
test rdi, rdi
je 0x180008f06
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov qword [rsp + 0x50], r13
lea rcx, [rbp + 0x10]
call fcn.180004e20
nop
lea rcx, [rbp + 0x30]
call fcn.180004e20
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180008f6c
mov rdx, qword [rsp + 0x70]
call fcn.1800092f0
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.180009110
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea rcx, [rbp - 0x10]
call fcn.180004e20
nop
lea rcx, [rbp + 0x70]
call fcn.180004e20
nop
lea rcx, [rbp + 0x90]
call fcn.180004e20
movzx eax, bl
jmp 0x180008f93
xor al, al
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180388400
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