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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bca56
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x11c], eax
cmp byte [eax + 0xf9], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x114], ecx
jne 0x46cc47
call fcn.004d9099
mov esi, dword [eax]
mov dword [ebp - 0x124], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x648e8c]
mov dword [ebp - 4], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x648448]
mov dword [ebp - 0x120], ecx
cmp eax, dword [ecx + 4]
jg 0x46cc64
push dword [0x648440]
mov dword [ebp - 0x128], 0x648440
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [eax + 1]
push edi
push dword [0x648440]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push dword [0x648444]
push 0x648440
call fcn.0047a8a0
add esp, 0xc
mov ecx, dword [ebp - 0x120]
mov eax, dword [0x648454]
mov byte [ebp - 4], 1
cmp eax, dword [ecx + 4]
jg 0x46ccaf
mov eax, dword [ebp - 0x11c]
cmp byte [eax + 0xf8], 0
je 0x46ca56
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call fcn.0047c6f0
add esp, 8
push dword [0x648440]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
cmp eax, 2
jl 0x46cb9b
push dword [0x64844c]
call edi
test eax, eax
jne 0x46cb9b
push dword [0x648440]
call edi
cmp eax, 0xa
jg 0x46cc0c
push 1
push 0x4000
call fcn.004d8c4a
add esp, 8
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push dword [0x64844c]
call eax
push edi
push dword [0x648450]
push 0x64844c
call fcn.0047a8a0
mov eax, dword [ebp - 0x118]
push 0x100
push 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x178], xmm0
mov dword [ebp - 0x178], 5
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x168], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x158], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [ebp - 0x110]
push eax
movups xmmword [ebp - 0x148], xmm0
call fcn.004d0100
add esp, 0x18
push dword [0x648440]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push str.ERROR____xlogger_appender_Recursive_calls_____count:_d
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.004021b0
add esp, 0x10
lea ecx, [ebp - 0x138]
push 0x4000
push 0
push edi
call fcn.0047b000
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.0047c3a0
push 0x1000
push dword [ebp - 0x114]
push edi
call fcn.004e5a10
lea eax, [ebp - 0x178]
mov byte [edi + 0xfff], 0
push edi
push eax
call fcn.0047c6f0
add esp, 0x20
lea ecx, [ebp - 0x138]
call fcn.00402150
jmp 0x46cc0c
push dword [0x64844c]
call edi
test eax, eax
je 0x46cbe7
push dword [0x64844c]
call edi
push 0
push dword [0x64844c]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
push 0
push dword [0x648450]
push 0x64844c
call fcn.0047a8a0
push edi
push dword [ebp - 0x11c]
call fcn.0046cd00
push edi
call fcn.004d2e43
add esp, 0x18
mov eax, dword [ebp - 0x11c]
mov ecx, eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
cmp dword [eax], 1
jne 0x46cc07
call fcn.00470590
jmp 0x46cc0c
call fcn.00470290
push dword [0x648440]
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [eax - 1]
push edi
push dword [0x648440]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push dword [0x648444]
push 0x648440
call fcn.0047a8a0
add esp, 0xc
call fcn.004d9099
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret 8
push 0x648448
call fcn.004ce09f
add esp, 4
cmp dword [0x648448], 0xffffffff
jne 0x46c9de
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5bfea0
mov dword [0x648440], eax
mov dword [0x648444], 0
call fcn.004ce3b1
push 0x648448
call fcn.004ce055
add esp, 8
jmp 0x46c9de
push 0x648454
call fcn.004ce09f
add esp, 4
cmp dword [0x648454], 0xffffffff
jne 0x46ca33
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5bfe60
mov dword [0x64844c], eax
mov dword [0x648450], 0x4d2e43
call fcn.004ce3b1
push 0x648454
call fcn.004ce055
add esp, 8
jmp 0x46ca33