Function at 0x14011267c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rcx
xor esi, esi
cmp qword [rcx + 0x58], rsi
jne 0x1401126bc
mov eax, 0x80070006
jmp 0x140112adf
lea rcx, [rsp + 0x30]
call fcn.14002bd70
mov r14, qword [rsp + 0x30]
test r14, r14
jne 0x1401126da
mov eax, 0x8007000e
jmp 0x140112adf
lea rbx, [r15 + 0x60]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [case.0x140007d11.0]
mov rax, qword [r14]
lea rdx, str.AsyncStorage
mov rcx, r14
mov rax, qword [rax + 0x30]
call qword [case.0x140007d11.0]
test al, al
jne 0x14011273d
mov rcx, rbx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov qword [rsp + 0x30], rsi
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
mov eax, 0x80070057
jmp 0x140112adf
mov rax, qword [r14]
lea rdx, str.0.0.1
mov rcx, r14
mov rax, qword [rax + 0x38]
call qword [case.0x140007d11.0]
test al, al
jne 0x14011277f
mov rcx, rbx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov qword [rsp + 0x30], rsi
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
mov eax, 0x80070057
jmp 0x140112adf
mov rdi, qword [r15 + 0x18]
mov rdi, qword [rdi]
mov rax, qword [r14]
cmp rdi, qword [r15 + 0x18]
je 0x140112830
lea rdx, [rdi + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1401127a1
mov rdx, qword [rdx]
mov rcx, r14
mov rax, qword [rax + 0x30]
call qword [case.0x140007d11.0]
test al, al
jne 0x1401127d9
mov rcx, rbx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov qword [rsp + 0x30], rsi
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
mov eax, 0x80070057
jmp 0x140112adf
mov rax, qword [r14]
lea rdx, [rdi + 0x30]
cmp qword [rdx + 0x18], 8
jb 0x1401127ea
mov rdx, qword [rdx]
mov rcx, r14
mov rax, qword [rax + 0x38]
call qword [case.0x140007d11.0]
test al, al
jne 0x140112783
mov rcx, rbx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov qword [rsp + 0x30], rsi
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
nop dword [rax]
nop word [rax + rax]
call qword [case.0x140007d11.0]
mov eax, 0x80070057
jmp 0x140112adf
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [case.0x140007d11.0]
mov rcx, rbx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
movdqa xmm0, xmmword [0x14017f2c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rax, qword [r14]
lea rdx, [rsp + 0x48]
mov rcx, r14
mov rax, qword [rax + 0x70]
call qword [case.0x140007d11.0]
test al, al
jne 0x1401128e0
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x1401128b7
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401128b0
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1401128b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
movdqa xmm0, xmmword [0x14017f2c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
jmp 0x140112a60
mov rbx, qword [r15 + 0x58]
cmp rbx, 0xffffffffffffffff
jne 0x1401128f1
mov ebx, 0x80070006
jmp 0x14011296b
mov eax, dword [rsp + 0x58]
lea r15d, [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140112926
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140112967
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140112910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140112910
cmp r15d, dword [rsp + 0x30]
jne 0x140112910
mov ebx, esi
test ebx, ebx
jns 0x1401129da
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x1401129b0
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401129a6
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1401129a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
nop dword [rax]
movdqa xmm0, xmmword [0x14017f2c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rcx, qword [r14]
mov rax, qword [rcx + 8]
mov rcx, r14
call qword [case.0x140007d11.0]
mov eax, ebx
jmp 0x140112adf
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x140112a1c
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140112a15
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140112a15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
movdqa xmm0, xmmword [0x14017f2c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
xor eax, eax
jmp 0x140112adf
mov eax, 0x80070057
jmp 0x140112adf
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140118d00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret