Function at 0x4365b3
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.00429592
mov ecx, dword [esi + 0x10]
call fcn.00436386
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4365d6
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c5ce8], dl
je 0x436625
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x436625
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436627
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 0x436627
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x436675
cmp esi, 0xffffffff
je 0x436675
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43666b
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 0x436677
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 4], esp
je 0x4366bb
cmp esi, 0xffffffff
je 0x4366bb
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4366bd
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 0x4366bd
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x436709
cmp eax, 0xffffffff
je 0x436709
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4366ff
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 0x43670d
and dword [ebp - 4], 0
cmp byte [0x4c5ce8], 0
je 0x436748
cmp eax, 0xffffffff
je 0x436748
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436744
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 0x43674a
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.00436386
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.0042114f
test eax, eax
je 0x436788
add eax, 8
mov dword [ebp - 0x14], eax
jmp 0x43678c
and dword [ebp - 0x14], 0
mov al, byte [0x4c82ff]
mov edx, dword [ebx]
mov byte [ebp - 7], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x435623
mov ecx, esi
call fcn.00422a7c
call fcn.004295a3
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 4