Function at 0x140048940
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov esi, 4
xor edi, edi
mov r14b, dil
mov r15b, dil
mov byte [rsp + 0xf0], dil
mov bl, dil
lea ebp, [rsi - 3]
cmp word [rcx], 0x2d
jne 0x140048b2b
lea r12d, [rsi + 5]
lea r13d, [rsi + 2]
lea rax, [rcx + 2]
cmp word [rax], 0x2d
cmove rcx, rax
mov qword [rsp + 0xe0], rcx
mov r8d, ebp
lea rdx, [rsp + 0xe0]
lea rcx, [0x140147298]
call fcn.140065780
cmp al, dil
jne 0x140048b2b
mov r8d, 0xf
lea rdx, [rsp + 0xe0]
lea rcx, str._simpleprogress
call fcn.140065780
cmp al, dil
je 0x1400489ef
mov esi, 0x100
jmp 0x140048b19
mov r8d, r12d
lea rdx, [rsp + 0xe0]
lea rcx, str._progress
call fcn.140065780
cmp al, dil
je 0x140048a13
mov si, di
jmp 0x140048b19
mov r8d, 5
lea rdx, [rsp + 0xe0]
lea rcx, str._file
call fcn.140065780
cmp al, dil
je 0x140048a3a
mov r14b, bpl
jmp 0x140048b19
mov r8d, 2
lea rdx, [rsp + 0xe0]
lea rcx, [0x14014b074]
call fcn.140065780
cmp al, dil
je 0x140048a61
mov r15b, bpl
jmp 0x140048b19
mov r8d, r13d
lea rdx, [rsp + 0xe0]
lea rcx, [0x14014b06c]
call fcn.140065780
cmp al, dil
je 0x140048a89
mov dword [rsp + 0xe8], ebp
jmp 0x140048b19
mov r8d, 2
lea rdx, [rsp + 0xe0]
lea rcx, [0x14014b068]
call fcn.140065780
cmp al, dil
je 0x140048ab2
mov byte [rsp + 0xf0], 0x10
jmp 0x140048b19
mov r8d, r13d
lea rdx, [rsp + 0xe0]
lea rcx, str._delme
call fcn.140065780
cmp al, dil
je 0x140048ad2
mov bl, 0x10
jmp 0x140048b19
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx]
cmp ax, di
je 0x140048b0c
cmp r12w, ax
ja 0x140048aee
cmp ax, 0xd
jbe 0x140048b0c
mov edx, 0x20
cmp dx, ax
je 0x140048b0c
add rcx, 2
mov qword [rsp + 0xe0], rcx
mov ax, word [rcx]
cmp ax, di
jne 0x140048ae2
lea rcx, [rsp + 0xe0]
call fcn.140029d28
mov rcx, qword [rsp + 0xe0]
cmp word [rcx], 0x2d
je 0x140048992
lea rcx, [rsp + 0xe0]
call fcn.140029d28
cmp bl, dil
je 0x140048b91
lea rdx, str.23:INDATA
lea rcx, [rsp + 0xf0]
call fcn.140071240
nop
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xf0]
call fcn.140063600
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x14019c170]
call fcn.140047384
mov ebx, eax
lea rcx, [rsp + 0xf0]
call fcn.14005b520
mov eax, ebx
jmp 0x140048f2e
mov rcx, qword [rsp + 0xe0]
cmp word [rcx], di
jne 0x140048ba8
mov eax, 0x80070057
jmp 0x140048f2e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rbp + rax]
lea edx, [rbx + rbx + 4]
lea rcx, [rsp + 0x20]
call fcn.140063580
nop
movsxd rax, ebx
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x20]
call fcn.14010cd30
mov r11, qword [rsp + 0x20]
mov qword [rsp + 0xe0], r11
mov word [rbx + r11], di
mov qword [rsp + 0x50], rdi
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14010c6c0
lea rcx, [rsp + 0xe0]
call fcn.140029d28
mov rbx, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], 3
mov eax, 0x610
or si, ax
mov word [rsp + 0x70], si
mov ebp, edi
mov r12b, dil
mov rsi, rbx
lea rcx, [rsp + 0x30]
call fcn.140063500
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], edi
lea rcx, [rsp + 0x40]
call fcn.140063500
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x4c], edi
lea r13, [rsp + 0x30]
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.1400635c0
mov edx, 0xa
lea rcx, [rsp + 0x40]
call fcn.1400635c0
movzx r11d, word [rbx]
cmp r11w, di
je 0x140048d92
cmp r15b, dil
je 0x140048cf5
cmp r11w, 0x3b
jne 0x140048cf5
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0xf8], rbx
cmp word [rsi], di
je 0x140048ccd
cmp r12b, dil
jne 0x140048cbf
cmp r14b, dil
je 0x140048cbf
mov r8b, 1
jmp 0x140048cc2
mov r8b, dil
mov rdx, rsi
mov rcx, r13
call fcn.140032e2c
lea rcx, [rsp + 0xf8]
call fcn.140029d28
mov rbx, qword [rsp + 0xf8]
mov rsi, rbx
cmp r12b, dil
je 0x140048d80
inc ebp
jmp 0x140048d80
cmp r11w, 0x3e
jne 0x140048d80
cmp word [rbx - 2], 0x3d
jne 0x140048d11
mov dword [rsp + 0x58], 2
jmp 0x140048d35
cmp word [rbx - 2], 0x2d
jne 0x140048d22
mov dword [rsp + 0x58], 1
jmp 0x140048d35
cmp word [rbx + 2], 0x3e
jne 0x140048d35
add rbx, 2
mov dword [rsp + 0x58], 4
lea rax, [rbx + 2]
mov qword [rsp + 0x68], rax
mov word [rbx - 2], di
mov word [rbx], di
mov qword [rsp + 0xf8], rax
cmp word [rsi], di
je 0x140048d60
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call fcn.140032e2c
lea rcx, [rsp + 0xf8]
call fcn.140029d28
mov rbx, qword [rsp + 0xf8]
mov rsi, rbx
mov r12b, 1
lea r13, [rsp + 0x40]
add rbx, 2
mov r11w, word [rbx]
cmp r11w, di
jne 0x140048c90
cmp word [rsi], di
je 0x140048db3
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call fcn.140032e2c
cmp r12b, dil
je 0x140048dba
mov ebx, 1
add ebp, ebx
jmp 0x140048dbf
mov ebx, 1
jmp 0x140048dbf
mov ebx, 1
movsxd rcx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2], di
movsxd rcx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], di
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
cmp ebp, edi
cmovg rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0xe8], edi
je 0x140048e3e
cmp dword [rsp + 0x58], 3
jne 0x140048e3e
movsx edx, byte [rsp + 0xf0]
mov rcx, qword [rsp + 0x30]
call fcn.140032f38
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x30]
call fcn.14005b520
nop
jmp 0x140048f22
cmp dword [rsp + 0x58], 4
jne 0x140048ef5
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xf0]
call fcn.140071240
nop
mov rcx, qword [rsp + 0xf0]
call fcn.14005f5f0
cmp rax, rdi
jne 0x140048e78
mov rax, qword [rsp + 0xf0]
jmp 0x140048e7c
add rax, 2
mov word [rax], di
mov rcx, qword [rsp + 0x68]
call fcn.14005f5f0
cmp rax, rdi
jne 0x140048e95
mov rax, qword [rsp + 0x68]
jmp 0x140048e99
add rax, 2
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.140063600
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebx
je 0x140048ecd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
cmove eax, ebx
mov edi, eax
lea rcx, [rsp + 0xf0]
call fcn.14005b520
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x30]
call fcn.14005b520
nop
mov ebx, edi
jmp 0x140048f22
cmp ebp, 2
jl 0x140048eff
or word [rsp + 0x70], bx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x30]
call fcn.14005b520
nop
lea rcx, [rsp + 0x20]
call fcn.14005b520
mov eax, ebx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret