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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0xc], 1
call fcn.00428703
mov ecx, dword [esi + 0x10]
call fcn.00435349
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4355d3
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c3bb0], dl
je 0x435622
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x435622
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x435624
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 0x435624
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x435672
cmp esi, 0xffffffff
je 0x435672
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x435668
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 0x435674
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 4], esp
je 0x4356b8
cmp esi, 0xffffffff
je 0x4356b8
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4356ba
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 0x4356ba
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x435706
cmp eax, 0xffffffff
je 0x435706
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4356fc
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 0x43570a
and dword [ebp - 4], 0
cmp byte [0x4c3bb0], 0
je 0x435745
cmp eax, 0xffffffff
je 0x435745
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x435741
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 0x435747
xor edi, edi
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x10]
mov esi, dword [eax + 0x14]
call fcn.00435349
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov esi, eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004203bf
test eax, eax
je 0x435785
add eax, 8
mov dword [ebp - 0x14], eax
jmp 0x435789
and dword [ebp - 0x14], 0
mov al, byte [0x4c61d7]
mov edx, dword [ebx]
mov byte [ebp - 7], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x4345ff
mov ecx, esi
call fcn.00421cd8
call fcn.00428714
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 4