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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.004363b4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436402
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6ce8], dl
je 0x436451
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x436451
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436453
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 0x436453
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x4364a1
cmp esi, 0xffffffff
je 0x4364a1
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436497
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 0x4364a3
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 4], esp
je 0x4364e7
cmp esi, 0xffffffff
je 0x4364e7
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4364e9
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 0x4364e9
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x436535
cmp eax, 0xffffffff
je 0x436535
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43652b
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 0x436539
and dword [ebp - 4], 0
cmp byte [0x4c6ce8], 0
je 0x436574
cmp eax, 0xffffffff
je 0x436574
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436570
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 0x436576
xor edi, edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
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 edi, edi
add esp, 0xc
xor esi, esi
mov ebx, eax
cmp dword [0x4c60fc], edi
je 0x4365d6
mov eax, dword [0x4c60f4]
add eax, edi
mov ecx, dword [eax + 0x10]
push ebx
call fcn.004363b4
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x4365ca
inc esi
add edi, 0x28
cmp esi, dword [0x4c60fc]
jne 0x4365a0
jmp 0x4365d6
imul esi, esi, 0x28
add esi, dword [0x4c60f4]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret