Function at 0x14001f920
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x12680
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x12670], rax
mov ebx, edx
mov dword [rsp + 0x48], 0x2c
lea rdx, [rsp + 0x48]
mov edi, r8d
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov r8d, dword [rsp + 0x64]
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x68]
sub eax, r8d
cdq
mov dword [0x140081808], r8d
idiv ebx
mov dword [0x14008180c], ecx
mov ebx, 0x7fff
mov dword [0x1400815e4], eax
mov r8d, ebx
mov eax, dword [rsp + 0x70]
sub eax, ecx
mov rcx, qword [0x1400813c0]
cdq
idiv edi
lea rdx, [rsp + 0x2670]
mov dword [0x1400815e8], eax
mov eax, dword [rsp + 0x50]
mov dword [0x1400815ec], eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x2670]
call fcn.140022f20
mov ecx, ebx
lea rax, [rsp + 0x2670]
nop
cmp word [rax], 0
je 0x14001f9e0
add rax, 2
sub rcx, 1
jne 0x14001f9d0
xor esi, esi
lea rdi, str.options_unicode.bin
mov rax, rbx
mov r8d, esi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x14001fa4f
mov rdx, rbx
lea rcx, [rsp + 0x2670]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x14001fa41
lea rax, [r8 + 0x7fff8000]
mov r9, rdi
add rax, rdx
sub r9, rcx
nop
test rax, rax
je 0x14001fa41
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x14001fa41
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x14001fa20
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
lea rcx, [rsp + 0x2670]
call fcn.1400215a0
test eax, eax
jne 0x14001fb9c
lea r9d, [rax + 1]
xor ecx, ecx
lea r8d, [rax + 0x1a]
lea rdx, [rsp + 0x2670]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, rbx
lea rax, [rsp + 0x2670]
cmp word [rax], si
je 0x14001fa96
add rax, 2
sub rcx, 1
jne 0x14001fa87
mov rax, rbx
mov r8, rsi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x14001faff
mov rdx, rbx
lea rcx, [rsp + 0x2670]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x14001faf1
lea rax, [r8 + 0x7fff8000]
add rax, rdx
lea r9, [0x140058108]
sub r9, rcx
test rax, rax
je 0x14001faf1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x14001faf1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x14001fad0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
lea rcx, [rsp + 0x2670]
call fcn.140022220
test eax, eax
jne 0x14001fb20
xor edx, edx
lea rcx, [rsp + 0x2670]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rbx
lea rax, [rsp + 0x2670]
nop dword [rax + rax]
cmp word [rax], si
je 0x14001fb3f
add rax, 2
sub rcx, 1
jne 0x14001fb30
mov rax, rbx
mov rdx, rsi
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x14001fb9c
lea rcx, [rsp + 0x2670]
lea rcx, [rcx + rdx*2]
sub rbx, rdx
je 0x14001fb8e
lea rax, [rdx + 0x7fff8000]
add rax, rbx
sub rdi, rcx
nop
test rax, rax
je 0x14001fb8e
movzx edx, word [rdi + rcx]
test dx, dx
je 0x14001fb8e
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x14001fb70
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x2670]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fc0e
lea rdx, [0x1400813d0]
lea rcx, [rsp + 0x80]
call fcn.14001d730
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0x25e4
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x12670]
xor rcx, rsp
call fcn.140041820
add rsp, 0x12680
pop rdi
pop rsi
pop rbx
ret