Function at 0x1401118e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [rbp + 0x48]
xor r15d, r15d
mov dword [rdx + 8], 3
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
lea rcx, [rdx + 0x40]
mov r14, r9
mov qword [rcx], r15
lea r8d, [r15 + 0x20]
mov qword [rdx + 0x80], rbx
mov qword [rdx + 0x78], r15
mov qword [rdx + 0x70], rax
mov dword [rdx + 0x88], r15d
mov qword [rdx + 0xa0], r15
or qword [rdx + 0xa8], 0xffffffffffffffff
xor edx, edx
call fcn.140145ba0
test dword [rbx + 0x58], 0x180000
je 0x140111981
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x140111c1a
or rax, 1
mov qword [rdi + 0x58], rax
movups xmm0, xmmword [0x14018a938]
mov r8, qword [rbp + 0x40]
movdqu xmmword [rdi + 0x90], xmm0
test r8, r8
je 0x1401119a9
cmp r8, 1
jne 0x1401119af
cmp dword [rbp + 0x50], r15d
jne 0x1401119af
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x10], xmm0
jmp 0x1401119d7
lea rax, [rbp - 0x10]
mov rdx, r14
lea r9, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1401109e0
test eax, eax
jne 0x140111c01
mov rdi, qword [rbp + 0x28]
movups xmm0, xmmword [rbp - 0x10]
mov eax, dword [rbx + 0x58]
mov ecx, 0x1100000
and eax, ecx
cmp eax, ecx
jne 0x140111a6b
mov r8d, dword [rbp - 0x10]
lea r9, [rbp + 0x28]
mov rdx, qword [rbp - 8]
mov rcx, qword [rbx + 0x118]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140111a16
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140111c01
mov qword [rdi + 0x60], r15
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x140111a3f
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x140111a3f
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x140111a3f
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
lea r9, [rdi + 0x40]
inc dword [rbx + 0x78]
xor r8d, r8d
inc dword [rbx + 0x100]
xor edx, edx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x140111c2f
jmp 0x140111bff
test dword [rbx + 0x58], 0x1000000
je 0x140111acd
movdqu xmmword [rdi + 0x90], xmm0
mov qword [rdi + 0x68], r15
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x140111aa1
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rbx + 0x208]
mov qword [rax + 0x68], rdi
jmp 0x140111aa5
mov qword [rdi + 0x68], rdi
mov qword [rbx + 0x208], rdi
cmp dword [rbx + 0x100], r15d
jne 0x140111abd
mov rcx, rbx
call fcn.140112590
mov eax, dword [rbp - 0x10]
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
jmp 0x140111bce
mov rcx, qword [rbx + 0x118]
lea rax, [rdi + 0x40]
mov r8d, dword [rbp - 0x10]
xor r9d, r9d
test dword [rbx + 0x58], 0x100000
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x20], rax
je 0x140111b66
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140111b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140111b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0xa0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [rdi + 0xa0], r15
jmp 0x140111c01
mov eax, dword [rbp - 0x10]
or edx, 0xffffffff
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140111b50
jmp 0x140111b08
mov qword [rdi + 0x60], r15
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa0], r15
jmp 0x140111bce
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140111b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140111a0b
mov eax, dword [rbp - 0x10]
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
jmp 0x140111b92
mov qword [rdi + 0x60], r15
test dword [rbx + 0x58], 0x80000
je 0x140111bce
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0xa8]
mov dword [rsp + 0x28], 4
lea r8, [0x140110990]
or dword [rsp + 0x20], 0xffffffff
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x140111a0b
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x140111bf3
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x140111bf3
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x140111bf3
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
inc dword [rbx + 0x78]
inc dword [rbx + 0x100]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14011bf20
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x14018a640]
call fcn.14011bf20
int3