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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov edi, ecx
mov ecx, 0xa70928
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x5fbee1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
je 0x5fbee1
add esi, 8
jmp 0x5fc101
mov ecx, 0xa70928
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5fbffc
mov ebx, eax
test eax, eax
jne 0x5fbf2e
push 0x50
pop ecx
push 8
pop edx
call fcn.004a3937
and dword [eax + 4], 0
and dword [eax], 0
mov ecx, 0xa70928
mov ebx, eax
mov dword [eax + 0x48], 0xa70928
call fcn.004b2dd8
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test edi, edi
je 0x5fc00c
push 0x12
pop ecx
mov edx, edi
lea eax, [esp + 0x40]
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
and dword [edx], 0
and dword [edx + 4], 0
or ecx, dword [eax + 4]
je 0x5fc003
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x85]
mov byte [esp + 2], al
mov al, byte [esp + 0x86]
mov byte [esp + 1], al
mov al, byte [esp + 0x87]
mov byte [esp + 3], al
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x84]
mov dword [esp + 0x24], eax
jmp 0x5fc05f
xor esi, esi
jmp 0x5fc101
lea ecx, [esp + 0x40]
call fcn.005fc1e3
call fcn.005fc10b
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
push 2
pop eax
xor edx, edx
mov dword [esp + 0x1c], eax
mov byte [esp + 1], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
push 0x12
pop ecx
lea eax, [esp + 0x40]
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 1
lea esi, [ebx + 8]
mov ecx, dword [esp + 0x10]
and dword [ebx + 4], 0
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x40], ecx
mov ecx, dword [esp + 0x24]
mov byte [ebx + 0x44], cl
mov cl, byte [esp + 2]
mov byte [ebx + 0x45], cl
mov cl, byte [esp + 1]
mov byte [ebx + 0x46], cl
mov cl, byte [esp + 3]
mov byte [ebx + 0x47], cl
mov ecx, eax
call fcn.005fc1e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret