Function at 0x1400050b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x1a0
cmp dword [0x1400b0f50], 0
mov rsi, rcx
jne 0x14000532b
mov rdx, rcx
mov r8d, 0xf5
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, 0x2e
mov byte [rsp + 0x125], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rbx, rax
test rax, rax
jne 0x140005121
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140005110
lea rbx, [rsp + 0x30]
add rbx, rax
cmp qword [0x1400b3488], 0
mov eax, dword [str..add]
mov dword [rbx], eax
movzx eax, byte [0x14001f308]
mov byte [rbx + 4], al
jne 0x14000515c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
mov qword [0x1400b3488], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__getdrive]
mov dword [0x1400b337c], eax
jmp 0x140005162
mov eax, dword [0x1400b337c]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chdrive]
test eax, eax
jne 0x14000517f
mov rcx, qword [0x1400b3488]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chdir]
test eax, eax
je 0x1400051a0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x1400b3488]
lea rdx, str._nWarning:_Current_Directory___s__is_not_available._n
mov rcx, rax
call fcn.140001740
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
test eax, eax
jns 0x1400051e6
movsd xmm0, qword [str..add.txt]
lea rcx, [rsp + 0x30]
movsd qword [rbx], xmm0
movzx eax, byte [0x14001f318]
mov byte [rbx + 8], al
call fcn.14000a210
test eax, eax
jne 0x1400051ee
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
lea rdx, [0x14001f31c]
mov rcx, rsi
call fcn.140009f60
mov rbx, rax
test rax, rax
je 0x14000532b
lea rdx, [0x14001ef24]
mov qword [rsp + 0x1b0], rdi
lea rcx, [rsp + 0x30]
call fcn.140009f60
mov rdi, rax
test rax, rax
jne 0x14000523a
mov rcx, rbx
call fcn.140009d70
lea eax, [rdi + 1]
jmp 0x1400052d8
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, str._nAdding___s__to___s_._n
call fcn.140001020
mov r8, rdi
lea rcx, [rsp + 0x130]
mov edx, 0x65
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400052a1
nop dword [rax]
mov rdx, rbx
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
cmp eax, 0xffffffff
je 0x1400052f1
mov r8, rdi
lea rcx, [rsp + 0x130]
mov edx, 0x65
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140005270
mov rcx, rdi
call fcn.140009d70
mov rcx, rbx
call fcn.140009d70
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x140005323
lea rcx, str.Failed_to_delete_add_file
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov eax, 1
mov dword [0x1400b0f50], eax
mov rdi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rbx]
lea r9, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rsi
lea rdx, str.Error__d_appending___s__to___s__n
call fcn.140001740
jmp 0x1400052cd
mov eax, dword [0x1400b0f50]
jmp 0x1400052d8
mov rbx, qword [rsp + 0x1b8]
mov eax, 1
add rsp, 0x1a0
pop rsi
ret