Function at 0x140128ee0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xfffffffc
cmp qword [rsp + 0x38], 0
jne 0x140128f1c
mov eax, 0xfffffffc
jmp 0x14012915f
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x48], 0
jne 0x140128f36
call fcn.14011b660
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b670
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b6d0
test eax, eax
jne 0x140128f7f
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140125cc0
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b710
jmp 0x14012914d
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
jne 0x140128fc7
mov dword [rsp + 0x30], 1
jmp 0x14012914d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140129062
mov dword [rsp + 0x30], 0
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140125cc0
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b710
mov edx, 0x60e
lea rcx, [0x1403acf00]
call fcn.1401191d0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x90]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdx + 0x38]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140127850]
mov r8d, 0xffffffff
mov rdx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call fcn.14011a510
jmp 0x14012914d
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x38], 0
je 0x1401290e4
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x38]
cmp qword [rax + 0x20], 0
je 0x1401290ab
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x38]
mov ecx, 4
imul rcx, rcx, 2
add rcx, qword [rax + 0x20]
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0
mov rax, qword [rax + rcx]
mov qword [rsp + 0x40], rax
jmp 0x1401290b4
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
lea r9, str.ILibProcessPipe_Write_:_BrokenPipe__d__on_Pipe:__p
mov r8d, 2
mov edx, 0x400
mov rcx, qword [rsp + 0x40]
call fcn.140129b00
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b690
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x58], 0
je 0x14012913c
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x38], 0
je 0x14012912f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x90]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x38]
xor r8d, r8d
mov rdx, qword [rax + 0x18]
mov rcx, qword [rcx + 0x20]
call fcn.14011a940
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140125f90
mov eax, 0xfffffffc
jmp 0x14012915f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.14011b690
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret