Function at 0x1401c9480
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xfffffffc00000000
movaps xmm6, xmmword [0x14029bb90]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x80]
mov rcx, r12
mov r9d, 0x85
call fcn.14009b140
mov eax, dword [0x1402f0db0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x188]
mov rax, rsi
and rax, r13
cmp rax, qword [0x1402e3948]
jne 0x1401c9533
mov rcx, rsi
call fcn.140103420
mov qword [rsp + 0x40], rsi
mov eax, dword [0x1402f0db0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbp, [rax + 0x190]
mov rsi, qword [rbp]
mov rax, rsi
and rax, r13
cmp rax, qword [0x1402e3948]
jne 0x1401c956d
mov rcx, rsi
call fcn.140103420
lea rax, [rsp + 0x40]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
mov rcx, qword [rbp]
mov qword [rbp], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
je 0x1401c95f4
mov cl, byte [rax + 0x20]
mov byte [rsp + 0x60], cl
xor edx, edx
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x78], dl
mov r8d, dword [0x1402f0db0]
mov r9, qword gs:[0x58]
mov r8, qword [r9 + r8*8]
cmp byte [r8 + 0x200], dl
je 0x1401c95f8
test cl, cl
je 0x1401c9625
test rax, rax
je 0x1401c9634
cmp byte [rax + 0x38], 0
je 0x1401c9634
mov rsi, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rsi, rsi
je 0x1401c9634
lock dec dword [rsi]
jne 0x1401c9634
mov rcx, rsi
call fcn.1400e4e10
mov rcx, rsi
call fcn.14010cc0c
jmp 0x1401c9634
xor ecx, ecx
jmp 0x1401c9592
call fcn.1400abf60
test al, al
jne 0x1401c9634
mov cl, byte [rsp + 0x60]
mov rax, qword [rsp + 0x48]
jmp 0x1401c95bd
lea rdx, [rsp + 0xb0]
mov qword [rdx], r12
lea rcx, str.ScopedBlockingCall
call fcn.14003c7c0
jmp 0x1401c965e
test rax, rax
jne 0x1401c9634
lea rcx, [rsp + 0x68]
call fcn.14009b170
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401c9655
cmp qword [rsp + 0x48], 0
jne 0x1401c9655
mov rax, qword [rcx]
mov rax, qword [rax + 8]
xor edx, edx
call qword [0x140318008]
test byte [0x1402e21a0], 0x19
jne 0x1401c960c
mov esi, 0xffffffff
test r15, r15
js 0x1401c96b7
test edi, edi
js 0x1401c96b7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], r15
lea r15, [rsp + 0xb0]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
test byte [0x1402e21a0], 0x19
jne 0x1401c982f
call fcn.14010ccdc
mov ebp, dword [rax]
call fcn.14010ccdc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401c96fc
cmp qword [rsp + 0x48], 0
je 0x1401c9799
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14010ccdc
mov dword [rax], ebp
cmp byte [rsp + 0x78], 0
je 0x1401c9720
mov rdi, qword [rsp + 0x70]
test rdi, rdi
jne 0x1401c98ae
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1401c9732
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402e3948]
je 0x1401c991a
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
and r13, rcx
cmp r13, qword [0x1402e3948]
je 0x1401c9792
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140103630
jmp 0x1401c9764
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
lea rcx, [0x140087bf0]
cmp rax, rcx
jne 0x1401c9924
cmp byte [rbx + 0x19], 0
je 0x1401c96fc
mov r14, qword [rbx + 0x28]
add r14, 0x28
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401c990d
mov qword [rbx + 0x20], 0
cmp byte [rbx + 0x3b], 0
jne 0x1401c9805
cmp byte [rbx + 0x39], 0
mov rcx, qword [rbx + 0x28]
jne 0x1401c98e7
dec dword [rcx + 0x148]
cmp byte [rbx + 0x19], 0
je 0x1401c9932
cmp byte [rbx + 0x18], 0
je 0x1401c9819
mov word [rbx + 0x39], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1401c96fc
cmp byte [rbx + 0x3a], 0
mov rcx, qword [rbx + 0x28]
jne 0x1401c995e
dec dword [rcx + 0x14c]
jmp 0x1401c9805
lea rdi, [rsp + 0xb0]
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1402e21a0]
lea r9, [0x1402a5ff1]
mov rcx, rdi
mov dl, 0x45
call fcn.14016cc10
mov rax, qword [rdi]
test rax, rax
je 0x1401c989c
mov dl, byte [rsp + 0xc8]
mov r8, qword [rsp + 0xb8]
xor r9d, r9d
lea rcx, [rsp + 0x80]
mov qword [rcx], r9
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r8
mov qword [rcx + 0x18], r9
mov byte [rcx + 0x20], dl
call fcn.1400ac2da
lea rcx, [rsp + 0xb0]
call fcn.14016cc20
jmp 0x1401c96c4
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.14009a150
mov rdx, qword [rsp + 0x68]
mov r8, qword [rbx]
mov rcx, rdi
call fcn.1400b44b0
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1401c9720
lock dec dword [rdi]
jne 0x1401c9720
jmp 0x1401c98f8
dec qword [rcx + 0x128]
call fcn.1400e8b80
jmp 0x1401c97f5
mov rcx, rdi
call fcn.1400e4e10
mov rcx, rdi
call fcn.14010cc0c
jmp 0x1401c9720
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401c97d3
call fcn.140103630
jmp 0x1401c974a
mov rcx, rbx
call qword [0x140318008]
jmp 0x1401c96fc
lea rax, str.optional_operator_called_on_a_disengaged_value
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcincludeoptional
lea r9, str.this__has_value__
mov r8d, 0x3f9
call fcn.140165620
dec qword [rcx + 0x130]
call fcn.1400e8b80
jmp 0x1401c9805