Function at 0x180059be0
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 0x180059c13
cmp dword [rsp + 0x90], 1
jne 0x180059c13
mov eax, 0x278
jmp 0x18005a01f
mov rcx, qword [rsp + 0x88]
call fcn.180021b30
inc rax
mov rcx, rax
call fcn.1800179a4
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.18001daf0
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.180059ad0
mov rcx, rax
call fcn.1800096e0
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 0x18005a006
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.1800599b0
mov rcx, rax
call fcn.1800096c0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021480
test eax, eax
jne 0x180059d6c
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.180059890
mov rcx, rax
call fcn.1800096a0
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 [0x180082cd4]
lea rdx, str.MSCF
mov rcx, qword [rsp + 0x58]
call fcn.18005a030
mov dword [rsp + 0x4c], eax
jmp 0x18005a006
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x43]
call fcn.180059770
mov rcx, rax
call fcn.180009680
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021480
test eax, eax
jne 0x180059e0b
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.180059650
mov rcx, rax
call fcn.180009660
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 [0x180082cdc]
lea rdx, [0x1800a1fd0]
mov rcx, qword [rsp + 0x58]
call fcn.18005a030
mov dword [rsp + 0x4c], eax
jmp 0x18005a006
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x45]
call fcn.180059530
mov rcx, rax
call fcn.180009640
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021480
test eax, eax
jne 0x180059eaa
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x46]
call fcn.180059410
mov rcx, rax
call fcn.180009620
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 [0x180270544]
lea rdx, [0x180270550]
mov rcx, qword [rsp + 0x58]
call fcn.18005a030
mov dword [rsp + 0x4c], eax
jmp 0x18005a006
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x47]
call fcn.1800592e0
mov rcx, rax
call fcn.180009600
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021480
test eax, eax
jne 0x180059f49
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call fcn.1800591b0
mov rcx, rax
call fcn.1800095e0
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 [0x180082cd0]
lea rdx, [0x1800a1d50]
mov rcx, qword [rsp + 0x58]
call fcn.18005a030
mov dword [rsp + 0x4c], eax
jmp 0x18005a006
lea rax, [rsp + 0x49]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x49]
call fcn.180059080
mov rcx, rax
call fcn.1800095c0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.180021480
test eax, eax
jne 0x180059fe5
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4a]
call fcn.180058f50
mov rcx, rax
call fcn.1800095a0
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 [0x180082cd8]
lea rdx, [0x180082ce0]
mov rcx, qword [rsp + 0x58]
call fcn.18005a030
mov dword [rsp + 0x4c], eax
jmp 0x18005a006
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.180017960
nop
mov eax, dword [rsp + 0x4c]
add rsp, 0x70
pop rdi
ret