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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x4acc6d
mov esi, dword [ebx + 0x14]
sub esi, 1
js 0x4acc6d
mov ecx, dword [0x68dbf8]
lea eax, [ebx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov eax, dword [eax + esi*8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ac953
test dl, dl
je 0x4ac94f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ac953
add eax, 2
add ecx, 2
test dl, dl
jne 0x4ac933
xor eax, eax
jmp 0x4ac958
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4acc6d
shl esi, 4
add esi, dword [ebx + 0x20]
mov eax, dword [esi]
mov dword [ebp - 4], eax
test eax, eax
je 0x4acc6d
cmp dword [esi + 4], 0x28
jb 0x4acc6d
push edi
push 0
push 0x6a1a04
call fcn.004502d0
imul ebx, dword [0x6a19ec], 0x2c
add esp, 8
mov edi, dword [0x6a19e4]
add ebx, edi
cmp edi, ebx
je 0x4ac9df
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x3c], eax
nop dword [eax]
lea edx, [edi + 4]
mov esi, 0x1c
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4ac9d3
add edx, 4
add eax, 4
sub esi, 4
jae 0x4ac9b8
inc dword [edi + 0x28]
mov edi, dword [edi]
jmp 0x4acc57
add edi, 0x2c
cmp edi, ebx
je 0x4ac9df
mov eax, dword [ebp - 0x3c]
jmp 0x4ac9b0
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
xor esi, esi
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [eax + 8]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ebp - 0x24], xmm0
movzx eax, byte [ebp + esi - 0x34]
push eax
push str._02x
lea eax, [ebp - 0x88]
lea eax, [eax + esi*2]
push 3
push eax
call fcn.0044dcc0
mov byte [ebp + esi*2 - 0x86], 0
add esp, 0x10
inc esi
cmp esi, 0x20
jb 0x4aca14
lea edx, [ebp - 0x88]
mov byte [ebp - 0x48], 0
dec edx
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x4aca50
mov eax, dword [str..dict]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov ax, word [0x60b438]
mov word [edx + 4], ax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 4], 0
call fcn.004ac7f0
test eax, eax
js 0x4aca98
mov ecx, dword [ebp + 8]
shl eax, 4
add eax, dword [ecx + 0x20]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x14], ecx
jmp 0x4acafc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00452810
add esp, 0xc
mov esi, dword [eax]
mov ebx, esi
mov edi, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], esi
je 0x4acaf9
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
sub esi, 1
jne 0x4acaec
push 0x6996b0
call fcn.00452da0
add esp, 4
push esi
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4acb07
xor edi, edi
jmp 0x4acc24
push 1
push edi
push ebx
call fcn.005dc6c0
inc dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [0x6a19ec]
mov dword [ebp - 0x38], eax
cmp dword [0x6a19f0], ecx
jne 0x4acbd8
test ecx, ecx
jne 0x4acb34
lea esi, [ecx + 1]
jmp 0x4acb52
cmp ecx, 0x5d
jae 0x4acb3e
lea esi, [ecx + ecx]
jmp 0x4acb52
cmp ecx, 0xba2
jbe 0x4acb4b
lea esi, [ecx + ecx]
jmp 0x4acb52
lea esi, [ecx + 1]
shr esi, 1
add esi, ecx
mov edi, dword [0x6a19e4]
test edi, edi
je 0x4acb7c
mov ecx, dword [0x6a19e8]
xor eax, eax
cmp eax, esi
sbb eax, eax
and esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
imul eax, esi, 0x2c
push eax
push edi
call edx
mov edi, eax
test edi, edi
jne 0x4acbc4
mov ecx, dword [0x6a19e8]
xor eax, eax
cmp eax, esi
sbb eax, eax
and esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
imul eax, esi, 0x2c
push eax
call edx
mov edi, eax
imul eax, dword [0x6a19ec], 0x2c
push eax
push dword [0x6a19e4]
push edi
call fcn.005d67e0
mov edx, dword [0x6a19e4]
add esp, 0xc
test edx, edx
je 0x4acbc4
mov ecx, dword [0x6a19e8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x6a19ec]
mov dword [0x6a19e4], edi
mov dword [0x6a19f0], esi
jmp 0x4acbde
mov edi, dword [0x6a19e4]
movups xmm0, xmmword [ebp - 0x38]
lea eax, [ecx + 1]
imul ecx, ecx, 0x2c
add ecx, edi
mov dword [0x6a19ec], eax
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov ecx, 0x4ac430
mov eax, dword [0x6993a8]
cmp eax, 0x4ac430
mov edi, dword [ebp - 0x38]
cmovne eax, ecx
mov dword [0x6993a8], eax
cmp dword [ebp - 4], 0
je 0x4acc57
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
sub esi, 1
jne 0x4acc4a
push 0x6996b0
call fcn.00452da0
add esp, 4
push esi
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x6a1a04
call fcn.004502e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret