Function at 0x14011f750
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rbp], rax
mov r14, rcx
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.140063b60
nop
mov dword [rbp - 0x68], 0x18
xor edi, edi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], edi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400643b0
nop
mov rcx, rax
call fcn.140025d00
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x68]
mov edx, 0x40000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14011f807
cmp eax, ebx
je 0x14011f815
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011f815
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
cmp rsi, 0xffffffffffffffff
jne 0x14011f8da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 5
je 0x14011f87b
sub ecx, 0x1b
je 0x14011f871
sub ecx, 0x30
je 0x14011f871
cmp ecx, 0x67
je 0x14011f871
mov qword [rbp - 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
lea rcx, [0x1402c02b8]
mov qword [rbp - 0x38], rcx
mov r8d, eax
lea rdx, str.Got_unexpected_locking_error__llu
lea rcx, [rbp - 0x50]
call fcn.140019630
lea edi, [rsi + 4]
jmp 0x14011fa9c
mov edi, 1
jmp 0x14011fa9c
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400643b0
nop
mov rcx, rax
call fcn.140025d00
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb edi, edi
add edi, 2
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14011f8d0
cmp eax, 0xffffffff
je 0x14011fa9c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011fa9c
mov rcx, qword [rsp + 0x58]
mov edx, 2
jmp 0x14011fa90
mov qword [r14 + 8], rsi
lea rax, [0x14018c220]
mov qword [rsp + 0x40], rax
call fcn.140049610
mov rdx, rax
mov r8d, 0xa
lea rcx, [rsp + 0x60]
call fcn.140032ef0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140032400
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14011f931
cmp eax, 0xffffffff
je 0x14011f93f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011f93f
mov rcx, qword [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.1400324d0
lea rcx, [rsp + 0x70]
call fcn.140049500
nop
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400063f0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140032400
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14011f992
cmp eax, 0xffffffff
je 0x14011f9a1
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011f9a1
mov rcx, qword [rsp + 0x68]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14011f9c1
cmp eax, 0xffffffff
je 0x14011f9cf
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011f9cf
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.1400324d0
lea rcx, [rsp + 0x78]
call fcn.14011f560
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140032400
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14011fa14
cmp eax, 0xffffffff
je 0x14011fa22
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011fa22
mov rcx, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.1400324d0
mov dword [rsp + 0x48], edi
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, dword [rax + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14011fa66
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14011fa6b
mov edi, 3
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14011fa8b
cmp eax, 0xffffffff
je 0x14011fa9c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011fa9c
mov rcx, qword [rsp + 0x40]
mov edx, 1
mov r8d, 8
call fcn.1400309b0
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14011faba
cmp eax, 0xffffffff
je 0x14011fac8
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011fac8
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x14011fae4
cmp eax, 0xffffffff
je 0x14011faf2
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14011faf2
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140122ce0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret