Function at 0x4365e1
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.00429550
mov ecx, dword [esi + 0x10]
call fcn.004363b4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436604
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6ce8], dl
je 0x436653
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x436653
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436655
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 0x436655
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x4366a3
cmp esi, 0xffffffff
je 0x4366a3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436699
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 0x4366a5
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 4], esp
je 0x4366e9
cmp esi, 0xffffffff
je 0x4366e9
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4366eb
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 0x4366eb
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x436737
cmp eax, 0xffffffff
je 0x436737
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43672d
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 0x43673b
and dword [ebp - 4], 0
cmp byte [0x4c6ce8], 0
je 0x436776
cmp eax, 0xffffffff
je 0x436776
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436772
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 0x436778
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.004363b4
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.0042113d
test eax, eax
je 0x4367b6
add eax, 8
mov dword [ebp - 0x14], eax
jmp 0x4367ba
and dword [ebp - 0x14], 0
mov al, byte [0x4c931f]
mov edx, dword [ebx]
mov byte [ebp - 7], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x435650
mov ecx, esi
call fcn.00422a6a
call fcn.00429561
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 4