Function at 0x180058cc0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
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 + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x180058f69
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180058ba0
mov rcx, rax
call fcn.180008430
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020410
test eax, eax
jne 0x180058d82
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x18007fcd4]
lea rdx, [0x180335090]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x180058f69
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.180058a80
mov rcx, rax
call fcn.180008410
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020410
test eax, eax
jne 0x180058df5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x18007fcdc]
lea rdx, [0x1800c56e0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x180058f69
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.180058960
mov rcx, rax
call fcn.1800083f0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020410
test eax, eax
jne 0x180058e68
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x18033508c]
lea rdx, [0x1804e6c30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x180058f69
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x43]
call fcn.180058830
mov rcx, rax
call fcn.1800083d0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020410
test eax, eax
jne 0x180058edb
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x18007fcd0]
lea rdx, [0x1800c4ce0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x180058f69
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.180058700
mov rcx, rax
call fcn.1800083b0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020410
test eax, eax
jne 0x180058f4b
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x18007fcd8]
lea rdx, [0x18007fce0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x180058f69
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
add rsp, 0x60
pop rdi
ret