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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001376f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1001d054]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x1001d054]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0
lea esi, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.10004394
and dword [esp + 0x98], 0
push 0x100155d4
push edi
call fcn.10008dc1
test eax, eax
pop ecx
pop ecx
jne 0x1000cd3e
mov edi, 0x80020001
or dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x48]
call fcn.100043ba
mov eax, edi
jmp 0x1000d3ad
push dword [0x1001dcfc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x1000cda6
push 1
push dword [0x1001dcd8]
call esi
push 1
push dword [0x1001dcdc]
call esi
push 0
push dword [0x1001dcf8]
call esi
push 1
push dword [0x1001dce8]
call esi
push 0
push dword [0x1001dd00]
call esi
push 0
push dword [0x1001dce4]
call esi
push 0
push dword [0x1001dcec]
call esi
push 1
push dword [0x1001dcfc]
call esi
cmp dword [ebp + 0xc], 0xfa
jne 0x1000ce83
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000d21c
cmp dword [eax + 8], 7
jne 0x1000d21c
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x1000cdd5
call fcn.10001cb8
cmp dword [ebx + 8], 0
je 0x1000cde5
push 1
push dword [0x1001dcec]
call esi
push dword [0x1001dcd8]
and dword [ebx + 8], 0
call edi
test eax, eax
je 0x1000d39a
push 0
push dword [0x1001dcd8]
call esi
test eax, eax
je 0x1000d39a
call fcn.100056eb
test eax, eax
je 0x1000d39a
mov eax, dword [esp + 0x1c]
and dword [esp + 0x14], 0
mov eax, dword [eax]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x10015594
push eax
call dword [ecx]
push dword [esp + 0x14]
push dword [0x1001dce4]
call esi
push 1
push dword [0x1001dd00]
call esi
push dword [0x1001dcf4]
mov dword [ebx + 0x34], 1
call edi
test eax, eax
jne 0x1000ce67
push ebx
push dword [0x1001dcf4]
call esi
cmp dword [ebx + 0x2c], 0
jne 0x1000ce74
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov dword [0x1001dd7c], 1
jmp 0x1000d39a
cmp dword [ebp + 0xc], 0xfc
jne 0x1000d19e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000d21c
cmp dword [eax + 8], 2
jne 0x1000d21c
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
and dword [esp + 0x18], 0
test eax, eax
je 0x1000cec3
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x10015814
push eax
call dword [ecx]
mov byte [esp + 0x98], 1
push dword [0x1001dce4]
call edi
mov ecx, eax
cmp ecx, dword [esp + 0x18]
jne 0x1000cfcd
cmp dword [esp + 0x18], 0
je 0x1000cfcd
and word [esp + 0x24], 0
xor eax, eax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.10001ef7
mov eax, dword [esp + 0x1c]
push 8
push 0
push dword [eax]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x1000cfc7
xor edi, edi
cmp dword [ebx + 4], edi
je 0x1000cfbd
push dword [0x1001dcf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000cfbd
inc eax
cmp dword [ebx + 0xc], eax
jne 0x1000cfbd
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp dword [ebx + 0x28], 8
jb 0x1000cf5d
mov eax, dword [ebx + 0x14]
jmp 0x1000cf60
lea eax, [ebx + 0x14]
cmp eax, edi
jne 0x1000d081
mov dword [esp + 0x14], edi
push edi
push edi
push edi
mov byte [esp + 0xa4], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edi
push dword [esp + 0x24]
push eax
call dword [ecx + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x24], esp
je 0x1000cfa1
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [esp + 0x38]
push eax
call fcn.10004786
mov byte [esp + 0x98], 1
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [0x1001dcdc]
mov dword [0x1001ddb0], 1
call edi
test eax, eax
je 0x1000d18d
push 0
push dword [0x1001dcdc]
call esi
test eax, eax
je 0x1000d18d
push dword [0x1001dd00]
call edi
test eax, eax
je 0x1000d18d
push 0
push dword [0x1001dd00]
call esi
test eax, eax
je 0x1000d18d
push dword [0x1001dce4]
call edi
mov ecx, eax
call fcn.10001cb8
lea eax, [ebx + 0x10]
push eax
mov dword [esp + 0x24], eax
call fcn.10004aff
xor edi, edi
cmp eax, edi
pop ecx
mov dword [ebx + 4], eax
je 0x1000d172
mov word [esp + 0x24], di
xor eax, eax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 8
stosw word es:[edi], ax
mov eax, dword [esp + 0x20]
push 0
push dword [eax]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x1000d18d
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x18], 8
jb 0x1000d09e
mov eax, dword [esi + 4]
jmp 0x1000d0a1
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x1000cf6c
push 0x8007000e
call fcn.10002439
lea eax, [esi + 4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
sub esp, 0x1c
mov byte [esp + 0xd0], 3
mov ecx, esp
mov dword [esp + 0x4c], esp
push dword [esp + 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0xd0], 1
call fcn.100027b5
add esp, 0x38
test eax, eax
jne 0x1000d18d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000d166
and dword [esp + 0x14], 0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x48]
cmp dword [esp + 0x14], 0
je 0x1000d166
test eax, eax
jl 0x1000d166
cmp dword [esi + 0x18], 8
jb 0x1000d112
mov esi, dword [esi + 4]
jmp 0x1000d115
add esi, 4
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x1000d15c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x9c]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x24], esp
je 0x1000d14b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [esp + 0x38]
push eax
call fcn.10004786
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1000d18d
mov dword [ebx + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push dword [0x1001dce0]
mov dword [ebx + 0x30], eax
call esi
mov dword [0x1001dd7c], edi
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x18]
jmp 0x1000d390
cmp dword [ebp + 0xc], 0x103
jne 0x1000d39a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000d21c
cmp dword [eax + 8], 2
jne 0x1000d21c
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
and dword [esp + 0x14], 0
test eax, eax
je 0x1000d1d6
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x10015814
push eax
call dword [ecx]
mov byte [esp + 0x98], 4
push dword [0x1001dce4]
call edi
and dword [esp + 0x20], 0
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xe0]
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x2c], eax
je 0x1000d223
test eax, eax
mov byte [esp + 0x98], 0
je 0x1000d21c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
jmp 0x1000cd26
cmp dword [ebx + 8], 0
mov dword [0x1001ddb0], 1
jne 0x1000d388
push dword [0x1001dcf8]
call edi
test eax, eax
jne 0x1000d384
cmp dword [ebx + 4], eax
je 0x1000d384
cmp dword [esp + 0x20], 4
jne 0x1000d384
and word [esp + 0x24], ax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 8
stosw word es:[edi], ax
mov eax, dword [esp + 0x20]
push 0
push dword [eax]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x1000d384
push dword [0x1001dce8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000d37a
push 0
push dword [0x1001dce8]
call esi
test eax, eax
je 0x1000d37a
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1000d37a
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
mov byte [esp + 0x9c], 6
call fcn.1000d3d0
pop ecx
lea eax, [esp + 0x50]
push 0
push eax
lea eax, [esp + 0x74]
call fcn.10002fe6
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
jae 0x1000d30a
lea eax, [esp + 0x54]
push eax
call fcn.1000d990
push eax
call fcn.1000dad3
push 1
push dword [0x1001dcf8]
call esi
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [esp + 0x38]
push eax
call fcn.10004786
xor edi, edi
mov dword [ebx + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push dword [0x1001dce0]
mov dword [ebx + 0x30], eax
call esi
lea ecx, [esp + 0x50]
mov dword [0x1001dd7c], edi
mov byte [esp + 0x98], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x98], 0
test eax, eax
je 0x1000d39a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x48]
call fcn.100043ba
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10011f9a
mov esp, ebp
pop ebp
ret 0x24