Function at 0x1400f9c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0xf0], 0
je 0x1400f9e24
mov ecx, 0x20
call fcn.140071a64
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x68]
mov qword [rcx], rax
mov r8d, 0x20
xor edx, edx
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx]
call fcn.1400a8070
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rax + 0x18], r11
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x50]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x54]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400f9d5e
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140071ab0
mov rax, qword [rsp + 0xf0]
mov qword [rax], 0
mov eax, 1
jmp 0x1400f9f62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400f9e1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1400f92e0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0xa0]
mov r8, qword [r8]
lea rdx, [0x1402186c0]
mov ecx, 1
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x78]
call fcn.140001470
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140071ab0
mov rax, qword [rsp + 0xf0]
mov qword [rax], 0
xor eax, eax
jmp 0x1400f9f62
mov eax, 1
jmp 0x1400f9f62
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400a8070
mov r11d, dword [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x44], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400f9ea7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400f9f62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400f9f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x88]
call fcn.1400f92e0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov r9d, dword [rsp + 0x64]
mov r8, qword [rsp + 0xb0]
mov r8, qword [r8]
lea rdx, str._ERROR__file_write_1__s_error__d
mov ecx, 1
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x88]
call fcn.140001470
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400f9f62
mov dword [rsp + 0x5c], 0
mov r9d, 1
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x58]
add rsp, 0xc8
ret