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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov qword [rsp + 0x198], 0xfffffffffffffffe
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005310
nop
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140005310
nop
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140005310
nop
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005310
nop
lea rcx, [rsp + 0x40]
call fcn.1401acf80
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x1b0]
call fcn.140004ac0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140004ac0
lea rax, [0x14021bc00]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x1401afec9
mov dword [rsp + 0xa8], 0
jmp 0x1401afedd
mov rcx, qword [rsp + 0xa0]
call fcn.14002f9b0
mov dword [rsp + 0xa8], eax
mov r8d, dword [rsp + 0xa8]
lea rdx, [0x14021bc00]
lea rcx, [rsp + 0x70]
call fcn.140004560
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140004ac0
mov r9, 0xffffffff80000001
lea r8, [rsp + 0x88]
lea rdx, [0x14021bc10]
lea rcx, [0x14021bc20]
call fcn.1401a63a0
test eax, eax
jne 0x1401aff4c
mov r9, 0xffffffff80000001
mov r8, qword [rsp + 0x70]
lea rdx, [0x14021bc48]
lea rcx, [0x14021bc58]
call fcn.1401a6580
jmp 0x1401aff5e
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x70]
call fcn.140004ac0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1401b003b
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x1401b003b
mov dword [rsp + 0x90], 0
mov rax, qword [rsp + 0x48]
sub rax, 0x18
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140005390
nop
mov rax, qword [rsp + 0x88]
sub rax, 0x18
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140005390
nop
mov rax, qword [rsp + 0x70]
sub rax, 0x18
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140005390
nop
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.140005390
mov eax, dword [rsp + 0x90]
jmp 0x1401b038a
lea rax, str.RUPLogsData.ini
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x1401b0062
mov dword [rsp + 0xe8], 0
jmp 0x1401b0076
mov rcx, qword [rsp + 0xe0]
call fcn.14002f9b0
mov dword [rsp + 0xe8], eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.RUPLogsData.ini
mov rcx, qword [rsp + 0x1b0]
call fcn.140004560
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1401b0151
mov dword [rsp + 0x94], 1
mov rax, qword [rsp + 0x48]
sub rax, 0x18
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140005390
nop
mov rax, qword [rsp + 0x88]
sub rax, 0x18
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call fcn.140005390
nop
mov rax, qword [rsp + 0x70]
sub rax, 0x18
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call fcn.140005390
nop
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.140005390
mov eax, dword [rsp + 0x94]
jmp 0x1401b038a
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x1401b01f3
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x48]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x88]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x70]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400053e0
mov eax, dword [rsp + 0x98]
jmp 0x1401b038a
mov eax, 0xfeff
mov word [rsp + 0x50], ax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [0x14021bca8]
lea rcx, [rsp + 0x78]
call fcn.1400062b0
nop
mov rax, qword [rsp + 0x78]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x154], eax
movsxd rax, dword [rsp + 0x154]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call fcn.1401b8850
nop
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x58]
call fcn.1401b8780
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
lea r8, [0x14021bce8]
lea rdx, [0x14021bd00]
lea rcx, [rsp + 0x58]
call fcn.1401b8cd0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1401b0303
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1401ae9f0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1401b0334
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x1b0]
call fcn.1401ae9f0
mov dword [rsp + 0x9c], 1
lea rcx, [rsp + 0x58]
call fcn.1401b8800
nop
lea rcx, [rsp + 0x78]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x48]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x88]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x70]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400053e0
mov eax, dword [rsp + 0x9c]
add rsp, 0x1a8
ret