Function at 0x18001aa50
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rdi
lea rbp, [rsp - 0x1fc8]
mov eax, 0x20c8
call fcn.1800c19a0
sub rsp, rax
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
xor edi, edi
lea rcx, [rbp + 0x172]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x170], di
call fcn.1800be330
mov ecx, edi
lea rdx, str.C:log_
nop word [rax + rax]
movzx eax, word [rcx + rdx]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x16e], ax
test ax, ax
jne 0x18001aac0
lea rcx, [rbp + 0x7a2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x7a0], di
call fcn.1800be330
lea r8, [rbp + 0x170]
lea rdx, str._sgswb.log
lea rcx, [rbp + 0x380]
call fcn.1800b5a54
lea rcx, [rbp + 0x592]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x590], di
call fcn.1800be330
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x60], di
call fcn.1800be330
lea rdx, [rsp + 0x60]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x60]
mov edx, 0x5c
call fcn.1800b59a4
lea rcx, [rbp + 0x380]
mov word [rax], di
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18001ad5d
mov qword [rsp + 0x20c0], rbx
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x20b8], rsi
mov qword [rsp + 0x20b0], r14
lea rcx, [rsp + 0x60]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x18001aba0
lea rdx, [rsp + 0x62]
lea rax, [rdx + rax*2]
lea rdx, [rbp + 0x590]
sub rdx, rax
nop
movzx ecx, word [rax]
lea rax, [rax + 2]
mov word [rdx + rax - 2], cx
test cx, cx
jne 0x18001abc0
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x170]
lea rdx, str._s_s.txt
lea rcx, [rbp + 0x380]
call fcn.1800b5a54
mov r8, qword [rbp + 0x1fe0]
lea r9, [rbp + 0x1fe8]
lea rcx, [rbp + 0x7a0]
mov edx, 0x3ff
call fcn.1800bc150
xor ecx, ecx
call fcn.1800ba5a4
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.1800ba604
lea rcx, [rbp + 0x7a0]
mov r9d, dword [rax + 0x10]
mov r8d, dword [rax + 0x14]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rax]
lea rdx, str.__d__d__d__d__d__d_:_s
inc r9d
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 4]
add r8d, 0x76c
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax + 8]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0xfa0]
mov dword [rsp + 0x20], eax
call fcn.1800b5a54
lea rcx, [rbp + 0x380]
mov word [rbp + 0xf9e], di
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, [0x1801ec778]
lea rcx, [rbp + 0x380]
test eax, eax
mov r14d, 1
cmovne edi, r14d
call fcn.1800bc264
mov rsi, rax
test rax, rax
je 0x18001ad45
test edi, edi
jne 0x18001acd4
mov eax, 0xfeff
lea r8d, [r14 + 1]
lea rcx, [rsp + 0x54]
mov r9, rsi
mov edx, r14d
mov word [rsp + 0x54], ax
call fcn.1800bc4e0
lea rax, [rbp + 0xfa0]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18001ace0
add ebx, ebx
lea rcx, [rbp + 0xfa0]
mov r9, rsi
movsxd r8, ebx
mov rdx, r14
call fcn.1800bc4e0
mov eax, 0xd
lea rcx, [rsp + 0x50]
lea r8d, [rax - 0xb]
mov r9, rsi
mov rdx, r14
mov word [rsp + 0x50], ax
call fcn.1800bc4e0
mov eax, 0xa
lea rcx, [rsp + 0x50]
lea r8d, [rax - 8]
mov r9, rsi
mov rdx, r14
mov word [rsp + 0x50], ax
call fcn.1800bc4e0
mov rcx, rsi
call fcn.1800bc5ec
mov rsi, qword [rsp + 0x20b8]
mov rbx, qword [rsp + 0x20c0]
mov r14, qword [rsp + 0x20b0]
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.1800b5370
add rsp, 0x20c8
pop rdi
pop rbp
ret