Function at 0x14000cd38
Capabilities:
Copy file
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b8]
sub rsp, 0x6b8
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor ebx, ebx
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rbx
mov r15d, ebx
mov r13, r8
mov qword [rsp + 0x60], rdx
mov r14, rdx
mov r12, rcx
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x14000cdb4
test byte [rcx + 0x1c], 4
je 0x14000cdb4
cmp byte [rcx + 0x19], 5
jb 0x14000cdb4
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x7d]
lea r8, [0x140082420]
call fcn.140001024
cmp dword [rbp + 0x620], ebx
jne 0x14000cdc6
mov eax, 0x57
jmp 0x14000cfe7
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r12
call fcn.140065c60
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14000ce3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cfe5
test byte [rcx + 0x1c], 4
je 0x14000cfe5
cmp byte [rcx + 0x19], 2
jb 0x14000cfe5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x7e
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.1400012fc
jmp 0x14000cfe5
lea r9, [rbp + 0x390]
xor r8d, r8d
call fcn.140009d30
mov ebx, eax
test eax, eax
je 0x14000cf2b
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000ce86
test byte [rcx + 0x1c], 4
je 0x14000ce86
cmp byte [rcx + 0x19], 2
jb 0x14000ce86
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x7f
mov r9d, eax
call fcn.140001048
mov r13, qword [rsp + 0x48]
lea r12, str.___t_
mov ecx, r15d
test ebx, ebx
je 0x14000cfc9
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14000cfce
mov r14, qword [rsp + 0x58]
mov rsi, rdi
sub rsi, r14
lea edi, [r15 - 1]
cmp r15d, dword [rbp + 0x620]
cmovne edi, ecx
inc edi
mov r8, qword [r14 + rsi]
test r8, r8
je 0x14000d48a
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
call fcn.14000875c
test eax, eax
je 0x14000d3e0
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d48a
test byte [rcx + 0x1c], 4
je 0x14000d48a
cmp byte [rcx + 0x19], 3
jb 0x14000d48a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8b
mov r9d, eax
call fcn.140001048
jmp 0x14000d48a
mov ecx, dword [rbp + 0x620]
mov eax, 8
mul rcx
mov rdi, rax
test rdx, rdx
je 0x14000cf7e
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cf74
test byte [rcx + 0x1c], 4
je 0x14000cf74
cmp byte [rcx + 0x19], 2
jb 0x14000cf74
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x80
mov r9d, 0x80070216
call fcn.140001048
mov ebx, 0x216
jmp 0x14000ce86
mov rcx, rdi
call fcn.140063430
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x14000d00a
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cfc4
test byte [rcx + 0x1c], 4
je 0x14000cfc4
cmp byte [rcx + 0x19], 2
jb 0x14000cfc4
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x79]
mov r9d, edi
lea r8, [0x140082420]
call fcn.140001048
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp r13, 0xffffffffffffffff
je 0x14000cfdd
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400634d4
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x6b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rcx, qword [r13]
call fcn.14006409c
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x14000d071
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d063
test byte [rcx + 0x1c], 4
je 0x14000d063
cmp byte [rcx + 0x19], 2
jb 0x14000d063
mov r9, qword [r13]
lea edx, [rbx + 0x7a]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
call fcn.1400011dc
mov r13, qword [rsp + 0x48]
xor eax, eax
mov ecx, eax
jmp 0x14000ce9d
mov dword [rsp + 0x40], ecx
cmp dword [rbp + 0x620], ecx
jbe 0x14000d17c
mov r14, qword [rsp + 0x58]
mov r15, rbx
sub r15, r14
mov edx, 0x3b
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000d0a7
mov word [rax], bx
call fcn.14004d2cc
mov qword [r15 + r14], rax
test rax, rax
je 0x14000d2d3
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
mov r8, rax
call fcn.14000875c
mov ebx, eax
test eax, eax
jne 0x14000d2ad
lea rax, [rbp + 0x180]
mov edx, 0x104
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x140081e40]
lea rcx, [rsp + 0x70]
call fcn.1400029e8
mov r9d, eax
test eax, eax
js 0x14000d256
lea r8d, [rbx + 1]
mov rcx, r12
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000d219
mov r8, rsi
lea rcx, [rsp + 0x70]
mov rdx, r13
call fcn.1400058f8
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x14000d1e4
lea rsi, [rdi + 2]
test rdi, rdi
jne 0x14000d14a
mov esi, ecx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rsp + 0x40]
add r14, 8
inc ebx
mov dword [rsp + 0x40], ebx
cmp ebx, dword [rbp + 0x620]
jb 0x14000d08c
mov r14, qword [rsp + 0x60]
mov r15d, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000d321
mov rax, qword [str.___t_]
lea rsi, str.___t_
cmp rax, rsi
je 0x14000d328
test byte [rax + 0x1c], 4
je 0x14000d328
cmp byte [rax + 0x19], 3
jb 0x14000d328
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082420]
mov r9d, eax
mov edx, 0x88
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x14000d328
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d312
test byte [rcx + 0x1c], 4
je 0x14000d312
cmp byte [rcx + 0x19], 2
jb 0x14000d312
mov edx, 0x87
jmp 0x14000d2ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d312
test byte [rcx + 0x1c], 4
je 0x14000d312
cmp byte [rcx + 0x19], 2
jb 0x14000d312
mov edx, 0x86
jmp 0x14000d2ff
mov ecx, r9d
movzx eax, r9w
and ecx, 0x1fff0000
mov ebx, r9d
cmp ecx, 0x70000
cmove ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d312
test byte [rcx + 0x1c], 4
je 0x14000d312
cmp byte [rcx + 0x19], 2
jb 0x14000d312
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x85
call fcn.140001048
jmp 0x14000d312
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d312
test byte [rcx + 0x1c], 4
je 0x14000d312
cmp byte [rcx + 0x19], 2
jb 0x14000d312
mov edx, 0x84
jmp 0x14000d2ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d312
test byte [rcx + 0x1c], 4
je 0x14000d312
cmp byte [rcx + 0x19], 2
jb 0x14000d312
mov edx, 0x83
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov r9d, eax
call fcn.140001048
mov r15d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x14000ce92
lea rsi, str.___t_
mov rcx, r12
or r13, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d386
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000ce8b
test byte [rcx + 0x1c], 4
je 0x14000ce8b
cmp byte [rcx + 0x19], 2
jb 0x14000ce8b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x89
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.1400012fc
jmp 0x14000ce8b
mov r9d, dword [rbp + 0x620]
mov rdx, rbx
mov r8, qword [rsp + 0x58]
mov rcx, r14
call fcn.140054ccc
mov ebx, eax
test eax, eax
je 0x14000ce8b
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000d3d7
test byte [rcx + 0x1c], 4
je 0x14000d3d7
cmp byte [rcx + 0x19], 3
jb 0x14000d3d7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8a
mov r9d, eax
call fcn.140001048
xor ecx, ecx
mov ebx, ecx
jmp 0x14000ce8b
lea rax, [rbp + 0x180]
mov edx, 0x104
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x140081e40]
lea rcx, [rsp + 0x70]
call fcn.1400029e8
test eax, eax
jns 0x14000d43f
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d48a
test byte [rcx + 0x1c], 4
je 0x14000d48a
cmp byte [rcx + 0x19], 3
jb 0x14000d48a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8c
mov r9d, eax
call fcn.140001048
jmp 0x14000d48a
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d48a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d48a
test byte [rcx + 0x1c], 4
je 0x14000d48a
cmp byte [rcx + 0x19], 3
jb 0x14000d48a
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0x8d
mov dword [rsp + 0x20], eax
lea r8, [0x140082420]
call fcn.1400012fc
add r14, 8
sub rdi, 1
jne 0x14000cec6
jmp 0x14000cfc9