Function at 0x454bac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 5
mov dword [ebp - 8], ecx
pop edx
lea ecx, [ebp - 0x10]
call fcn.00454965
call fcn.00446475
mov ecx, eax
call fcn.0043b2d0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x454bd2
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c5ce8], dl
je 0x454c21
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x454c21
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454c23
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x454c23
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x454c71
cmp esi, 0xffffffff
je 0x454c71
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x454c67
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c5cec]
jmp 0x454c73
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 4], esp
je 0x454cb7
cmp esi, 0xffffffff
je 0x454cb7
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x454cb9
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x454cb9
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x454d05
cmp eax, 0xffffffff
je 0x454d05
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454cfb
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c5cec]
mov dword [ebp - 4], esi
jmp 0x454d09
and dword [ebp - 4], 0
cmp byte [0x4c5ce8], 0
je 0x454d44
cmp eax, 0xffffffff
je 0x454d44
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454d40
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x454d46
xor edi, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
call fcn.00446475
mov ecx, eax
call fcn.0043b2d0
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, eax
call fcn.004549fb
mov esi, eax
test esi, esi
jne 0x454d78
mov eax, 0x48f13b
push 0x48ff90
push str.main
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x44363be
push eax
push dword [ebp - 8]
push str._s_h_sv_dol_Uul_Utk_Uc_U
call fcn.0043c7b4
add esp, 0x20
mov ecx, esi
mov edi, eax
call fcn.00444521
mov eax, edi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret