Function at 0x14011e4b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x60
mov rax, qword [0x140375828]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r15, [0x14049731c]
mov rcx, r15
lea rdx, [0x140497288]
call fcn.140121c00
test eax, eax
jne 0x14011e6f4
cmp dword [0x1403a7098], eax
je 0x14011e743
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [r15 + rbx], 0
jne 0x14011e500
lea edi, [rbx + 7]
cmp edi, 0x104
jl 0x14011e563
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14011e6e1
mov rdx, rax
mov rcx, r15
sub rdx, r15
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14011e540
mov byte [rsi + 0x102], al
mov eax, 0x102
cmp ebx, eax
cmovg ebx, eax
lea edi, [rax + 2]
jmp 0x14011e58f
movsxd rcx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14011e6e1
mov rdx, rax
mov rcx, r15
sub rdx, r15
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14011e581
movsxd r8, ebx
lea rcx, [0x14025f4e4]
mov rdx, r8
sub rdx, rcx
add rdx, rsi
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14011e5a2
cmp dword [0x1403a711c], 1
jne 0x14011e5dc
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140121c00
test eax, eax
jne 0x14011e66c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
jmp 0x14011e66c
mov qword [rsp + 0x80], rbp
sub edi, ebx
or ebp, 0xffffffff
mov qword [rsp + 0x88], r14
xor ebx, ebx
lea r14, [r8 + 1]
sub edi, 2
je 0x14011e62c
sub edi, 1
je 0x14011e625
sub edi, 1
je 0x14011e61e
sub edi, 1
je 0x14011e617
cmp edi, 1
jne 0x14011e62e
mov ebp, 0x270f
jmp 0x14011e632
mov ebp, 0x3e7
jmp 0x14011e632
mov ebp, 0x63
jmp 0x14011e632
mov ebp, 9
jmp 0x14011e632
mov ebp, ebx
test ebp, ebp
je 0x14011e65c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140121c00
test eax, eax
jne 0x14011e65c
inc ebx
lea rdx, [0x14025f75c]
mov r8d, ebx
lea rcx, [r14 + rsi]
call fcn.1400e1500
cmp ebx, ebp
jb 0x14011e632
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x14011e6eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8d, 0x4000
lea rdx, [0x14048f178]
mov rcx, r15
mov rbx, rax
call fcn.1401608c0
mov r8, rax
lea rdx, str.error:__cannot_rename_old__s_n_________s_n
mov r9, rbx
lea rcx, [0x140487178]
call fcn.1400e1500
mov r8d, eax
lea rdx, [0x140487178]
mov r9d, 0x401
lea rcx, [0x1403a7080]
call qword [0x140497538]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14011e7db
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x1402be194]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1404972f0], rax
test rax, rax
jne 0x14011e7ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8d, 0x4000
lea rdx, [0x14048f178]
mov rcx, r15
mov rbx, rax
call fcn.1401608c0
lea rdx, str.error:__cannot_create__s_n_________s_n
jmp 0x14011e794
test byte [0x14049728e], 0x80
jne 0x14011e75a
mov edx, 0x180
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chmod]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
test eax, eax
je 0x14011e6f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8d, 0x4000
lea rdx, [0x14048f178]
mov rcx, r15
mov rbx, rax
call fcn.1401608c0
lea rdx, str.error:__cannot_delete_old__s_n_________s_n
mov r9, rbx
lea rcx, [0x140487178]
mov r8, rax
call fcn.1400e1500
mov r8d, eax
lea rdx, [0x140487178]
mov r9d, 0x401
lea rcx, [0x1403a7080]
call qword [0x140497538]
mov eax, 1
jmp 0x14011e7db
mov rdx, qword [0x1404971f8]
mov rcx, rax
call fcn.14011f1c0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401dd140
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret