Function at 0x1400176b0
Capabilities:
Move file

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0x3c8], rax
mov r14, r8
mov dword [rbp + 0x4c], 0x80
mov r13, rdx
lea rax, [rbp + 0x50]
mov r15, rcx
mov qword [rbp + 0x40], rax
xor ebx, ebx
lea r8, [rbp + 0x40]
mov rdx, r14
mov dword [rbp + 0x48], ebx
lea rcx, [rsp + 0x40]
call fcn.140016a70
cmp dword [rsp + 0x40], ebx
je 0x140017732
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x50]
movups xmmword [r15], xmm0
cmp rcx, rax
je 0x140017cf7
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140017cf7
mov qword [rsp + 0x528], rsi
mov qword [rsp + 0x4d8], rdi
mov qword [rsp + 0x4d0], r12
mov r12d, ebx
nop dword [rax]
mov r9b, 1
lea rcx, [rsp + 0x40]
mov r8, r14
mov rdx, r13
call fcn.140017500
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 8]
cmp rdx, qword [0x14016e050]
mov eax, dword [rsp + 0x40]
jne 0x140017782
cmp eax, 0x78
jne 0x140017782
mov cl, 1
jmp 0x140017784
xor cl, cl
test cl, cl
jne 0x140017ba5
test eax, eax
je 0x140017b35
cmp rdx, qword [0x14016e060]
jne 0x140017b35
cmp eax, 0xd
jne 0x140017b35
mov rcx, qword [rbp + 0x40]
lea r8d, [rax - 6]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
mov edx, 0x80010000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140017817
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.14001c470
mov rax, qword [rbp - 0x60]
mov rdx, qword [0x14016e060]
cmp qword [rax + 8], rdx
jne 0x14001780a
cmp dword [rbp - 0x68], 2
je 0x140017b11
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r15], xmm0
jmp 0x140017ccc
lea rdx, [rbp + 0x150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140017b87
mov esi, ebx
mov ecx, esi
test esi, esi
jne 0x140017857
mov byte [rbp + 0x3c4], 0x30
lea r9, [rbp + 0x3c4]
mov qword [rbp], rbx
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], 0xf
jmp 0x1400178bb
lea r9, [rbp + 0x3c5]
movabs rbx, 0xcccccccccccccccd
nop dword [rax + rax]
dec r9
mov rax, rbx
mul rcx
mov r8, rdx
shr r8, 3
movzx eax, r8b
shl al, 2
lea edx, [rax + r8]
add dl, dl
sub cl, dl
add cl, 0x30
mov byte [r9], cl
mov rcx, r8
test r8, r8
jne 0x140017870
xor ebx, ebx
mov qword [rbp + 0x18], 0xf
lea rax, [rbp + 0x3c5]
mov qword [rbp], rbx
mov qword [rbp + 0x10], rbx
cmp r9, rax
je 0x1400178d1
lea r8, [rbp + 0x3c5]
mov rdx, r9
sub r8, r9
lea rcx, [rbp]
call fcn.140008270
movzx ecx, byte [r14 + 0x10]
lea rax, [rbp]
mov word [rbp - 0x70], 0x104
lea r8, str..tmp
mov qword [rbp - 0x80], rax
mov word [rbp - 0x28], 0x103
mov qword [rbp - 0x38], r8
test cl, cl
je 0x14001799e
cmp cl, 1
jne 0x140017928
movups xmm0, xmmword [rbp - 0x38]
movsd xmm1, qword [rbp - 0x28]
movsd qword [rsp + 0x60], xmm1
movzx r8d, byte [rsp + 0x61]
movzx edx, byte [rsp + 0x60]
movups xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x50]
jmp 0x140017950
cmp byte [r14 + 0x11], 1
mov rax, r14
mov dl, 2
jne 0x14001793a
mov rax, qword [r14]
movzx edx, cl
mov qword [rsp + 0x58], r8
mov r8b, 3
mov byte [rsp + 0x61], r8b
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x60], dl
test dl, dl
je 0x1400179a5
cmp dl, 1
jne 0x14001796f
movups xmm0, xmmword [rbp - 0x80]
movsd xmm1, qword [rbp - 0x70]
movups xmmword [rsp + 0x68], xmm0
movsd qword [rsp + 0x78], xmm1
jmp 0x1400179ac
lea rcx, [rsp + 0x50]
mov r9b, 2
cmp r8b, 1
jne 0x140017984
mov rcx, rax
movzx r9d, dl
lea rax, [rbp]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], r9b
mov byte [rsp + 0x79], 4
jmp 0x1400179ac
mov word [rsp + 0x60], 0x100
mov word [rsp + 0x78], 0x100
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.1400238a0
lea rcx, [rbp]
call fcn.140005ef0
lea rax, [rbp - 0x20]
mov word [rbp - 0x70], 0x104
xor r9d, r9d
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140017500
mov ecx, dword [rbp - 0x48]
test ecx, ecx
je 0x140017aff
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax + 8]
mov rax, qword [0x14016e060]
cmp rdx, rax
jne 0x140017b7d
cmp ecx, 0x11
je 0x140017a1e
cmp rdx, rax
jne 0x140017b7d
cmp ecx, 0xd
jne 0x140017b7d
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017ac2
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140017b43
mov eax, dword [rbp + 0x2c]
cmp dword [rbp + 0x17c], eax
jne 0x140017aac
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x180], eax
jne 0x140017aac
mov eax, dword [rbp + 0x1c]
cmp dword [rbp + 0x16c], eax
jne 0x140017aac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
call fcn.140005ef0
inc esi
mov ebx, 0
cmp esi, 0xc8
jne 0x140017831
jmp 0x140017b08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
call fcn.140005ef0
xor ebx, ebx
jmp 0x140017b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.14001c470
mov rax, qword [rbp - 0x50]
mov rdx, qword [0x14016e060]
cmp qword [rax + 8], rdx
jne 0x140017b73
cmp dword [rbp - 0x58], 2
jne 0x140017b73
lea rcx, [rbp - 0x20]
call fcn.140005ef0
xor ebx, ebx
jmp 0x140017b08
lea rcx, [rbp - 0x20]
call fcn.140005ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r12d
cmp r12d, 0xc8
jne 0x140017750
lea rax, [0x14016e058]
mov dword [rsp + 0x40], 0xd
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r15], xmm0
jmp 0x140017ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
call fcn.14001c470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
call fcn.140005ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017ccc
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [r15], xmm0
jmp 0x140017b5c
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [r15], xmm0
jmp 0x140017b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
call fcn.14001c470
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017ccc
lea rax, [rbp + 0x1a0]
mov dword [rbp + 0x198], ebx
xor r9d, r9d
mov qword [rbp + 0x190], rax
mov r8d, 0x103
mov dword [rbp + 0x19c], 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov r8d, dword [rbp + 0x19c]
cmp eax, r8d
jbe 0x140017c28
mov edx, eax
cmp r8, rdx
jae 0x140017c12
mov r8d, edx
lea rcx, [rbp + 0x190]
lea rdx, [rbp + 0x1a0]
mov r9d, 2
call fcn.14001d070
mov r8d, dword [rbp + 0x19c]
mov rdx, qword [rbp + 0x190]
dec r8d
xor r9d, r9d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
jne 0x140017c61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001c470
cmp dword [rsp + 0x40], 0
je 0x140017c67
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x1a0]
cmp rcx, rax
movups xmmword [r15], xmm0
jmp 0x140017cc4
mov dword [rbp + 0x198], eax
mov rdx, qword [rbp + 0x40]
mov r8d, 1
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140017ca3
mov rcx, qword [rbp + 0x190]
lea rax, [0x14016e048]
mov qword [r15 + 8], rax
lea rax, [rbp + 0x1a0]
cmp rcx, rax
mov dword [r15], ebx
jmp 0x140017cc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
call fcn.14001c470
mov rcx, qword [rbp + 0x190]
lea rdx, [rbp + 0x1a0]
cmp rcx, rdx
je 0x140017ccc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x50]
cmp rcx, rax
je 0x140017cdf
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x4d8]
mov rsi, qword [rsp + 0x528]
mov r12, qword [rsp + 0x4d0]
mov rax, r15
mov rcx, qword [rbp + 0x3c8]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret