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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4c60f4]
push ebx
push esi
mov esi, dword [ebp + 8]
imul esi, esi, 0x28
lea ebx, [esi + eax]
test byte [ebx + 8], 8
push edi
mov dword [ebp - 8], esi
je 0x436ffa
mov ecx, dword [ebx + 0x10]
call fcn.004363b4
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436df4
sub eax, esi
mov dword [ebp - 4], eax
cmp byte [0x4c6ce8], cl
je 0x436e41
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x436e41
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436e43
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 0x436e43
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x436e95
cmp esi, 0xffffffff
je 0x436e95
push esi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436e8b
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 0x436e97
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 4], esp
je 0x436edf
cmp esi, 0xffffffff
je 0x436edf
push esi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436ee1
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 0x436ee1
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x436f31
cmp eax, 0xffffffff
je 0x436f31
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436f27
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 0x436f35
and dword [ebp - 4], 0
cmp byte [0x4c6ce8], 0
je 0x436f74
cmp eax, 0xffffffff
je 0x436f74
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436f70
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 0x436f76
xor edi, edi
mov eax, dword [ebp - 4]
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
xor esi, esi
add esp, 0xc
mov edi, eax
cmp dword [0x4c6120], esi
jbe 0x436fbb
mov eax, dword [0x4c6118]
push dword [eax + esi*4]
push edi
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x436ff7
inc esi
cmp esi, dword [0x4c6120]
jb 0x436f9e
mov ecx, dword [ebx + 0x10]
call fcn.004363b4
mov ecx, eax
call fcn.00444cbc
mov esi, eax
mov eax, dword [0x4c6120]
cmp eax, dword [0x4c611c]
jb 0x436fe3
mov ecx, 0x4c6118
call fcn.0040840e
mov eax, dword [0x4c6120]
mov ecx, dword [0x4c6118]
inc dword [0x4c6120]
mov dword [ecx + eax*4], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 0x10]
call fcn.004444fe
mov ecx, dword [ebx + 0x24]
call fcn.004444fe
lea ecx, [ebx + 0x18]
call fcn.00435c71
mov eax, dword [0x4c60fc]
mov ecx, dword [0x4c60f4]
dec eax
mov dword [0x4c60fc], eax
sub eax, dword [ebp + 8]
add ecx, esi
imul eax, eax, 0x28
push eax
lea eax, [ecx + 0x28]
push eax
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
inc dword [0x4c3abc]
call fcn.00435fd0
inc dword [0x4c3abc]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4