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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4c50f4]
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 0x436f92
mov ecx, dword [ebx + 0x10]
call fcn.00436386
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436d8c
sub eax, esi
mov dword [ebp - 4], eax
cmp byte [0x4c5ce8], cl
je 0x436dd9
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x436dd9
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436ddb
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 0x436ddb
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x436e2d
cmp esi, 0xffffffff
je 0x436e2d
push esi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436e23
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 0x436e2f
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 4], esp
je 0x436e77
cmp esi, 0xffffffff
je 0x436e77
push esi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436e79
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 0x436e79
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x436ec9
cmp eax, 0xffffffff
je 0x436ec9
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436ebf
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 0x436ecd
and dword [ebp - 4], 0
cmp byte [0x4c5ce8], 0
je 0x436f0c
cmp eax, 0xffffffff
je 0x436f0c
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x436f08
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 0x436f0e
xor edi, edi
mov eax, dword [ebp - 4]
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
xor esi, esi
add esp, 0xc
mov edi, eax
cmp dword [0x4c5120], esi
jbe 0x436f53
mov eax, dword [0x4c5118]
push dword [eax + esi*4]
push edi
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x436f8f
inc esi
cmp esi, dword [0x4c5120]
jb 0x436f36
mov ecx, dword [ebx + 0x10]
call fcn.00436386
mov ecx, eax
call fcn.00444cdf
mov esi, eax
mov eax, dword [0x4c5120]
cmp eax, dword [0x4c511c]
jb 0x436f7b
mov ecx, 0x4c5118
call fcn.00449d1b
mov eax, dword [0x4c5120]
mov ecx, dword [0x4c5118]
inc dword [0x4c5120]
mov dword [ecx + eax*4], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 0x10]
call fcn.00444521
mov ecx, dword [ebx + 0x24]
call fcn.00444521
lea ecx, [ebx + 0x18]
call fcn.00435c44
mov eax, dword [0x4c50fc]
mov ecx, dword [0x4c50f4]
dec eax
mov dword [0x4c50fc], 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 [0x4c2abc]
call fcn.00435fa2
inc dword [0x4c2abc]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4