Function at 0x46be40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax - 8], rdi
mov rax, qword [0x00522be8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rcx + 8], 4
lea rax, [0x004f1288]
mov qword [rcx], rax
lea rdi, [rcx + 0x30]
xor ebp, ebp
mov qword [rdi], rbp
mov eax, dword [0x005260a4]
test al, 1
jne 0x46bead
or eax, 1
mov dword [0x005260a4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x005260a0], eax
jmp 0x46beb3
mov eax, dword [0x005260a0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x46bed9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x005260a0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x38]
lea rcx, str.SynCom.SynPacket
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
mov qword [rsp + 0x20], rdi
lea r9, [0x004e7fa8]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
lea rsi, [0x004f1250]
mov qword [rbx + 0x568], rsi
lea rdi, [0x004f11f8]
mov qword [rbx + 0x580], rdi
lea rcx, [rbx + 0x5a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x59c], 1
mov qword [rbx + 0x588], rbp
mov qword [rbx + 0x590], rbp
mov dword [rbx + 0x598], ebp
mov dword [rbx + 0x570], ebp
mov qword [rbx + 0x578], rbp
mov qword [rbx + 0x5c8], rsi
mov qword [rbx + 0x5e0], rdi
lea rcx, [rbx + 0x600]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x5fc], 1
mov qword [rbx + 0x5e8], rbp
mov qword [rbx + 0x5f0], rbp
mov dword [rbx + 0x5f8], ebp
mov dword [rbx + 0x5d0], ebp
mov qword [rbx + 0x5d8], rbp
mov qword [rbx + 0x628], rsi
mov qword [rbx + 0x640], rdi
lea rcx, [rbx + 0x660]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x65c], 1
mov qword [rbx + 0x648], rbp
mov qword [rbx + 0x650], rbp
mov dword [rbx + 0x658], ebp
mov dword [rbx + 0x630], ebp
mov qword [rbx + 0x638], rbp
mov qword [rbx + 0x688], rsi
mov qword [rbx + 0x6a0], rdi
lea rcx, [rbx + 0x6c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x6bc], 1
mov qword [rbx + 0x6a8], rbp
mov qword [rbx + 0x6b0], rbp
mov dword [rbx + 0x6b8], ebp
mov dword [rbx + 0x690], ebp
mov qword [rbx + 0x698], rbp
mov qword [rbx + 0x6e8], rsi
mov qword [rbx + 0x700], rdi
lea rcx, [rbx + 0x720]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x71c], 1
mov qword [rbx + 0x708], rbp
mov qword [rbx + 0x710], rbp
mov dword [rbx + 0x718], ebp
mov dword [rbx + 0x6f0], ebp
mov qword [rbx + 0x6f8], rbp
mov qword [rbx + 0x748], rsi
mov qword [rbx + 0x760], rdi
lea rcx, [rbx + 0x780]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x77c], 1
mov qword [rbx + 0x768], rbp
mov qword [rbx + 0x770], rbp
mov dword [rbx + 0x778], ebp
mov dword [rbx + 0x750], ebp
mov qword [rbx + 0x758], rbp
mov qword [rbx + 0x7a8], rsi
mov qword [rbx + 0x7c0], rdi
lea rcx, [rbx + 0x7e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x7dc], 1
mov qword [rbx + 0x7c8], rbp
mov qword [rbx + 0x7d0], rbp
mov dword [rbx + 0x7d8], ebp
mov dword [rbx + 0x7b0], ebp
mov qword [rbx + 0x7b8], rbp
mov qword [rbx + 0x808], rsi
mov qword [rbx + 0x820], rdi
lea rcx, [rbx + 0x840]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x83c], 1
mov qword [rbx + 0x828], rbp
mov qword [rbx + 0x830], rbp
mov dword [rbx + 0x838], ebp
mov dword [rbx + 0x810], ebp
mov qword [rbx + 0x818], rbp
mov qword [rbx + 0x868], rsi
mov qword [rbx + 0x880], rdi
lea rcx, [rbx + 0x8a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x89c], 1
mov qword [rbx + 0x888], rbp
mov qword [rbx + 0x890], rbp
mov dword [rbx + 0x898], ebp
mov dword [rbx + 0x870], ebp
mov qword [rbx + 0x878], rbp
mov qword [rbx + 0x8c8], rsi
mov qword [rbx + 0x8e0], rdi
lea rcx, [rbx + 0x900]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x8fc], 1
mov qword [rbx + 0x8e8], rbp
mov qword [rbx + 0x8f0], rbp
mov dword [rbx + 0x8f8], ebp
mov dword [rbx + 0x8d0], ebp
mov qword [rbx + 0x8d8], rbp
mov qword [rbx + 0x928], rsi
mov qword [rbx + 0x940], rdi
lea rcx, [rbx + 0x960]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x95c], 1
mov qword [rbx + 0x948], rbp
mov qword [rbx + 0x950], rbp
mov dword [rbx + 0x958], ebp
mov dword [rbx + 0x930], ebp
mov qword [rbx + 0x938], rbp
mov qword [rbx + 0x988], rsi
mov qword [rbx + 0x9a0], rdi
lea rcx, [rbx + 0x9c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0x9bc], 1
mov qword [rbx + 0x9a8], rbp
mov qword [rbx + 0x9b0], rbp
mov dword [rbx + 0x9b8], ebp
mov dword [rbx + 0x990], ebp
mov qword [rbx + 0x998], rbp
mov qword [rbx + 0x9e8], rsi
mov qword [rbx + 0xa00], rdi
lea rcx, [rbx + 0xa20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0xa1c], 1
mov qword [rbx + 0xa08], rbp
mov qword [rbx + 0xa10], rbp
mov dword [rbx + 0xa18], ebp
mov dword [rbx + 0x9f0], ebp
mov qword [rbx + 0x9f8], rbp
mov qword [rbx + 0xa48], rsi
mov qword [rbx + 0xa60], rdi
lea rcx, [rbx + 0xa80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0xa7c], 1
mov qword [rbx + 0xa68], rbp
mov qword [rbx + 0xa70], rbp
mov dword [rbx + 0xa78], ebp
mov dword [rbx + 0xa50], ebp
mov qword [rbx + 0xa58], rbp
mov qword [rbx + 0xab8], rbp
mov qword [rbx + 0xac0], rbp
mov qword [rbx + 0xac8], rbp
mov qword [0x005272c8], rbx
mov dword [rbx + 0xc], 0x11
mov dword [rbx + 0x560], 0x11
mov dword [rbx + 0x38], ebp
mov dword [rbx + 0x3c], ebp
mov dword [rbx + 0x40], ebp
mov byte [rbx + 0x10], 0
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x20], ebp
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x28], ebp
mov dword [rbx + 0x2c], ebp
mov dword [rbx + 0x60], ebp
mov dword [rbx + 0x64], ebp
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0x50], rbp
xor eax, eax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x90], rax
mov qword [rbx + 0x98], rax
mov qword [rbx + 0x58], rbp
mov dword [rbx + 0xa0], 0x69
mov dword [rbx + 0xa4], 0x6b
mov qword [rbx + 0xa8], rbp
mov qword [rbx + 0xb0], rbp
mov qword [rbx + 0xb8], rbp
mov qword [rbx + 0xc0], rbp
mov qword [rbx + 0xc8], rbp
mov qword [rbx + 0xd0], rbp
mov qword [rbx + 0xd8], rbp
mov qword [rbx + 0xe0], rbp
mov qword [rbx + 0xe8], rbp
mov qword [rbx + 0xf0], rax
mov qword [rbx + 0xf8], rax
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x108], rax
mov qword [rbx + 0x110], rax
mov qword [rbx + 0x118], rax
mov qword [rbx + 0x120], rax
mov qword [rbx + 0x128], rax
mov dword [rbx + 0xae0], ebp
mov dword [rbx + 0xae4], ebp
mov qword [rbx + 0x130], rbp
mov dword [rbx + 0x68], ebp
movabs rax, 0x3ff0000000000000
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x138], rbp
mov qword [rbx + 0x140], rbp
mov qword [rbx + 0x148], rbp
mov qword [rbx + 0x150], rbp
mov qword [rbx + 0x158], rbp
mov qword [rbx + 0x160], rbp
mov dword [rbx + 0xad0], ebp
mov dword [rbx + 0xaac], ebp
mov qword [rbx + 0xad8], rbp
mov word [rbx + 0xb0c], 0
mov word [rbx + 0xd14], 0
mov dword [rbx + 0xae8], 1
mov dword [rbx + 0xaf4], ebp
mov dword [rbx + 0xaf8], ebp
mov dword [rbx + 0xaec], ebp
mov dword [rbx + 0x538], ebp
mov dword [rbx + 0xb00], 1
mov dword [rbx + 0x53c], 0x67
mov dword [rbx + 0x540], 0x67
mov dword [rbx + 0x544], 0x67
mov dword [rbx + 0xafc], ebp
mov dword [rbx + 0xb08], ebp
mov dword [rbx + 0x548], ebp
mov dword [rbx + 0x54c], ebp
mov dword [rbx + 0x550], ebp
mov dword [rbx + 0x554], 0xa8
mov dword [rbx + 0x558], 0x4d5
mov dword [rbx + 0x55c], 0x4d6
mov word [rbx + 0xf1c], 0
mov word [rbx + 0x1124], 0
mov dword [rbx + 0xb04], ebp
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.004a7100
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
ret