Function at 0x454b84
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.0045493d
call fcn.00446452
mov ecx, eax
call fcn.0043b312
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x454baa
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6ce8], dl
je 0x454bf9
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x454bf9
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454bfb
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x454bfb
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x454c49
cmp esi, 0xffffffff
je 0x454c49
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x454c3f
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c6cec]
jmp 0x454c4b
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 4], esp
je 0x454c8f
cmp esi, 0xffffffff
je 0x454c8f
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x454c91
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x454c91
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x454cdd
cmp eax, 0xffffffff
je 0x454cdd
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454cd3
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c6cec]
mov dword [ebp - 4], esi
jmp 0x454ce1
and dword [ebp - 4], 0
cmp byte [0x4c6ce8], 0
je 0x454d1c
cmp eax, 0xffffffff
je 0x454d1c
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x454d18
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x454d1e
xor edi, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
call fcn.00446452
mov ecx, eax
call fcn.0043b312
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, eax
call fcn.004549d3
mov esi, eax
test esi, esi
jne 0x454d50
mov eax, 0x49013b
push 0x490f90
push str.main
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x44362d6
push eax
push dword [ebp - 8]
push str._s_h_sv_dol_Uul_Utk_Uc_U
call fcn.0043c7f6
add esp, 0x20
mov ecx, esi
mov edi, eax
call fcn.004444fe
mov eax, edi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret