Function at 0x180059420
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 0x1800596c9
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180059300
mov rcx, rax
call fcn.180008400
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020510
test eax, eax
jne 0x1800594e2
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x180080cd4]
lea rdx, [0x180538ed0]
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 0x1800596c9
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.1800591e0
mov rcx, rax
call fcn.1800083e0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020510
test eax, eax
jne 0x180059555
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x1802c9510]
lea rdx, [0x1802c9520]
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 0x1800596c9
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.1800590c0
mov rcx, rax
call fcn.1800083c0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020510
test eax, eax
jne 0x1800595c8
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x180080cdc]
lea rdx, [0x180080ce0]
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 0x1800596c9
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x43]
call fcn.180058f90
mov rcx, rax
call fcn.1800083a0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020510
test eax, eax
jne 0x18005963b
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x180080cd0]
lea rdx, [0x1802c8b10]
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 0x1800596c9
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.180058e60
mov rcx, rax
call fcn.180008380
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180020510
test eax, eax
jne 0x1800596ab
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x180080cd8]
lea rdx, [0x180299b10]
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 0x1800596c9
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