Function at 0x18000e050
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 rsi
lea rbp, [rsp - 0x1fc8]
mov eax, 0x20c8
call fcn.18001dc70
sub rsp, rax
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
xor edx, edx
lea rcx, [rbp + 0x380]
mov r8d, 0x208
call fcn.18001f6b0
lea r8, str.C:log_
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.180027a04
xor edx, edx
lea rcx, [rbp + 0x7a0]
mov r8d, 0x800
call fcn.18001f6b0
lea r9, str.PuddingZip
lea r8, [rbp + 0x380]
lea rdx, str._s_s.log
lea rcx, [rbp + 0x170]
call fcn.18000a120
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.18001f6b0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.180020efc
xor esi, esi
lea rcx, [rbp + 0x170]
mov word [rax], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000e33d
mov qword [rsp + 0x20c0], rbx
lea rcx, [rsp + 0x60]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x20b8], rdi
mov rax, rbx
mov qword [rsp + 0x20b0], r14
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x18000e173
lea r8, [rsp + 0x62]
mov edx, 0x104
lea r8, [r8 + rax*2]
lea rcx, [rbp + 0x590]
call fcn.180027a04
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x380]
lea rdx, str._s_s.txt
lea rcx, [rbp + 0x170]
call fcn.18000a120
lea rdi, [rbp + 0x1fe8]
call fcn.1800054d0
mov rcx, qword [rbp + 0x1fe0]
lea rdx, [rbp + 0x7a0]
mov r9d, 0x3ff
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.1800248bc
xor ecx, ecx
call fcn.180025a18
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.1800279bc
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x40], rcx
lea rdx, str.__d__d__d__d__d__d_:_s
mov ecx, dword [rax]
mov r9d, dword [rax + 0x10]
mov r8d, dword [rax + 0x14]
inc r9d
mov dword [rsp + 0x38], ecx
add r8d, 0x76c
mov ecx, dword [rax + 4]
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.18000dd10
lea rcx, [rbp + 0x170]
mov word [rbp + 0xf9e], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r14d, 1
lea rdx, [0x180041228]
test eax, eax
lea rcx, [rbp + 0x170]
cmovne esi, r14d
call fcn.180021fc4
mov rdi, rax
test rax, rax
je 0x18000e325
test esi, esi
jne 0x18000e2b7
mov eax, 0xfeff
lea r8d, [r14 + 1]
mov r9, rdi
mov word [rsp + 0x54], ax
mov edx, r14d
lea rcx, [rsp + 0x54]
call fcn.180022210
lea rax, [rbp + 0xfa0]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000e2c0
add ebx, ebx
lea rcx, [rbp + 0xfa0]
movsxd r8, ebx
mov r9, rdi
mov rdx, r14
call fcn.180022210
mov eax, 0xd
lea rcx, [rsp + 0x50]
mov r9, rdi
mov word [rsp + 0x50], ax
mov rdx, r14
lea r8d, [rax - 0xb]
call fcn.180022210
mov eax, 0xa
lea rcx, [rsp + 0x50]
mov r9, rdi
mov word [rsp + 0x50], ax
mov rdx, r14
lea r8d, [rax - 8]
call fcn.180022210
mov rcx, rdi
call fcn.180021e74
mov rdi, qword [rsp + 0x20b8]
mov rbx, qword [rsp + 0x20c0]
mov r14, qword [rsp + 0x20b0]
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x20c8
pop rsi
pop rbp
ret