Function at 0x1800bb7f0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801c1080]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rsi, rdx
mov r12, rcx
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x50], edi
test rcx, rcx
jne 0x1800bb849
mov eax, 0x80070057
jmp 0x1800bbbc8
mov qword [rsp + 0x48], rdi
mov rax, qword [rcx]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [rax + 0x58]
test eax, eax
jns 0x1800bb877
mov edi, 0x80004005
jmp 0x1800bbbb6
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1801099b0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x70]
lea edx, [r9 + 1]
call qword [rax + 0x18]
test eax, eax
jne 0x1800bbbb6
nop word [rax + rax]
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x1800bba51
mov qword [rsp + 0x40], rdi
mov rax, qword [r12]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, r12
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800bba4c
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], di
or r15d, 1
mov dword [rsp + 0x50], r15d
mov ebx, r15d
mov rdx, qword [rsi + 0x10]
inc rdx
lea rcx, [rbp - 0x20]
call fcn.1800531d0
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800bb934
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x20]
call fcn.180053290
mov r8d, 1
lea rdx, [0x180179e58]
lea rcx, [rbp - 0x20]
call fcn.180053290
mov rdx, qword [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800bb963
lea rcx, [rbp - 0x20]
call fcn.180053290
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
or r15d, 2
mov dword [rsp + 0x50], r15d
mov r8d, 1
lea rdx, [0x180179e58]
lea rcx, [rbp]
call fcn.180053290
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov r15d, ebx
or r15d, 6
lea rcx, [rbp]
call fcn.18004f5d0
and r15d, 0xfffffffe
lea rcx, [rbp - 0x20]
call fcn.18004f5d0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800bba1c
test al, 0x10
jne 0x1800bba2f
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call fcn.18005d760
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x40]
call fcn.1800bb7f0
nop
lea rcx, [rbp - 0x40]
call fcn.18004f5d0
mov rcx, qword [rsp + 0x40]
jmp 0x1800bbb81
cmp eax, 2
jne 0x1800bbb8c
mov qword [rsp + 0x40], rdi
mov rax, qword [r12]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9d, 0x10
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, r12
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800bbb81
mov ebx, dword [rbp - 0x80]
mov ecx, ebx
call fcn.180116654
mov r14, rax
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x40]
mov r10, qword [rcx]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rdx, rax
call qword [r10 + 0x18]
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800bbac9
mov r8, qword [rsi]
mov edx, 0x104
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x20]
sub r8, rcx
nop dword [rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x1800bbb03
movzx ecx, word [rax + r8]
test cx, cx
je 0x1800bbb03
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1800bbae0
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
mov word [rcx], di
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800bbb74
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r14
call fcn.1801164d4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800bbb8c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x70]
lea edx, [r9 + 1]
call qword [rax + 0x18]
test eax, eax
je 0x1800bb8b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800bbbc6
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1801027e0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret