Function at 0x140038358
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 0x1400385ad
lea r14d, [rsi + 2]
lea rax, [rdx + 2]
lea rcx, [0x1400fc900]
mov r8d, ebp
cmp word [rax], 0x2d
cmove rdx, rax
mov qword [rsp + 0x118], rdx
lea rdx, [rsp + 0x118]
call fcn.14005e44c
cmp al, dil
jne 0x1400385a8
lea rdx, [rsp + 0x118]
lea rcx, str._simpleprogress
mov r8d, 0xf
call fcn.14005e44c
cmp al, dil
je 0x140038413
mov esi, pe_nt_image_headers64
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, str._progress
mov r8d, 9
call fcn.14005e44c
cmp al, dil
je 0x14003843a
mov si, di
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x140100870]
mov r8d, 5
call fcn.14005e44c
cmp al, dil
je 0x140038461
mov r13b, bpl
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x14010086c]
mov r8d, 2
call fcn.14005e44c
cmp al, dil
je 0x14003848d
mov byte [rsp + 0x128], bpl
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x140100864]
mov r8d, r14d
call fcn.14005e44c
cmp al, dil
je 0x1400384b5
mov dword [rsp + 0x120], ebp
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x140100860]
mov r8d, r12d
call fcn.14005e44c
cmp al, dil
je 0x1400384dc
mov r15b, 0x10
or r13b, r15b
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x14010085c]
mov r8d, 2
call fcn.14005e44c
cmp al, dil
je 0x140038505
mov byte [rsp + 0x40], 0x10
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, str._delme
mov r8d, r14d
call fcn.14005e44c
cmp al, dil
je 0x140038525
mov bl, 0x10
jmp 0x140038596
lea rdx, [rsp + 0x118]
lea rcx, [0x140100850]
mov r8d, r12d
call fcn.14005e44c
cmp al, dil
je 0x14003854b
mov r13b, 2
mov byte [rsp + 0x42], r13b
jmp 0x140038596
mov rcx, qword [rsp + 0x118]
movzx eax, word [rcx]
cmp ax, di
je 0x140038589
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x14003856f
cmp ax, 0xd
jbe 0x140038589
cmp r8w, ax
je 0x140038589
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, di
jne 0x140038564
lea rcx, [rsp + 0x118]
call fcn.140015700
mov rdx, qword [rsp + 0x118]
cmp word [rdx], 0x2d
je 0x1400383b6
mov byte [rsp + 0x41], r15b
lea rcx, [rsp + 0x118]
call fcn.140015700
cmp bl, dil
je 0x14003860c
lea rdx, str.23:INDATA
lea rcx, [rsp + 0x128]
call fcn.1400668e8
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x128]
call fcn.14005bdb0
mov rdx, qword [rsp + 0x128]
lea rcx, [0x140119fa0]
call fcn.14003000c
lea rcx, [rsp + 0x128]
mov rbx, rax
jmp 0x140038c22
mov rcx, qword [rsp + 0x118]
cmp word [rcx], di
jne 0x140038625
mov rax, 0xffffffff80070057
jmp 0x140038c2a
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.14005bce8
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x88]
movsxd r11, ebx
add r11, r11
mov r8, r11
call fcn.14001b6e8
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.1400df2a0
lea rcx, [rsp + 0x118]
call fcn.140015700
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.14005bc74
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
call fcn.14005bc74
lea rcx, [rsp + 0x90]
mov edx, 0xa
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
lea r14, [rsp + 0x90]
call fcn.14005bd74
lea rcx, [rsp + 0xa8]
mov edx, 0xa
call fcn.14005bd74
movzx r11d, word [rbx]
cmp r11w, di
je 0x14003886f
mov al, byte [rsp + 0x128]
mov r15d, 0x20
cmp al, dil
je 0x1400387a1
cmp r11w, 0x3b
jne 0x1400387a1
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0x48], rbx
cmp word [rsi], di
je 0x140038778
cmp r12b, dil
jne 0x14003876a
mov r8b, 1
cmp r13b, dil
jne 0x14003876d
mov r8b, dil
mov rdx, rsi
mov rcx, r14
call fcn.14001f320
lea rcx, [rsp + 0x48]
call fcn.140015700
mov rbx, qword [rsp + 0x48]
mov al, byte [rsp + 0x128]
mov rsi, rbx
cmp r12b, dil
je 0x140038858
inc ebp
jmp 0x140038858
cmp r11w, 0x3e
jne 0x140038858
cmp word [rbx - 2], 0x3d
jne 0x1400387bd
mov dword [rsp + 0x58], 2
jmp 0x1400387e1
cmp word [rbx - 2], 0x2d
jne 0x1400387ce
mov dword [rsp + 0x58], 1
jmp 0x1400387e1
cmp word [rbx + 2], 0x3e
jne 0x1400387e1
add rbx, 2
mov dword [rsp + 0x58], 4
lea rax, [rbx - 4]
cmp rax, rsi
jb 0x14003880c
mov ecx, 9
cmp cx, word [rax]
ja 0x1400387fa
cmp word [rax], 0xd
jbe 0x140038800
cmp r15w, word [rax]
jne 0x14003880c
mov word [rax], di
sub rax, 2
cmp rax, rsi
jae 0x1400387ef
mov word [rbx - 2], di
mov word [rbx], di
lea rcx, [rsp + 0x48]
add rbx, 2
mov qword [rsp + 0x48], rbx
call fcn.140015700
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x68], rbx
cmp word [rsi], di
je 0x140038843
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001f320
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 0x140038740
mov r15b, byte [rsp + 0x41]
cmp word [rsi], di
je 0x140038890
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14001f320
mov esi, 1
cmp r12b, dil
je 0x140038895
add ebp, esi
jmp 0x140038895
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 0x140038915
cmp r11d, 3
jne 0x140038915
movsx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call fcn.14001f418
mov rbx, rax
jmp 0x140038c00
cmp r13b, dil
je 0x140038b5b
cmp byte [rsp + 0x42], dil
je 0x140038949
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, esi
je 0x140038941
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
mov rbx, rdi
jmp 0x140038c00
cmp r11d, 3
jne 0x140038a89
cmp r15b, dil
je 0x140038a79
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.1400037b4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x1400389d8
cmp eax, 2
jne 0x140038a60
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x1400389ce
cmp rcx, 0xffffffffffffffff
je 0x1400389ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 2
jmp 0x140038c00
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x1400389f1
cmp rcx, 0xffffffffffffffff
je 0x1400389f1
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.1400037b4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rdi
jne 0x140038a60
cmp eax, 2
jne 0x140038a60
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038941
cmp rcx, 0xffffffffffffffff
je 0x140038941
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140038941
mov rcx, qword [rsp + 0x128]
cmp rcx, rdi
je 0x140038a79
cmp rcx, 0xffffffffffffffff
je 0x140038a79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140038930
cmp r11d, 2
jne 0x140038b41
cmp r15b, dil
je 0x140038b29
lea rdx, str.__dd__bs8M__
lea rcx, [rsp + 0x128]
call fcn.1400668e8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x128]
call fcn.14005bdb0
lea rdx, str.__0__
lea rcx, [rsp + 0x128]
call fcn.14005bdb0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x128]
call fcn.14005bdb0
lea rdx, [0x1400fb7b4]
lea rcx, [rsp + 0x128]
call fcn.14005bdb0
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x110]
xor r8d, r8d
call fcn.140097030
lea rcx, [rsp + 0x128]
mov rbx, rax
call fcn.140053e80
jmp 0x140038c00
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140038930
cmp r11d, esi
jne 0x140038b5b
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140038930
cmp r11d, 4
jne 0x140038be8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400668e8
mov rcx, qword [rsp + 0x48]
call fcn.140058f54
cmp rax, rdi
jne 0x140038b8a
mov rax, qword [rsp + 0x48]
jmp 0x140038b8e
add rax, 2
mov word [rax], di
mov rcx, qword [rsp + 0x68]
call fcn.140058f54
cmp rax, rdi
jne 0x140038ba7
mov rax, qword [rsp + 0x68]
jmp 0x140038bab
add rax, 2
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14005bdb0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, esi
je 0x140038bd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, esi
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.140053e80
jmp 0x140038941
cmp ebp, 2
jl 0x140038bf2
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.140053e80
lea rcx, [rsp + 0x90]
call fcn.140053e80
lea rcx, [rsp + 0x88]
call fcn.140053e80
mov rax, rbx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret