Function at 0x46c900
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 0x46cbf7
call fcn.004d9069
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 0x46cc14
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.0047a880
add esp, 0xc
mov ecx, dword [ebp - 0x120]
mov eax, dword [0x648454]
mov byte [ebp - 4], 1
cmp eax, dword [ecx + 4]
jg 0x46cc5f
mov eax, dword [ebp - 0x11c]
cmp byte [eax + 0xf8], 0
je 0x46ca06
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call fcn.0047c6d0
add esp, 8
push dword [0x648440]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
cmp eax, 2
jl 0x46cb4b
push dword [0x64844c]
call edi
test eax, eax
jne 0x46cb4b
push dword [0x648440]
call edi
cmp eax, 0xa
jg 0x46cbbc
push 1
push 0x4000
call fcn.004d8c1a
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.0047a880
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.004d00d0
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.0047afe0
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.0047c380
push 0x1000
push dword [ebp - 0x114]
push edi
call fcn.004e59e0
lea eax, [ebp - 0x178]
mov byte [edi + 0xfff], 0
push edi
push eax
call fcn.0047c6d0
add esp, 0x20
lea ecx, [ebp - 0x138]
call fcn.00402150
jmp 0x46cbbc
push dword [0x64844c]
call edi
test eax, eax
je 0x46cb97
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.0047a880
push edi
push dword [ebp - 0x11c]
call fcn.0046ccb0
push edi
call fcn.004d2e13
add esp, 0x18
mov eax, dword [ebp - 0x11c]
mov ecx, eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
cmp dword [eax], 1
jne 0x46cbb7
call fcn.00470530
jmp 0x46cbbc
call fcn.00470230
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.0047a880
add esp, 0xc
call fcn.004d9069
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.004cdf2e
mov esp, ebp
pop ebp
ret 8
push 0x648448
call fcn.004ce06f
add esp, 4
cmp dword [0x648448], 0xffffffff
jne 0x46c98e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5bfea0
mov dword [0x648440], eax
mov dword [0x648444], 0
call fcn.004ce381
push 0x648448
call fcn.004ce025
add esp, 8
jmp 0x46c98e
push 0x648454
call fcn.004ce06f
add esp, 4
cmp dword [0x648454], 0xffffffff
jne 0x46c9e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5bfe60
mov dword [0x64844c], eax
mov dword [0x648450], 0x4d2e13
call fcn.004ce381
push 0x648454
call fcn.004ce025
add esp, 8
jmp 0x46c9e3