Function at 0x180110fb0
Capabilities:
Allocate thread local storage
Delete file
Get file size
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword gs:[0x58]
xor ebx, ebx
mov ecx, dword [0x1802efab8]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x1802f1668], eax
jle 0x180111071
lea rcx, [0x1802f1668]
call fcn.1801c7ad4
cmp dword [0x1802f1668], 0xffffffff
jne 0x180111071
lea rax, vtable.CSTLogFile.0
mov qword [0x1802f1328], 0xffffffffffffffff
xor edx, edx
mov qword [0x1802f1320], rax
mov r8d, 0x20a
mov dword [0x1802f1568], ebx
lea rcx, [0x1802f1330]
mov dword [0x1802f1660], ebx
call fcn.1801c9e80
lea rcx, [0x1802f1540]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x1802001f0]
mov dword [0x1802f156c], eax
call fcn.1801c78d4
lea rcx, [0x1802f1668]
call fcn.1801c7a74
cmp dword [0x1802f1568], ebx
mov qword [rsp + 0x2b0], rsi
jne 0x18011127b
mov ecx, dword [0x1802f156c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x1802f1568], ebx
jne 0x18011127b
lea rcx, [0x1802f1540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x1802f0b10]
mov edx, 0x105
lea rcx, [0x1802f1330]
call fcn.1801d0678
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1802f0b10]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1802f1328], rax
lea rsi, [0x1802f1320]
cmp rax, 0xffffffffffffffff
je 0x180111269
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
jb 0x180111174
mov rcx, qword [0x1802f1328]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1802f0b10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1802f0b10]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1802f1328], rax
jmp 0x18011117b
mov rax, qword [0x1802f1328]
cmp rax, 0xffffffffffffffff
je 0x180111269
mov r9d, 2
mov qword [rsp + 0x2b8], rdi
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, 0x104
mov dword [0x1802f1568], 1
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x68]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [0x180249e20]
mov rcx, rsi
call fcn.1801115b0
movzx ecx, word [rsp + 0x76]
lea rax, str.09:57:37
movzx edx, word [rsp + 0x74]
movzx r10d, word [rsp + 0x72]
movzx r11d, word [rsp + 0x70]
movzx ebx, word [rsp + 0x6e]
movzx r9d, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, str.Aug_18_2023
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ecx
mov rcx, rsi
mov dword [rsp + 0x38], edx
lea rdx, str.Log_at:__04u__02u__02u__02u:_02u:_02u:_03u__compiled:__s__s
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call fcn.1801115b0
lea r9, [rsp + 0x80]
mov r8d, edi
lea rdx, str.PID:__04u__Exe:__s
mov rcx, rsi
call fcn.1801115b0
mov rdi, qword [rsp + 0x2b8]
lea rcx, [0x1802f1540]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rsi
jmp 0x180111282
lea rax, [0x1802f1320]
mov rsi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x2a0
pop rbx
ret