Function at 0x4363bc
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.00436386
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4363d4
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 4], eax
cmp byte [0x4c5ce8], dl
je 0x436423
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x436423
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436425
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 0x436425
xor esi, esi
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x436473
cmp esi, 0xffffffff
je 0x436473
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x436469
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 0x436475
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 4], esp
je 0x4364b9
cmp esi, 0xffffffff
je 0x4364b9
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4364bb
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 0x4364bb
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x436507
cmp eax, 0xffffffff
je 0x436507
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4364fd
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 dword [ebp - 4], esi
jmp 0x43650b
and dword [ebp - 4], 0
cmp byte [0x4c5ce8], 0
je 0x436546
cmp eax, 0xffffffff
je 0x436546
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436542
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 0x436548
xor edi, edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0x14]
call fcn.00436386
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 [0x4c50fc], edi
je 0x4365a8
mov eax, dword [0x4c50f4]
add eax, edi
mov ecx, dword [eax + 0x10]
push ebx
call fcn.00436386
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x43659c
inc esi
add edi, 0x28
cmp esi, dword [0x4c50fc]
jne 0x436572
jmp 0x4365a8
imul esi, esi, 0x28
add esi, dword [0x4c50f4]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret