Function at 0x43685c
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.004363b4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43686e
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6ce8], dl
je 0x4368bd
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x4368bd
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4368c5
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 0x4368c5
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 [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x436913
cmp esi, 0xffffffff
je 0x436913
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436909
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 0x436915
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 4], esp
je 0x436959
cmp esi, 0xffffffff
je 0x436959
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43695b
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 0x43695b
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x4369a6
cmp eax, 0xffffffff
je 0x4369a6
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43699d
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 ebx, esi
jmp 0x4369a8
xor ebx, ebx
cmp byte [0x4c6ce8], 0
je 0x4369e7
cmp eax, 0xffffffff
je 0x4369e7
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4369e3
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 0x4369e9
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x14]
call fcn.004363b4
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 [0x4c6114]
jae 0x436ab3
shl eax, 4
mov esi, eax
mov eax, dword [0x4c610c]
add eax, esi
cmp dword [eax + 8], 0
je 0x436a3c
mov ecx, dword [eax + 8]
call fcn.004363b4
push eax
push ebx
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x436aa3
mov eax, dword [ebp + 8]
test eax, eax
je 0x436a7f
mov ecx, dword [0x4c610c]
mov ecx, dword [esi + ecx]
test ecx, ecx
je 0x436a7f
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436a76
test dx, dx
je 0x436a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x436a50
xor eax, eax
jmp 0x436a7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x436aa3
cmp dword [ebp + 0xc], 0
je 0x436ac0
mov eax, dword [0x4c610c]
add eax, esi
cmp dword [eax + 4], 0
je 0x436ac0
push dword [eax + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x436ac0
inc edi
add esi, 0x10
cmp edi, dword [0x4c6114]
jb 0x436a1a
or eax, 0xffffffff
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x436ab6