Function at 0x180009730
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 [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rcx
xor r13d, r13d
cmp qword [rcx + 0x10], r13
je 0x180009f01
mov rsi, qword [rcx + 0x30]
test rsi, rsi
je 0x180009f01
mov rsi, qword [rsi + 0x50]
test rsi, rsi
je 0x180009f01
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 0x1800097e0
xor bl, bl
jmp 0x180009ee6
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 0x18000989a
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 0x180009850
lea rcx, [rbp - 0x10]
call fcn.180005c50
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 0x180009930
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000992b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000992b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 0x9c8d
jne 0x180009941
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 0x1800098ed
lea rcx, [rbp - 0x10]
call fcn.180005c50
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 0x180009930
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000992b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000992b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
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.180234ff0
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.18015ca70
nop
mov r9b, 1
lea r8, [rsp + 0x68]
mov rdx, qword [r14 + 0x18]
lea rcx, [rbp + 0x10]
call fcn.180238280
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, [0x1803cd4c0]
lea rcx, [rbp - 0x30]
call fcn.180005cd0
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.180372370
test al, al
je 0x180009b2b
mov ecx, 0xe8
call fcn.180393f74
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 0x180009a9c
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
call fcn.180005cd0
lea rax, [rbp + 0x10]
cmp rbx, rax
je 0x180009abf
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rcx, rbx
call fcn.180005cd0
mov dword [rdi + 0x4c], r13d
lea rax, [rbp - 0x30]
cmp r15, rax
je 0x180009ae6
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, r15
call fcn.180005cd0
mov qword [rdi + 0xe0], rsi
lea rax, [0x1803c11f8]
lea rcx, [0x1803c1208]
cmp byte [rdi + 0x48], 0
cmovne rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [0x1803e3538]
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 0x180009b6a
mov ecx, 0x558
call fcn.180393f74
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.180227270
nop
test rax, rax
lea rdi, [rax + 0x4e8]
jne 0x180009b6a
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180009bb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009bad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009bad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
test rdi, rdi
je 0x180009be3
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.18000a0d0
mov ecx, dword [r14 + 0x28]
sub ecx, 0x11ce
je 0x180009d82
sub ecx, 0x8abe
je 0x180009caf
cmp ecx, 1
jne 0x180009e4e
test rdi, rdi
je 0x180009ca8
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180217550
cmp rax, 1
jne 0x180009ca3
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.180217740
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.180005810
nop
lea rcx, [rbp + 0x50]
call fcn.180005c50
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.18036e920
nop
lea rcx, [rbp - 0x50]
call fcn.180005c50
mov rdi, qword [rsp + 0x50]
jmp 0x180009e4e
mov rdi, qword [rsp + 0x50]
xor bl, bl
jmp 0x180009e50
test rdi, rdi
je 0x180009ca8
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180217550
cmp rax, 1
jne 0x180009ca3
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.180217740
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.180005810
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x180009d3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009d3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009d3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
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.18036ee40
nop
lea rcx, [rbp - 0x50]
call fcn.180005c50
mov rdi, qword [rsp + 0x50]
jmp 0x180009e4e
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180009d9b
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rdx, [rbp - 0x80]
call fcn.180202e40
mov rbx, rax
xor r15b, r15b
test rax, rax
je 0x180009dd0
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r8, rbx
mov dl, 1
call fcn.180202b00
movzx r15d, al
test al, al
jne 0x180009dd9
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 0x180009dfc
mov rax, qword [rax]
mov rcx, rsi
call qword [rax]
nop
test rsi, rsi
je 0x180009e4e
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 0x180009e25
test r15b, r15b
je 0x180009e43
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 0x180009e50
mov bl, 1
lea rcx, [rbp - 0x80]
call fcn.180005b60
nop
mov qword [rsp + 0x40], r12
test rdi, rdi
je 0x180009e76
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov qword [rsp + 0x50], r13
lea rcx, [rbp + 0x10]
call fcn.180005c50
nop
lea rcx, [rbp + 0x30]
call fcn.180005c50
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180009edc
mov rdx, qword [rsp + 0x70]
call fcn.18000a260
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.18000a080
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea rcx, [rbp - 0x10]
call fcn.180005c50
nop
lea rcx, [rbp + 0x70]
call fcn.180005c50
nop
lea rcx, [rbp + 0x90]
call fcn.180005c50
movzx eax, bl
jmp 0x180009f03
xor al, al
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180393f50
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