Function at 0x231943334
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
cmp qword [rbp + 0x18], 0
je 0x23194335f
cmp dword [rbp + 0x20], 1
jne 0x23194335f
mov eax, 0x32
jmp 0x2319436b6
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, 1
mov rcx, rax
call fcn.231a34dd0
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
call rax
lea rax, [rbp - 0x23]
mov rcx, rax
call fcn.231942b66
mov rcx, rax
call fcn.231986ed0
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
call rax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0xffffffffffffffff
je 0x2319436a0
lea rax, [rbp - 0x22]
mov rcx, rax
call fcn.231942c10
mov rcx, rax
call fcn.23198b010
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
test al, al
je 0x231943488
lea rax, [rbp - 0x21]
mov rcx, rax
call fcn.231942cc2
mov rcx, rax
call fcn.23198a5f0
mov r8d, dword [0x231ba37a0]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, [0x231a37020]
mov rdx, rax
call fcn.2319429d2
mov dword [rbp - 4], eax
jmp 0x2319436a0
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.231942d74
mov rcx, rax
call fcn.23198a710
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
test al, al
je 0x231943505
lea rax, [rbp - 0x1f]
mov rcx, rax
call fcn.231942e26
mov rcx, rax
call fcn.23198acb0
mov r8d, dword [0x231d71d34]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, [0x231ba37c0]
mov rdx, rax
call fcn.2319429d2
mov dword [rbp - 4], eax
jmp 0x2319436a0
lea rax, [rbp - 0x1e]
mov rcx, rax
call fcn.231942ed8
mov rcx, rax
call fcn.23198a4d0
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
test al, al
je 0x231943582
lea rax, [rbp - 0x1d]
mov rcx, rax
call fcn.231942f8a
mov rcx, rax
call fcn.23198aa70
mov r8d, dword [0x231ea4c0c]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, [0x231d71d40]
mov rdx, rax
call fcn.2319429d2
mov dword [rbp - 4], eax
jmp 0x2319436a0
lea rax, [rbp - 0x1c]
mov rcx, rax
call fcn.23194303c
mov rcx, rax
call fcn.231979d90
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
test al, al
je 0x2319435ff
lea rax, [rbp - 0x1b]
mov rcx, rax
call fcn.2319430fa
mov rcx, rax
call fcn.23197b2f0
mov r8d, dword [0x231ea4e98]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, [0x231ea4c20]
mov rdx, rax
call fcn.2319429d2
mov dword [rbp - 4], eax
jmp 0x2319436a0
lea rax, [rbp - 0x1a]
mov rcx, rax
call fcn.2319431b8
mov rcx, rax
call fcn.23197b650
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
test al, al
je 0x231943679
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.231943276
mov rcx, rax
call fcn.23197bf50
mov r8d, dword [0x231ec3cc8]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, str.MSCF
mov rdx, rax
call fcn.2319429d2
mov dword [rbp - 4], eax
jmp 0x2319436a0
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov dword [rbp - 4], 0x57
cmp qword [rbp - 0x10], 0
je 0x2319436b3
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.231a34d90
mov eax, dword [rbp - 4]
add rsp, 0x70
pop rbp
ret