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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0xc], 1
call fcn.0042957f
mov ecx, dword [esi + 0x10]
call fcn.004363a7
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x436631
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c6d08], dl
je 0x436680
mov eax, dword [0x4c6d0c]
cmp eax, 0xffffffff
je 0x436680
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436682
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 0x436682
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6d08], 0
mov esi, dword [0x4c6d0c]
je 0x4366d0
cmp esi, 0xffffffff
je 0x4366d0
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4366c6
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 0x4366d2
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6d08], 0
mov dword [ebp - 4], esp
je 0x436716
cmp esi, 0xffffffff
je 0x436716
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436718
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 0x436718
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c6d08], 0
mov eax, dword [0x4c6d0c]
je 0x436764
cmp eax, 0xffffffff
je 0x436764
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43675a
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 0x436768
and dword [ebp - 4], 0
cmp byte [0x4c6d08], 0
je 0x4367a3
cmp eax, 0xffffffff
je 0x4367a3
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43679f
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 0x4367a5
xor edi, edi
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x10]
mov esi, dword [eax + 0x14]
call fcn.004363a7
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov esi, eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00421177
test eax, eax
je 0x4367e3
add eax, 8
mov dword [ebp - 0x14], eax
jmp 0x4367e7
and dword [ebp - 0x14], 0
mov al, byte [0x4c933f]
mov edx, dword [ebx]
mov byte [ebp - 7], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x435644
mov ecx, esi
call fcn.00422aa4
call fcn.00429590
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 4