Function at 0x14000cb1c
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 [0x140096940]
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 0x14000cb98
test byte [rcx + 0x1c], 4
je 0x14000cb98
cmp byte [rcx + 0x19], 5
jb 0x14000cb98
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x7d]
lea r8, [0x140082420]
call fcn.140001010
cmp dword [rbp + 0x620], ebx
jne 0x14000cbaa
mov eax, 0x57
jmp 0x14000cdcb
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r12
call fcn.140064e14
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14000cc21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cdc9
test byte [rcx + 0x1c], 4
je 0x14000cdc9
cmp byte [rcx + 0x19], 2
jb 0x14000cdc9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x7e
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140001250
jmp 0x14000cdc9
lea r9, [rbp + 0x390]
xor r8d, r8d
call fcn.140009bbc
mov ebx, eax
test eax, eax
je 0x14000cd0f
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cc6a
test byte [rcx + 0x1c], 4
je 0x14000cc6a
cmp byte [rcx + 0x19], 2
jb 0x14000cc6a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x7f
mov r9d, eax
call fcn.140001030
mov r13, qword [rsp + 0x48]
lea r12, str.___t_
mov ecx, r15d
test ebx, ebx
je 0x14000cdad
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14000cdb2
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 0x14000d26e
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
call fcn.140008624
test eax, eax
je 0x14000d1c4
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d26e
test byte [rcx + 0x1c], 4
je 0x14000d26e
cmp byte [rcx + 0x19], 3
jb 0x14000d26e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8b
mov r9d, eax
call fcn.140001030
jmp 0x14000d26e
mov ecx, dword [rbp + 0x620]
mov eax, 8
mul rcx
mov rdi, rax
test rdx, rdx
je 0x14000cd62
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cd58
test byte [rcx + 0x1c], 4
je 0x14000cd58
cmp byte [rcx + 0x19], 2
jb 0x14000cd58
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x80
mov r9d, 0x80070216
call fcn.140001030
mov ebx, 0x216
jmp 0x14000cc6a
mov rcx, rdi
call fcn.1400625b0
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x14000cdee
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cda8
test byte [rcx + 0x1c], 4
je 0x14000cda8
cmp byte [rcx + 0x19], 2
jb 0x14000cda8
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x79]
mov r9d, edi
lea r8, [0x140082420]
call fcn.140001030
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp r13, 0xffffffffffffffff
je 0x14000cdc1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14006264c
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400786e0
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.140063214
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x14000ce55
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000ce47
test byte [rcx + 0x1c], 4
je 0x14000ce47
cmp byte [rcx + 0x19], 2
jb 0x14000ce47
mov r9, qword [r13]
lea edx, [rbx + 0x7a]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
call fcn.1400011f0
mov r13, qword [rsp + 0x48]
xor eax, eax
mov ecx, eax
jmp 0x14000cc81
mov dword [rsp + 0x40], ecx
cmp dword [rbp + 0x620], ecx
jbe 0x14000cf60
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 0x14000ce8b
mov word [rax], bx
call fcn.14004c7c0
mov qword [r15 + r14], rax
test rax, rax
je 0x14000d0b7
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
mov r8, rax
call fcn.140008624
mov ebx, eax
test eax, eax
jne 0x14000d091
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.14000292c
mov r9d, eax
test eax, eax
js 0x14000d03a
lea r8d, [rbx + 1]
mov rcx, r12
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000cffd
mov r8, rsi
lea rcx, [rsp + 0x70]
mov rdx, r13
call fcn.140005804
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x14000cfc8
lea rsi, [rdi + 2]
test rdi, rdi
jne 0x14000cf2e
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 0x14000ce70
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 0x14000d105
mov rax, qword [str.___t_]
lea rsi, str.___t_
cmp rax, rsi
je 0x14000d10c
test byte [rax + 0x1c], 4
je 0x14000d10c
cmp byte [rax + 0x19], 3
jb 0x14000d10c
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.140001030
jmp 0x14000d10c
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d0f6
test byte [rcx + 0x1c], 4
je 0x14000d0f6
cmp byte [rcx + 0x19], 2
jb 0x14000d0f6
mov edx, 0x87
jmp 0x14000d0e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d0f6
test byte [rcx + 0x1c], 4
je 0x14000d0f6
cmp byte [rcx + 0x19], 2
jb 0x14000d0f6
mov edx, 0x86
jmp 0x14000d0e3
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 0x14000d0f6
test byte [rcx + 0x1c], 4
je 0x14000d0f6
cmp byte [rcx + 0x19], 2
jb 0x14000d0f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x85
call fcn.140001030
jmp 0x14000d0f6
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d0f6
test byte [rcx + 0x1c], 4
je 0x14000d0f6
cmp byte [rcx + 0x19], 2
jb 0x14000d0f6
mov edx, 0x84
jmp 0x14000d0e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000d0f6
test byte [rcx + 0x1c], 4
je 0x14000d0f6
cmp byte [rcx + 0x19], 2
jb 0x14000d0f6
mov edx, 0x83
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov r9d, eax
call fcn.140001030
mov r15d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x14000cc76
lea rsi, str.___t_
mov rcx, r12
or r13, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d16a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cc6f
test byte [rcx + 0x1c], 4
je 0x14000cc6f
cmp byte [rcx + 0x19], 2
jb 0x14000cc6f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x89
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140001250
jmp 0x14000cc6f
mov r9d, dword [rbp + 0x620]
mov rdx, rbx
mov r8, qword [rsp + 0x58]
mov rcx, r14
call fcn.140053fd8
mov ebx, eax
test eax, eax
je 0x14000cc6f
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000d1bb
test byte [rcx + 0x1c], 4
je 0x14000d1bb
cmp byte [rcx + 0x19], 3
jb 0x14000d1bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8a
mov r9d, eax
call fcn.140001030
xor ecx, ecx
mov ebx, ecx
jmp 0x14000cc6f
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.14000292c
test eax, eax
jns 0x14000d223
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d26e
test byte [rcx + 0x1c], 4
je 0x14000d26e
cmp byte [rcx + 0x19], 3
jb 0x14000d26e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x8c
mov r9d, eax
call fcn.140001030
jmp 0x14000d26e
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d26e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d26e
test byte [rcx + 0x1c], 4
je 0x14000d26e
cmp byte [rcx + 0x19], 3
jb 0x14000d26e
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0x8d
mov dword [rsp + 0x20], eax
lea r8, [0x140082420]
call fcn.140001250
add r14, 8
sub rdi, 1
jne 0x14000ccaa
jmp 0x14000cdad