Function at 0x140038ef8
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 0x14003914d
lea r14d, [rsi + 2]
lea rax, [rdx + 2]
lea rcx, [0x1400fea78]
mov r8d, ebp
cmp word [rax], 0x2d
cmove rdx, rax
mov qword [rsp + 0x118], rdx
lea rdx, [rsp + 0x118]
call fcn.14005f144
cmp al, dil
jne 0x140039148
lea rdx, [rsp + 0x118]
lea rcx, str._simpleprogress
mov r8d, 0xf
call fcn.14005f144
cmp al, dil
je 0x140038fb3
mov esi, pe_nt_image_headers64
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, str._progress
mov r8d, 9
call fcn.14005f144
cmp al, dil
je 0x140038fda
mov si, di
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102af0]
mov r8d, 5
call fcn.14005f144
cmp al, dil
je 0x140039001
mov r13b, bpl
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102aec]
mov r8d, 2
call fcn.14005f144
cmp al, dil
je 0x14003902d
mov byte [rsp + 0x128], bpl
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102ae4]
mov r8d, r14d
call fcn.14005f144
cmp al, dil
je 0x140039055
mov dword [rsp + 0x120], ebp
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102ae0]
mov r8d, r12d
call fcn.14005f144
cmp al, dil
je 0x14003907c
mov r15b, 0x10
or r13b, r15b
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102adc]
mov r8d, 2
call fcn.14005f144
cmp al, dil
je 0x1400390a5
mov byte [rsp + 0x40], 0x10
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, str._delme
mov r8d, r14d
call fcn.14005f144
cmp al, dil
je 0x1400390c5
mov bl, 0x10
jmp 0x140039136
lea rdx, [rsp + 0x118]
lea rcx, [0x140102ad0]
mov r8d, r12d
call fcn.14005f144
cmp al, dil
je 0x1400390eb
mov r13b, 2
mov byte [rsp + 0x42], r13b
jmp 0x140039136
mov rcx, qword [rsp + 0x118]
movzx eax, word [rcx]
cmp ax, di
je 0x140039129
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x14003910f
cmp ax, 0xd
jbe 0x140039129
cmp r8w, ax
je 0x140039129
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, di
jne 0x140039104
lea rcx, [rsp + 0x118]
call fcn.140015d64
mov rdx, qword [rsp + 0x118]
cmp word [rdx], 0x2d
je 0x140038f56
mov byte [rsp + 0x41], r15b
lea rcx, [rsp + 0x118]
call fcn.140015d64
cmp bl, dil
je 0x1400391ac
lea rdx, str.23:INDATA
lea rcx, [rsp + 0x128]
call fcn.1400671f0
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x128]
call fcn.14005caa8
mov rdx, qword [rsp + 0x128]
lea rcx, [0x14011c020]
call fcn.14003097c
lea rcx, [rsp + 0x128]
mov rbx, rax
jmp 0x1400397c2
mov rcx, qword [rsp + 0x118]
cmp word [rcx], di
jne 0x1400391c5
mov rax, 0xffffffff80070057
jmp 0x1400397ca
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.14005c9e0
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x88]
movsxd r11, ebx
add r11, r11
mov r8, r11
call fcn.14001bd80
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.1400e16a0
lea rcx, [rsp + 0x118]
call fcn.140015d64
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.14005c96c
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
call fcn.14005c96c
lea rcx, [rsp + 0x90]
mov edx, 0xa
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
lea r14, [rsp + 0x90]
call fcn.14005ca6c
lea rcx, [rsp + 0xa8]
mov edx, 0xa
call fcn.14005ca6c
movzx r11d, word [rbx]
cmp r11w, di
je 0x14003940f
mov al, byte [rsp + 0x128]
mov r15d, 0x20
cmp al, dil
je 0x140039341
cmp r11w, 0x3b
jne 0x140039341
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0x48], rbx
cmp word [rsi], di
je 0x140039318
cmp r12b, dil
jne 0x14003930a
mov r8b, 1
cmp r13b, dil
jne 0x14003930d
mov r8b, dil
mov rdx, rsi
mov rcx, r14
call fcn.14001fad0
lea rcx, [rsp + 0x48]
call fcn.140015d64
mov rbx, qword [rsp + 0x48]
mov al, byte [rsp + 0x128]
mov rsi, rbx
cmp r12b, dil
je 0x1400393f8
inc ebp
jmp 0x1400393f8
cmp r11w, 0x3e
jne 0x1400393f8
cmp word [rbx - 2], 0x3d
jne 0x14003935d
mov dword [rsp + 0x58], 2
jmp 0x140039381
cmp word [rbx - 2], 0x2d
jne 0x14003936e
mov dword [rsp + 0x58], 1
jmp 0x140039381
cmp word [rbx + 2], 0x3e
jne 0x140039381
add rbx, 2
mov dword [rsp + 0x58], 4
lea rax, [rbx - 4]
cmp rax, rsi
jb 0x1400393ac
mov ecx, 9
cmp cx, word [rax]
ja 0x14003939a
cmp word [rax], 0xd
jbe 0x1400393a0
cmp r15w, word [rax]
jne 0x1400393ac
mov word [rax], di
sub rax, 2
cmp rax, rsi
jae 0x14003938f
mov word [rbx - 2], di
mov word [rbx], di
lea rcx, [rsp + 0x48]
add rbx, 2
mov qword [rsp + 0x48], rbx
call fcn.140015d64
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x68], rbx
cmp word [rsi], di
je 0x1400393e3
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001fad0
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 0x1400392e0
mov r15b, byte [rsp + 0x41]
cmp word [rsi], di
je 0x140039430
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001fad0
mov esi, 1
cmp r12b, dil
je 0x140039435
add ebp, esi
jmp 0x140039435
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 0x1400394b5
cmp r11d, 3
jne 0x1400394b5
movsx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call fcn.14001fbc8
mov rbx, rax
jmp 0x1400397a0
cmp r13b, dil
je 0x1400396fb
cmp byte [rsp + 0x42], dil
je 0x1400394e9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, esi
je 0x1400394e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
mov rbx, rdi
jmp 0x1400397a0
cmp r11d, 3
jne 0x140039629
cmp r15b, dil
je 0x140039619
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.1400037d4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x140039578
cmp eax, 2
jne 0x140039600
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x14003956e
cmp rcx, 0xffffffffffffffff
je 0x14003956e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 2
jmp 0x1400397a0
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140039591
cmp rcx, 0xffffffffffffffff
je 0x140039591
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.1400037d4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x140039600
cmp eax, 2
jne 0x140039600
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x1400394e1
cmp rcx, 0xffffffffffffffff
je 0x1400394e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400394e1
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140039619
cmp rcx, 0xffffffffffffffff
je 0x140039619
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400394d0
cmp r11d, 2
jne 0x1400396e1
cmp r15b, dil
je 0x1400396c9
lea rdx, str.__dd__bs8M__
lea rcx, [rsp + 0x128]
call fcn.1400671f0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x128]
call fcn.14005caa8
lea rdx, str.__0__
lea rcx, [rsp + 0x128]
call fcn.14005caa8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x128]
call fcn.14005caa8
lea rdx, [0x1400fd7b4]
lea rcx, [rsp + 0x128]
call fcn.14005caa8
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x110]
xor r8d, r8d
call fcn.1400983b8
lea rcx, [rsp + 0x128]
mov rbx, rax
call fcn.140054c44
jmp 0x1400397a0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1400394d0
cmp r11d, esi
jne 0x1400396fb
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1400394d0
cmp r11d, 4
jne 0x140039788
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400671f0
mov rcx, qword [rsp + 0x48]
call fcn.140059ae4
cmp rax, rdi
jne 0x14003972a
mov rax, qword [rsp + 0x48]
jmp 0x14003972e
add rax, 2
mov word [rax], di
mov rcx, qword [rsp + 0x68]
call fcn.140059ae4
cmp rax, rdi
jne 0x140039747
mov rax, qword [rsp + 0x68]
jmp 0x14003974b
add rax, 2
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14005caa8
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, esi
je 0x140039779
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.140054c44
jmp 0x1400394e1
cmp ebp, 2
jl 0x140039792
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.140054c44
lea rcx, [rsp + 0x90]
call fcn.140054c44
lea rcx, [rsp + 0x88]
call fcn.140054c44
mov rax, rbx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret