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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebx, [edi + 0x4130]
cmp byte [edi + esi + 0x4150], 0
mov edx, dword [ebp + 0xc]
jbe 0xfa48d
cmp edx, dword [ebx + 4]
jb 0xfa48d
ja 0xfa3e8
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebx]
jb 0xfa495
mov cl, byte [edi + 0x4192]
mov eax, 0x1000
sar eax, cl
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
cmp dword [ebp + 0xc], edx
jb 0xfa411
mov ecx, dword [ebp + 8]
ja 0xfa492
cmp ecx, eax
jae 0xfa492
mov al, byte [edi + 0x4150]
test al, al
je 0xfa42c
cmp al, byte [esi + edi + 0x4150]
jae 0xfa42c
inc al
mov byte [edi + 0x4150], al
mov al, byte [edi + 0x4151]
test al, al
je 0xfa447
cmp al, byte [esi + edi + 0x4150]
jae 0xfa447
inc al
mov byte [edi + 0x4151], al
mov al, byte [edi + 0x4152]
test al, al
je 0xfa462
cmp al, byte [esi + edi + 0x4150]
jae 0xfa462
inc al
mov byte [edi + 0x4152], al
mov al, byte [edi + 0x4153]
test al, al
je 0xfa47d
cmp al, byte [esi + edi + 0x4150]
jae 0xfa47d
inc al
mov byte [edi + 0x4153], al
mov byte [esi + edi + 0x4150], 1
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 8]
jmp 0xfa495
mov edx, dword [ebp + 0xc]
inc esi
add ebx, 8
cmp esi, 4
jl 0xfa3c1
mov al, byte [edi + 0x4150]
xor ebx, ebx
test al, al
je 0xfa4b2
cmp al, 4
jb 0xfa4b4
xor ebx, ebx
mov al, byte [edi + 0x4151]
test al, al
je 0xfa4c2
cmp al, 4
jb 0xfa4c7
mov ebx, 1
mov al, byte [edi + 0x4152]
test al, al
je 0xfa4d5
cmp al, 4
jb 0xfa4da
mov ebx, 2
mov al, byte [edi + 0x4153]
test al, al
je 0xfa4e8
cmp al, 4
jb 0xfa4ed
mov ebx, 3
push 0x1000
push edx
push ecx
push 0
push dword [edi + 0x50]
mov esi, ebx
shl esi, 0xc
call fcn.00171bf0
push edx
lea edx, [edi + 0x130]
mov ecx, edi
push eax
add edx, esi
call fcn.00135350
add esp, 0xc
cmp eax, 0x1000
je 0xfa5dc
test eax, eax
js 0xfa5be
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0xfa56a
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
test esi, esi
je 0xfa582
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0xfa5b8
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
mov dword [esi], 0x8000004
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push eax
push str.getFATCacheIdx:_FAT:__llu
call fcn.000ee650
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp byte [ebx + edi + 0x4150], 0
jne 0xfa5ee
mov byte [ebx + edi + 0x4150], 5
mov al, byte [edi + 0x4150]
test al, al
je 0xfa609
cmp al, byte [ebx + edi + 0x4150]
jae 0xfa609
inc al
mov byte [edi + 0x4150], al
mov al, byte [edi + 0x4151]
test al, al
je 0xfa624
cmp al, byte [ebx + edi + 0x4150]
jae 0xfa624
inc al
mov byte [edi + 0x4151], al
mov al, byte [edi + 0x4152]
test al, al
je 0xfa63f
cmp al, byte [ebx + edi + 0x4150]
jae 0xfa63f
inc al
mov byte [edi + 0x4152], al
mov al, byte [edi + 0x4153]
test al, al
je 0xfa65a
cmp al, byte [ebx + edi + 0x4150]
jae 0xfa65a
inc al
mov byte [edi + 0x4153], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov byte [ebx + edi + 0x4150], 1
mov dword [edi + ebx*8 + 0x4130], eax
mov eax, ebx
mov dword [edi + ebx*8 + 0x4134], ecx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret