Function at 0x1401539f0
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
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0xfffffffc
cmp qword [rsp + 0x30], 0
jne 0x140153a2d
mov eax, 0xfffffffc
jmp 0x140153c75
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48], 0
jne 0x140153a47
call fcn.14013a6e0
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a860
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a730
test eax, eax
jne 0x140153a91
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140155ef0
mov rdx, rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a770
nop
jmp 0x140153c63
mov rax, qword [rsp + 0x30]
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 + 0x30]
mov rcx, qword [rax + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 1
jne 0x140153ad9
mov dword [rsp + 0x38], 1
jmp 0x140153c63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140153b75
mov dword [rsp + 0x38], 0
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140155ef0
mov rdx, rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a770
mov edx, 0x60e
lea rcx, [0x140560ac0]
call fcn.14013f430
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x90]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x38]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140157220]
mov r8d, 0xffffffff
mov rdx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call fcn.14013e9d0
nop
jmp 0x140153c63
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x140153bf8
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
cmp qword [rax + 0x20], 0
je 0x140153bbe
mov rax, qword [rsp + 0x30]
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 + 0x48], rax
jmp 0x140153bc7
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
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 + 0x48]
call fcn.1401589b0
nop
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a890
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x58], 0
je 0x140153c52
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x140153c44
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
xor r8d, r8d
mov rdx, qword [rax + 0x18]
mov rcx, qword [rcx + 0x20]
call fcn.14013ecf0
nop
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x58]
nop
mov rcx, qword [rsp + 0x30]
call fcn.1401561c0
mov eax, 0xfffffffc
jmp 0x140153c75
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.14013a890
mov eax, dword [rsp + 0x38]
add rsp, 0x50
pop rdi
ret