Function at 0x1400385ec
Capabilities:
Copy file
Delete directory
Delete file
Move file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
xor edi, edi
cmp word [rdx], 0x2d
mov esi, 4
lea ebp, [rsi - 3]
lea r12d, [rsi - 1]
mov r13b, dil
mov byte [rsp + 0x128], dil
mov byte [rsp + 0x40], dil
mov bl, dil
mov byte [rsp + 0x42], dil
mov r15b, dil
mov byte [rsp + 0x41], dil
jne 0x140038841
lea r14d, [rsi + 2]
lea rax, [rdx + 2]
lea rcx, [0x1400fd930]
mov r8d, ebp
cmp word [rax], 0x2d
cmove rdx, rax
mov qword [rsp + 0x118], rdx
lea rdx, [rsp + 0x118]
call fcn.14005e70c
cmp al, dil
jne 0x14003883c
lea rdx, [rsp + 0x118]
lea rcx, str._simpleprogress
mov r8d, 0xf
call fcn.14005e70c
cmp al, dil
je 0x1400386a7
mov esi, 0x100
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, str._progress
mov r8d, 9
call fcn.14005e70c
cmp al, dil
je 0x1400386ce
mov si, di
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x1401018a0]
mov r8d, 5
call fcn.14005e70c
cmp al, dil
je 0x1400386f5
mov r13b, bpl
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x14010189c]
mov r8d, 2
call fcn.14005e70c
cmp al, dil
je 0x140038721
mov byte [rsp + 0x128], bpl
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x140101894]
mov r8d, r14d
call fcn.14005e70c
cmp al, dil
je 0x140038749
mov dword [rsp + 0x120], ebp
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x140101890]
mov r8d, r12d
call fcn.14005e70c
cmp al, dil
je 0x140038770
mov r15b, 0x10
or r13b, r15b
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x14010188c]
mov r8d, 2
call fcn.14005e70c
cmp al, dil
je 0x140038799
mov byte [rsp + 0x40], 0x10
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, str._delme
mov r8d, r14d
call fcn.14005e70c
cmp al, dil
je 0x1400387b9
mov bl, 0x10
jmp 0x14003882a
lea rdx, [rsp + 0x118]
lea rcx, [0x140101880]
mov r8d, r12d
call fcn.14005e70c
cmp al, dil
je 0x1400387df
mov r13b, 2
mov byte [rsp + 0x42], r13b
jmp 0x14003882a
mov rcx, qword [rsp + 0x118]
movzx eax, word [rcx]
cmp ax, di
je 0x14003881d
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x140038803
cmp ax, 0xd
jbe 0x14003881d
cmp r8w, ax
je 0x14003881d
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, di
jne 0x1400387f8
lea rcx, [rsp + 0x118]
call fcn.140015848
mov rdx, qword [rsp + 0x118]
cmp word [rdx], 0x2d
je 0x14003864a
mov byte [rsp + 0x41], r15b
lea rcx, [rsp + 0x118]
call fcn.140015848
cmp bl, dil
je 0x1400388a0
lea rdx, str.23:INDATA
lea rcx, [rsp + 0x128]
call fcn.140066ba4
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x128]
call fcn.14005c040
mov rdx, qword [rsp + 0x128]
lea rcx, [0x14011afa0]
call fcn.1400302a0
lea rcx, [rsp + 0x128]
mov rbx, rax
jmp 0x140038eb6
mov rcx, qword [rsp + 0x118]
cmp word [rcx], di
jne 0x1400388b9
mov rax, 0xffffffff80070057
jmp 0x140038ebe
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rbp + rax]
lea ecx, [rbx + rbx + 4]
movsxd rdx, ecx
lea rcx, [rsp + 0x88]
call fcn.14005bf78
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x88]
movsxd r11, ebx
add r11, r11
mov r8, r11
call fcn.14001b870
mov rcx, qword [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x118], rcx
mov word [r11 + rcx], di
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x50], rdi
call fcn.1400dfee0
lea rcx, [rsp + 0x118]
call fcn.140015848
mov rbx, qword [rsp + 0x118]
mov eax, 0x610
or si, ax
mov dword [rsp + 0x58], r12d
lea rcx, [rsp + 0x90]
mov word [rsp + 0x70], si
mov qword [rsp + 0x60], rbx
mov ebp, edi
mov rsi, rbx
mov r12b, dil
call fcn.14005bf04
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
call fcn.14005bf04
lea rcx, [rsp + 0x90]
mov edx, 0xa
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
lea r14, [rsp + 0x90]
call fcn.14005c004
lea rcx, [rsp + 0xa8]
mov edx, 0xa
call fcn.14005c004
movzx r11d, word [rbx]
cmp r11w, di
je 0x140038b03
mov al, byte [rsp + 0x128]
mov r15d, 0x20
cmp al, dil
je 0x140038a35
cmp r11w, 0x3b
jne 0x140038a35
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0x48], rbx
cmp word [rsi], di
je 0x140038a0c
cmp r12b, dil
jne 0x1400389fe
mov r8b, 1
cmp r13b, dil
jne 0x140038a01
mov r8b, dil
mov rdx, rsi
mov rcx, r14
call fcn.14001f560
lea rcx, [rsp + 0x48]
call fcn.140015848
mov rbx, qword [rsp + 0x48]
mov al, byte [rsp + 0x128]
mov rsi, rbx
cmp r12b, dil
je 0x140038aec
inc ebp
jmp 0x140038aec
cmp r11w, 0x3e
jne 0x140038aec
cmp word [rbx - 2], 0x3d
jne 0x140038a51
mov dword [rsp + 0x58], 2
jmp 0x140038a75
cmp word [rbx - 2], 0x2d
jne 0x140038a62
mov dword [rsp + 0x58], 1
jmp 0x140038a75
cmp word [rbx + 2], 0x3e
jne 0x140038a75
add rbx, 2
mov dword [rsp + 0x58], 4
lea rax, [rbx - 4]
cmp rax, rsi
jb 0x140038aa0
mov ecx, 9
cmp cx, word [rax]
ja 0x140038a8e
cmp word [rax], 0xd
jbe 0x140038a94
cmp r15w, word [rax]
jne 0x140038aa0
mov word [rax], di
sub rax, 2
cmp rax, rsi
jae 0x140038a83
mov word [rbx - 2], di
mov word [rbx], di
lea rcx, [rsp + 0x48]
add rbx, 2
mov qword [rsp + 0x48], rbx
call fcn.140015848
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x68], rbx
cmp word [rsi], di
je 0x140038ad7
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001f560
mov al, byte [rsp + 0x128]
mov rsi, rbx
mov r12b, 1
lea r14, [rsp + 0xa8]
add rbx, 2
mov r11w, word [rbx]
cmp r11w, di
jne 0x1400389d4
mov r15b, byte [rsp + 0x41]
cmp word [rsi], di
je 0x140038b24
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001f560
mov esi, 1
cmp r12b, dil
je 0x140038b29
add ebp, esi
jmp 0x140038b29
mov esi, 1
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
cmp ebp, edi
mov word [rax + rcx*2], di
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xa8]
mov word [rax + rcx*2], di
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
cmovg rax, qword [rsp + 0xa8]
xor ecx, ecx
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11d, dword [rsp + 0x58]
cmp dword [rsp + 0x120], edi
je 0x140038ba9
cmp r11d, 3
jne 0x140038ba9
movsx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call fcn.14001f658
mov rbx, rax
jmp 0x140038e94
cmp r13b, dil
je 0x140038def
cmp byte [rsp + 0x42], dil
je 0x140038bdd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, esi
je 0x140038bd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
mov rbx, rdi
jmp 0x140038e94
cmp r11d, 3
jne 0x140038d1d
cmp r15b, dil
je 0x140038d0d
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r12d, [r11 + 4]
mov ebp, 0x6000080
mov r13d, 0x80000000
lea rcx, [rsp + 0x128]
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], r11d
mov r9d, r12d
mov r8d, r13d
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400037a8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x140038c6c
cmp eax, 2
jne 0x140038cf4
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038c62
cmp rcx, 0xffffffffffffffff
je 0x140038c62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 2
jmp 0x140038e94
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038c85
cmp rcx, 0xffffffffffffffff
je 0x140038c85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x128]
mov r9d, r12d
mov r8d, r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400037a8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x140038cf4
cmp eax, 2
jne 0x140038cf4
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038bd5
cmp rcx, 0xffffffffffffffff
je 0x140038bd5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140038bd5
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038d0d
cmp rcx, 0xffffffffffffffff
je 0x140038d0d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140038bc4
cmp r11d, 2
jne 0x140038dd5
cmp r15b, dil
je 0x140038dbd
lea rdx, str.__dd__bs8M__
lea rcx, [rsp + 0x128]
call fcn.140066ba4
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x128]
call fcn.14005c040
lea rdx, str.__0__
lea rcx, [rsp + 0x128]
call fcn.14005c040
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x128]
call fcn.14005c040
lea rdx, [0x1400fc7e4]
lea rcx, [rsp + 0x128]
call fcn.14005c040
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x110]
xor r8d, r8d
call fcn.1400972ec
lea rcx, [rsp + 0x128]
mov rbx, rax
call fcn.140054110
jmp 0x140038e94
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140038bc4
cmp r11d, esi
jne 0x140038def
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140038bc4
cmp r11d, 4
jne 0x140038e7c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140066ba4
mov rcx, qword [rsp + 0x48]
call fcn.1400591e4
cmp rax, rdi
jne 0x140038e1e
mov rax, qword [rsp + 0x48]
jmp 0x140038e22
add rax, 2
mov word [rax], di
mov rcx, qword [rsp + 0x68]
call fcn.1400591e4
cmp rax, rdi
jne 0x140038e3b
mov rax, qword [rsp + 0x68]
jmp 0x140038e3f
add rax, 2
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14005c040
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, esi
je 0x140038e6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.140054110
jmp 0x140038bd5
cmp ebp, 2
jl 0x140038e86
or word [rsp + 0x70], si
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
movsxd rbx, eax
lea rcx, [rsp + 0xa8]
call fcn.140054110
lea rcx, [rsp + 0x90]
call fcn.140054110
lea rcx, [rsp + 0x88]
call fcn.140054110
mov rax, rbx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret