Function at 0x1402ac584
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r13, qword [rbp + 0xc0]
mov eax, dword [rdx + 0x80]
xor r12d, r12d
test eax, eax
je 0x1402accff
shl eax, 0xa
mov r14d, eax
mov rcx, rbx
call fcn.1402b4cd0
mov r15, rax
cmp r14, rax
jae 0x1402ac6f9
mov dword [r13 + 0x68], 0x8007000d
mov byte [r13 + 0x40], 0xfe
lea r8, [0x1403f55d0]
lea rdx, [0x1404fccc8]
lea rcx, [rbp - 0x38]
call fcn.1400b9f70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400f0a08
lea rcx, [r13 + 0x48]
mov rdx, rax
call fcn.14008aed0
lea rcx, [rbp - 0x18]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x38]
call fcn.14007a7c0
mov rcx, rbx
call fcn.14025da28
mov r12d, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1402acd08
mov dword [rsp + 0x64], r12d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x60], r14
cmp qword [rbx + 0x18], 8
jb 0x1402ac674
mov rbx, qword [rbx]
mov qword [rbp - 0x78], rbx
cmp qword [rsi + 0x18], 8
jb 0x1402ac682
mov rsi, qword [rsi]
mov qword [rsp + 0x68], rsi
cmp qword [rdi + 0x18], 8
jb 0x1402ac691
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
lea rcx, str.Too_big_output_original_file
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140453422]
mov rcx, rax
call fcn.140011ce0
jmp 0x1402acd08
test r15, r15
je 0x1402acc62
cmp byte [rdi + 0x89], r12b
je 0x1402acc62
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r12w
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14025389c
lea r8, str..orig.
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x48]
call fcn.1400b9f70
nop
lea r8, [rbp - 0x38]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400f0a08
nop
lea rcx, [rbp + 0x48]
call fcn.14007a7c0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402ac785
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ac8c0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov dword [r13 + 0x68], eax
mov byte [r13 + 0x40], 0xfe
lea r8, [0x1403f55d0]
lea rdx, [0x1404fcbc8]
lea rcx, [rbp + 0x28]
call fcn.1400b9f70
nop
lea r8, [rbp - 0x58]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400f0a08
lea rcx, [r13 + 0x48]
mov rdx, rax
call fcn.14008aed0
lea rcx, [rbp + 8]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x28]
call fcn.14007a7c0
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 3
jbe 0x1402acc1b
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], r14
cmp qword [rbx + 0x18], 8
jb 0x1402ac825
mov rbx, qword [rbx]
mov qword [rsp + 0x68], rbx
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov qword [rbp - 0x78], rax
cmp qword [rsi + 0x18], 8
jb 0x1402ac846
mov rsi, qword [rsi]
mov qword [rbp - 0x60], rsi
cmp qword [rdi + 0x18], 8
jb 0x1402ac854
mov rdi, qword [rdi]
mov qword [rbp - 0x80], rdi
lea rax, str.Failed_to_create_the_temporary_file
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [0x1404533b6]
call fcn.140011b30
jmp 0x1402acc1b
mov r8, r14
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.1402b44b8
mov r12d, eax
mov dword [rbp - 0x80], eax
test eax, eax
jns 0x1402acafc
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402ac8ea
mov rdx, qword [rbx]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ac9f8
mov rcx, rbx
call fcn.14025da28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x64], eax
call fcn.140091ae4
mov r8, rax
cmp dword [rax], 3
jbe 0x1402aca01
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x64], eax
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x78], r14
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402ac956
mov rcx, qword [rbx]
mov qword [rsp + 0x70], rcx
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x68], rax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1402ac97b
mov rax, qword [rsi]
mov qword [rbp - 0x78], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402ac98c
mov rax, qword [rdi]
mov qword [rbp - 0x60], rax
lea rax, str.Failed_to_copy_original_file_to_target_file_after_failure_in_conversion_to_UTF8
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [0x1404532d5]
mov rcx, r8
call fcn.140011b30
jmp 0x1402aca01
lea rcx, [rbp - 0x58]
call fcn.14025da28
mov dword [r13 + 0x68], r12d
mov byte [r13 + 0x40], 0xfe
lea r8, [0x1403f55d0]
lea r12, [0x1404fcbe8]
mov rdx, r12
lea rcx, [rbp + 8]
call fcn.1400b9f70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1400f0a08
lea rcx, [r13 + 0x48]
mov rdx, rax
call fcn.14008aed0
lea rcx, [rbp + 0x28]
call fcn.14007a7c0
nop
lea rcx, [rbp + 8]
call fcn.14007a7c0
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 3
jbe 0x1402acc1b
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], r14
cmp qword [rbx + 0x18], 8
jb 0x1402aca7c
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp qword [rsi + 0x18], 8
jb 0x1402aca8b
mov rsi, qword [rsi]
mov qword [rsp + 0x70], rsi
cmp qword [rdi + 0x18], 8
jb 0x1402aca9a
mov rdi, qword [rdi]
cmp qword [0x1404fcc00], 8
cmovae r12, qword [0x1404fcbe8]
mov qword [rbp - 0x78], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045334a]
jmp 0x1402acc10
mov rcx, rbx
call fcn.1402b4cd0
mov r15, rax
lea rcx, [rbp - 0x58]
call fcn.14025da28
cmp r14, r15
jae 0x1402acc3d
mov dword [r13 + 0x68], 0x8007000d
mov byte [r13 + 0x40], 0xfe
lea r8, [0x1403f55d0]
lea rdx, [0x1404fccc8]
lea rcx, [rbp + 8]
call fcn.1400b9f70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1400f0a08
lea rcx, [r13 + 0x48]
mov rdx, rax
call fcn.14008aed0
lea rcx, [rbp + 0x28]
call fcn.14007a7c0
nop
lea rcx, [rbp + 8]
call fcn.14007a7c0
mov rcx, rbx
call fcn.14025da28
mov r12d, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1402acc1b
mov dword [rbp - 0x80], r12d
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], r14
cmp qword [rbx + 0x18], 8
jb 0x1402acb9b
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp qword [rsi + 0x18], 8
jb 0x1402acbaa
mov rsi, qword [rsi]
mov qword [rsp + 0x70], rsi
cmp qword [rdi + 0x18], 8
jb 0x1402acbb9
mov rdi, qword [rdi]
lea rcx, str.Too_big_converted_output_file
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140453422]
mov rcx, rax
mov qword [rsp + 0x68], rdi
call fcn.140011ce0
nop
lea rcx, [rbp - 0x58]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x38]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x18]
call fcn.14007a7c0
jmp 0x1402acd08
lea rcx, [rbp - 0x58]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x38]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x18]
call fcn.14007a7c0
xor r12d, r12d
jmp 0x1402accff
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1402accff
mov cl, byte [rdi + 0x89]
mov byte [rsp + 0x60], cl
mov qword [rbp - 0x68], r15
cmp qword [rbx + 0x18], 8
jb 0x1402acc88
mov rbx, qword [rbx]
mov qword [rbp - 0x70], rbx
cmp qword [rsi + 0x18], 8
jb 0x1402acc96
mov rsi, qword [rsi]
mov qword [rsp + 0x78], rsi
cmp qword [rdi + 0x18], 8
jb 0x1402acca5
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
lea rcx, str.Skipped_file_conversion
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045348b]
mov rcx, rax
call fcn.14000265c
mov byte [r13 + 0x40], 3
mov dword [r13 + 0x68], r12d
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret