Function at 0x1800155e0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, rcx
xor r12d, r12d
mov edx, 0x9cdc
lea rcx, [rbp + 8]
call fcn.180007370
nop
mov rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x20]
mov rax, r8
sub rax, rdx
cmp rax, 4
jb 0x180015675
lea rdi, [rdx + 4]
mov qword [rbp + 0x18], rdi
lea rbx, [rbp + 8]
cmp r8, 8
cmovae rbx, qword [rbp + 8]
lea rcx, [rbx + rdx*2]
lea r8d, [r12 + 8]
lea rdx, str..txt
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180015693
mov qword [rsp + 0x20], 4
lea r9, str..txt
mov edx, 4
lea rcx, [rbp + 8]
call fcn.18000ffe0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x28], xmm1
mov word [rbp - 0x38], r12w
movdqu xmmword [rbp - 8], xmm0
movdqu xmmword [rbp - 8], xmm1
mov word [rbp - 0x18], r12w
mov edx, 0x9cdd
lea rcx, [rbp - 0x58]
call fcn.180007370
nop
cmp qword [rax + 0x18], 8
jb 0x1800156d5
mov rax, qword [rax]
mov r8, rax
lea rdx, str._s_.txt_.txt
lea rcx, [rbp - 0x18]
call fcn.180017d10
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x18001572c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
lea r9, [rbp - 0x18]
cmp qword [rbp], 8
cmovae r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x20]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp - 8]
cmp rdx, rax
ja 0x18001578f
lea rdi, [rdx + rcx]
mov qword [rbp - 0x28], rdi
lea rbx, [rbp - 0x38]
cmp r8, 8
cmovae rbx, qword [rbp - 0x38]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x18001579d
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x38]
call fcn.18000ffe0
mov edx, 0x9cd2
lea rcx, [rbp - 0x58]
call fcn.180007370
nop
cmp qword [rax + 0x18], 8
jb 0x1800157b6
mov rax, qword [rax]
lea r9, [0x180026af8]
mov qword [rsp + 0x20], r9
mov r8, rax
lea rdx, str._s__s__s
lea rcx, [rbp - 0x18]
call fcn.180017d10
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180015819
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015814
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015814
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
lea r9, [rbp - 0x18]
mov rsi, qword [rbp - 0x18]
mov r15, qword [rbp]
cmp r15, 8
cmovae r9, rsi
mov rcx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x20]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp - 8]
cmp rdx, rax
ja 0x180015882
lea rdi, [rdx + rcx]
mov qword [rbp - 0x28], rdi
lea rbx, [rbp - 0x38]
cmp r8, 8
cmovae rbx, qword [rbp - 0x38]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180015898
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x38]
call fcn.18000ffe0
mov r15, qword [rbp]
mov rsi, qword [rbp - 0x18]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800158d0
lea rcx, [rbp - 0x78]
call fcn.180005a20
nop
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x90], xmm1
mov word [rbp + 0x80], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x180015916
mov r8, rbx
lea rcx, [rbp + 0x80]
call fcn.180005a20
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x70], xmm1
mov word [rbp + 0x60], r12w
mov r8d, 4
lea rdx, str..txt
lea rcx, [rbp + 0x60]
call fcn.180005a20
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rdx, [r14 + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.1800057e0
nop
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x60]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.180007040
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x1800159e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800159e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800159e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x180015a41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015a3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], r12w
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180015a9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015a97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
mov edx, 0x9cde
lea rcx, [rbp - 0x58]
call fcn.180007370
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x180015ad1
mov r8, qword [rcx]
mov rdx, rax
call qword [r8 + 8]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180015b14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015b0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015b0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x180015b3e
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x50]
mov rdi, qword [r14 + 8]
test rcx, rcx
je 0x180015f8c
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
call qword [rax + 0x18]
nop
mov rbx, qword [rax + 0x10]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180015b9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
test rbx, rbx
jne 0x180015c2b
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.1800057e0
nop
cmp qword [rbp - 0x68], rbx
je 0x180015bd7
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180015c1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015c15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015c15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x30]
cmp rax, 1
jne 0x180015f8c
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp + 0xa0]
call qword [rax + 0x38]
nop
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0xb0]
lea rcx, [rbp + 0x30]
call fcn.180005a20
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x180015cc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015cc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015cc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r12w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x28]
call fcn.180007320
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x180015d38
lea rcx, [rbp - 0x78]
call fcn.1800059b0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180015d7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015d76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015d76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
cmp qword [r14 + 0x88], 0
je 0x180015f37
mov rdx, qword [r14 + 0x80]
test rdx, rdx
je 0x180015f37
add rdx, 8
lea rcx, [rbp - 0x58]
call fcn.1800057e0
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180015ee2
lea rcx, [rbp + 0xc0]
call fcn.180018720
nop
cmp qword [rax + 0x18], 8
jb 0x180015dfd
mov rax, qword [rax]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov r9, rax
mov edx, 0x9cdf
lea rcx, [rbp + 0xe0]
call fcn.1800074d0
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 8
jb 0x180015e69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015e64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015e64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], r12w
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x180015eca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015ec5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015ec5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0xf0], xmm0
mov word [rbp + 0xe0], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x180015f25
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015f20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015f20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180015f7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015f75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015f75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
lea rax, vtable.RC::RCFileDialog.0
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x180015fae
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp + 0x50], r12
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x180015ff1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015fec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015fec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r12w
cmp r15, 8
jb 0x180016041
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180016039
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016039
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x180016096
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016091
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016091
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x1800160eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800160e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800160e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180021994
movdqa xmm0, xmmword [0x180027aa0]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r12w
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.180021550
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret