Function at 0x14011ede0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
mov rdx, rcx
lea rcx, [rbp - 0x49]
call fcn.1400a5690
nop
mov dword [rbp - 0x31], 0x18
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov dword [rbp - 0x21], ebx
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rcx, rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x31]
mov edx, 0xc0000000
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rax, qword [rbp - 0x59]
mov ecx, dword [rax]
lea edi, [rbx - 1]
test ecx, ecx
je 0x14011ee94
cmp ecx, edi
je 0x14011eea6
mov ecx, edi
mov rax, qword [rbp - 0x59]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011eea6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x59]
call fcn.140049bf0
cmp rsi, 0xffffffffffffffff
jne 0x14011ef69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 5
je 0x14011ef0c
sub ecx, 0x1b
je 0x14011ef02
sub ecx, 0x30
je 0x14011ef02
cmp ecx, 0x67
je 0x14011ef02
mov qword [rbp - 0x19], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
lea rcx, [0x1402d77f0]
mov qword [rbp - 1], rcx
mov r8d, eax
lea rdx, [0x1402acd30]
lea rcx, [rbp - 0x19]
call fcn.140035f50
lea ebx, [rsi + 4]
jmp 0x14011efe5
mov ebx, 1
jmp 0x14011efe5
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x49]
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
lea r8, [rbp + 0xf]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb ebx, ebx
add ebx, 2
mov rax, qword [rbp - 0x51]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011ef5e
cmp ecx, 0xffffffff
je 0x14011efe5
mov ecx, edi
mov rax, qword [rbp - 0x51]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011efe5
mov edx, 2
mov rcx, qword [rbp - 0x51]
jmp 0x14011efd9
mov qword [r14 + 8], rsi
lea rdx, [rbp - 0x69]
mov rcx, r14
call fcn.14011b9f0
mov dword [rbp - 0x61], ebx
mov rax, qword [rbp - 0x69]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x61]
mov r8d, dword [rax + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14011efae
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14011efb3
mov ebx, 3
mov rax, qword [rbp - 0x69]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011efd0
cmp ecx, edi
je 0x14011efe5
mov ecx, edi
mov rax, qword [rbp - 0x69]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011efe5
mov edx, 1
mov rcx, qword [rbp - 0x69]
mov r8d, 8
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x41]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f003
cmp ecx, 0xffffffff
je 0x14011f015
mov ecx, edi
mov rax, qword [rbp - 0x41]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f015
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x41]
call fcn.140049bf0
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx]
test eax, eax
je 0x14011f031
cmp eax, 0xffffffff
je 0x14011f043
mov rcx, qword [rbp - 0x49]
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14011f043
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x49]
call fcn.140049bf0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret