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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.00435349
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4353d1
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c3bb0], dl
je 0x435420
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x435420
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x435422
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 [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x435422
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x435470
cmp esi, 0xffffffff
je 0x435470
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x435466
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 [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c3bb4]
jmp 0x435472
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 4], esp
je 0x4354b6
cmp esi, 0xffffffff
je 0x4354b6
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4354b8
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 [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x4354b8
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x435504
cmp eax, 0xffffffff
je 0x435504
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4354fa
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 [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c3bb4]
mov dword [ebp - 4], esi
jmp 0x435508
and dword [ebp - 4], 0
cmp byte [0x4c3bb0], 0
je 0x435543
cmp eax, 0xffffffff
je 0x435543
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43553f
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 [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x435545
xor edi, edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0x14]
call fcn.00435349
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0xc
xor esi, esi
mov ebx, eax
cmp dword [0x4c2fc4], edi
je 0x4355a5
mov eax, dword [0x4c2fbc]
add eax, edi
mov ecx, dword [eax + 0x10]
push ebx
call fcn.00435349
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x435599
inc esi
add edi, 0x28
cmp esi, dword [0x4c2fc4]
jne 0x43556f
jmp 0x4355a5
imul esi, esi, 0x28
add esi, dword [0x4c2fbc]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret