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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x21f8]
mov eax, 0x22c8
call fcn.180204780
sub rsp, rax
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x21b0], rax
mov ebx, 0x208
lea rcx, [rbp + 0x170]
mov r8d, ebx
xor edx, edx
call fcn.180233580
mov edi, 0x104
lea r8, str.C:log_
mov edx, edi
lea rcx, [rbp + 0x170]
call fcn.180253150
xor edx, edx
lea rcx, [rbp + 0x9b0]
mov r8d, 0x800
call fcn.180233580
lea r9, [0x1802abf08]
lea r8, [rbp + 0x170]
lea rdx, str._s_s.log
lea rcx, [rbp + 0x380]
call fcn.1800601f0
mov r8d, ebx
lea rcx, [rbp + 0x590]
xor edx, edx
call fcn.180233580
mov r8d, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.180233580
mov r8d, edi
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x60]
call fcn.1802547d0
xor esi, esi
test rax, rax
je 0x180207da2
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x60]
call fcn.1802328bc
lea r9, [0x1802abf08]
lea r8, [rbp + 0x170]
lea rdx, [0x1802abef8]
lea rcx, [rbp + 0x7a0]
mov word [rax], si
call fcn.1800601f0
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180207da2
lea rcx, [rsp + 0x60]
call fcn.1802547d0
lea r8, [rsp + 0x62]
mov edx, edi
lea rcx, [rbp + 0x590]
lea r8, [r8 + rax*2]
call fcn.180253150
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x7a0]
lea rdx, str._s_s.txt
lea rcx, [rbp + 0x380]
call fcn.1800601f0
lea rbx, [rbp + 0x2208]
call fcn.18005b5e0
mov rcx, qword [rbp + 0x2200]
lea rdx, [rbp + 0x9b0]
mov r9d, 0x3ff
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.180238ed8
xor ecx, ecx
call fcn.18023b61c
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.18023d344
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rbx, rbx
je 0x180207da2
mov r9d, dword [rbx + 0x10]
lea rcx, [rbp + 0x9b0]
mov r8d, dword [rbx + 0x14]
lea r14d, [rsi + 1]
mov qword [rsp + 0x48], rcx
lea rdx, str.__d__d__d__d__d__d___d_:_s
mov ecx, dword [rbx]
add r9d, r14d
mov dword [rsp + 0x40], eax
add r8d, 0x76c
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], ecx
lea rcx, [rbp + 0x11b0]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x20], eax
call fcn.1802078d4
lea rcx, [rbp + 0x380]
mov word [rbp + 0x11ae], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, esi
lea rdx, [0x1802ac1d8]
test eax, eax
lea rcx, [rbp + 0x380]
cmovne edi, r14d
call fcn.1802396d4
mov rbx, rax
test rax, rax
je 0x180207da2
lea r15d, [rsi + 2]
test edi, edi
jne 0x180207d3d
mov eax, 0xfeff
lea rcx, [rsp + 0x54]
mov r9, rbx
mov word [rsp + 0x54], ax
mov r8d, r15d
mov edx, r14d
call fcn.180239d64
lea rcx, [rbp + 0x11b0]
call fcn.1802547d0
add eax, eax
lea rcx, [rbp + 0x11b0]
movsxd r8, eax
mov r9, rbx
mov rdx, r14
call fcn.180239d64
mov eax, 0xd
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov r8, r15
mov rdx, r14
call fcn.180239d64
mov eax, 0xa
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov r8, r15
mov rdx, r14
call fcn.180239d64
mov rcx, rbx
call fcn.180239ab8
mov rcx, qword [rbp + 0x21b0]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x22c8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret