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

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x00522be8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x38], rcx
lea rax, [0x004f0368]
mov qword [rcx], rax
add rcx, 0x10
call fcn.00474d90
nop
lea rcx, [rbx + 0x28]
xor edi, edi
mov qword [rcx], rdi
call fcn.0045ee40
nop
mov qword [rbx + 0x150], rdi
mov qword [rbx + 0x158], rdi
mov qword [rbx + 0x160], rdi
lea rcx, [rbx + 0x3f0]
call fcn.00404e90
nop
lea rax, [0x004ebcd0]
mov qword [rbx + 0x580], rax
lea rsi, [rbx + 0xdc0]
mov qword [rsi], rdi
mov eax, dword [0x005272ac]
test al, 1
jne 0x464a70
or eax, 1
mov dword [0x005272ac], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x005272a8], eax
jmp 0x464a76
mov eax, dword [0x005272a8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x464a9c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x005272a8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x40]
lea rcx, str.SynCom.SynAPI
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
mov qword [rsp + 0x20], rsi
lea r9, str.c_a2A
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lea r11, method.h.virtual_0
mov qword [rbx + 0xdb8], r11
lea rcx, [rbx + 0xe00]
call fcn.004075e0
nop
lea rax, [0x004eaf80]
mov qword [rbx + 0xe48], rax
lea rcx, [rbx + 0xe68]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbx + 0xe64], 1
mov qword [rbx + 0xe50], rdi
mov qword [rbx + 0xe58], rdi
mov dword [rbx + 0xe60], edi
lea rax, [0x004eb0f8]
mov qword [rbx + 0xe48], rax
lea rcx, [rbx + 0xea0]
call fcn.0045ed50
nop
lea rcx, [rbx + 0xee0]
call fcn.0045ef30
nop
mov dword [rbx + 0x184], 1
mov qword [rbx + 0x1b0], rdi
mov dword [rbx + 0x1b8], edi
mov qword [rbx + 0x130], rdi
mov qword [rbx + 0x1d0], rdi
mov qword [rbx + 0x3e8], rdi
mov qword [rbx + 0xdc8], rdi
mov qword [rbx + 0xdd0], rdi
mov qword [rbx + 0xde0], rdi
mov qword [rbx + 0xdd8], rdi
mov word [rbx + 0x1e0], 0
mov dword [rbx + 0xc], 1
mov dword [rbx + 0x198], edi
mov dword [rbx + 0x168], 0xffffffff
mov dword [rbx + 0x194], edi
mov qword [rbx + 0x170], rdi
mov qword [rbx + 0x178], rdi
mov dword [rbx + 8], edi
mov dword [rbx + 0x16c], edi
mov qword [rbx + 0xde8], rdi
mov qword [rbx + 0xdf0], rdi
mov qword [rbx + 0xdf8], rdi
mov dword [rbx + 0xda8], 2
mov dword [rbx + 0x19c], 0xffffffff
mov dword [rbx + 0xdac], edi
mov dword [rbx + 0xdb0], edi
mov dword [rbx + 0x1a8], edi
mov dword [rbx + 0x138], edi
mov dword [rbx + 0x1a0], edi
mov dword [rbx + 0x1a4], edi
mov dword [rbx + 0x1ac], edi
mov qword [rbx + 0x1c0], rdi
mov dword [rbx + 0x1c8], edi
mov dword [rbx + 0xe98], edi
mov dword [rbx + 0x180], edi
mov dword [rbx + 0xed4], edi
mov dword [rbx + 0xed0], edi
mov dword [rbx + 0xed8], edi
mov qword [rbx + 0xec8], rdi
mov dword [rbx + 0xf08], edi
mov qword [rbx + 0xf10], rdi
mov qword [rbx + 0xf18], rdi
mov dword [rbx + 0xf20], 1
mov dword [rbx + 0xe9c], edi
mov ecx, 0x228
call fcn.004a7ed0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x464c99
mov edx, 0x64
mov rcx, rax
call fcn.00487740
mov rdi, rax
mov qword [rbx + 0x140], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.004a7100
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
add rsp, 0x68
ret