Function at 0x18005a6d0
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
cmp qword [rsp + 0x88], 0
je 0x18005a703
cmp dword [rsp + 0x90], 1
jne 0x18005a703
mov eax, 0x32
jmp 0x18005ab0f
mov rcx, qword [rsp + 0x88]
call fcn.180021d00
inc rax
mov rcx, rax
call fcn.180017b74
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call fcn.18001dcc0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
nop
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.18005a5c0
mov rcx, rax
call fcn.1800097f0
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x18005aaf6
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.18005a4a0
mov rcx, rax
call fcn.1800097d0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021650
test eax, eax
jne 0x18005a85c
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.18005a380
mov rcx, rax
call fcn.1800097b0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [0x180083cd4]
lea rdx, str.MSCF
mov rcx, qword [rsp + 0x58]
call fcn.18005ab20
mov dword [rsp + 0x4c], eax
jmp 0x18005aaf6
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x43]
call fcn.18005a260
mov rcx, rax
call fcn.180009790
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021650
test eax, eax
jne 0x18005a8fb
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.18005a140
mov rcx, rax
call fcn.180009770
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [0x180083cdc]
lea rdx, [0x1800a2fd0]
mov rcx, qword [rsp + 0x58]
call fcn.18005ab20
mov dword [rsp + 0x4c], eax
jmp 0x18005aaf6
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x45]
call fcn.18005a020
mov rcx, rax
call fcn.180009750
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021650
test eax, eax
jne 0x18005a99a
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x46]
call fcn.180059f00
mov rcx, rax
call fcn.180009730
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [0x180271544]
lea rdx, [0x180271550]
mov rcx, qword [rsp + 0x58]
call fcn.18005ab20
mov dword [rsp + 0x4c], eax
jmp 0x18005aaf6
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x47]
call fcn.180059dd0
mov rcx, rax
call fcn.180009710
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021650
test eax, eax
jne 0x18005aa39
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call fcn.180059ca0
mov rcx, rax
call fcn.1800096f0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [0x180083cd0]
lea rdx, [0x1800a2d50]
mov rcx, qword [rsp + 0x58]
call fcn.18005ab20
mov dword [rsp + 0x4c], eax
jmp 0x18005aaf6
lea rax, [rsp + 0x49]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x49]
call fcn.180059b70
mov rcx, rax
call fcn.1800096d0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021650
test eax, eax
jne 0x18005aad5
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4a]
call fcn.180059a40
mov rcx, rax
call fcn.1800096b0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [0x180083cd8]
lea rdx, [0x180083ce0]
mov rcx, qword [rsp + 0x58]
call fcn.18005ab20
mov dword [rsp + 0x4c], eax
jmp 0x18005aaf6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x4c], 0x57
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.180017b30
nop
mov eax, dword [rsp + 0x4c]
add rsp, 0x70
pop rdi
ret