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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00436386
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436840
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c5ce8], dl
je 0x43688f
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x43688f
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436897
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 0x436897
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x4368e5
cmp esi, 0xffffffff
je 0x4368e5
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4368db
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 0x4368e7
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 4], esp
je 0x43692b
cmp esi, 0xffffffff
je 0x43692b
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43692d
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 0x43692d
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x436978
cmp eax, 0xffffffff
je 0x436978
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43696f
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 ebx, esi
jmp 0x43697a
xor ebx, ebx
cmp byte [0x4c5ce8], 0
je 0x4369b9
cmp eax, 0xffffffff
je 0x4369b9
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4369b5
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 0x4369bb
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x14]
call fcn.00436386
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
mov ebx, eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edi, eax
cmp eax, dword [0x4c5114]
jae 0x436a85
shl eax, 4
mov esi, eax
mov eax, dword [0x4c510c]
add eax, esi
cmp dword [eax + 8], 0
je 0x436a0e
mov ecx, dword [eax + 8]
call fcn.00436386
push eax
push ebx
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x436a75
mov eax, dword [ebp + 8]
test eax, eax
je 0x436a51
mov ecx, dword [0x4c510c]
mov ecx, dword [esi + ecx]
test ecx, ecx
je 0x436a51
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436a48
test dx, dx
je 0x436a44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436a48
add eax, 4
add ecx, 4
test dx, dx
jne 0x436a22
xor eax, eax
jmp 0x436a4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x436a75
cmp dword [ebp + 0xc], 0
je 0x436a92
mov eax, dword [0x4c510c]
add eax, esi
cmp dword [eax + 4], 0
je 0x436a92
push dword [eax + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x436a92
inc edi
add esi, 0x10
cmp edi, dword [0x4c5114]
jb 0x4369ec
or eax, 0xffffffff
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x436a88