Function at 0x436417
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.004363a7
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43642f
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6d08], dl
je 0x43647e
mov eax, dword [0x4c6d0c]
cmp eax, 0xffffffff
je 0x43647e
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436480
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x436480
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6d08], 0
mov esi, dword [0x4c6d0c]
je 0x4364ce
cmp esi, 0xffffffff
je 0x4364ce
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4364c4
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c6d0c]
jmp 0x4364d0
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6d08], 0
mov dword [ebp - 4], esp
je 0x436514
cmp esi, 0xffffffff
je 0x436514
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436516
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x436516
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6d08], 0
mov eax, dword [0x4c6d0c]
je 0x436562
cmp eax, 0xffffffff
je 0x436562
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436558
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c6d0c]
mov dword [ebp - 4], esi
jmp 0x436566
and dword [ebp - 4], 0
cmp byte [0x4c6d08], 0
je 0x4365a1
cmp eax, 0xffffffff
je 0x4365a1
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43659d
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x4365a3
xor edi, edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0x14]
call fcn.004363a7
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 [0x4c611c], edi
je 0x436603
mov eax, dword [0x4c6114]
add eax, edi
mov ecx, dword [eax + 0x10]
push ebx
call fcn.004363a7
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x4365f7
inc esi
add edi, 0x28
cmp esi, dword [0x4c611c]
jne 0x4365cd
jmp 0x436603
imul esi, esi, 0x28
add esi, dword [0x4c6114]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret