Function at 0x140018050
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400781b0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400182b4
lea rbx, [0x1401cb758]
mov rdi, qword [0x1401cb768]
cmp qword [0x1401cb770], 0x10
jb 0x1400180b6
mov rbx, qword [0x1401cb758]
add rdi, rbx
xor esi, esi
mov qword [rsp + 0x20], rsi
mov ecx, esi
mov qword [rsp + 0x30], rcx
mov r8d, 7
mov qword [rsp + 0x38], r8
mov word [rsp + 0x20], si
mov rdx, rdi
sub rdx, rbx
cmp rdx, 8
jb 0x1400180f9
lea rcx, [rsp + 0x20]
call fcn.140021e50
mov ecx, esi
mov qword [rsp + 0x30], rcx
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x60], rax
cmp rbx, rdi
je 0x14001815b
nop dword [rax + rax]
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x14001813d
lea rax, [rcx + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp r8, 8
cmovae rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x140018147
lea rcx, [rsp + 0x20]
call fcn.140021fc0
inc rbx
cmp rbx, rdi
je 0x14001815b
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
jmp 0x140018110
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140018180
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001f5f0
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140024090
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400181f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400181ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400181ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001823a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018235
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018235
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
mov rcx, qword [0x1401cb648]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400182b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400182af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400182af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14004dbc0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret