Function at 0x1012d4f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x9c]
push eax
lea esi, [ebp - 0xac]
mov byte [ebp - 0x9f], 1
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov byte [ebp - 0xa0], bl
call fcn.1012dbb0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
and eax, 0x800000
xor ecx, ecx
or eax, ecx
mov byte [ebp - 5], 1
mov dword [ebp - 0x18], edx
je 0x1012d5a5
mov dword [ebp - 0xa4], ebx
cmp byte [ebp - 0xa0], bl
je 0x1012d59a
mov eax, dword [ebp - 0xac]
mov esi, eax
cmp eax, ebx
je 0x1012d59a
mov eax, dword [0x101e316c]
cmp eax, ebx
jge 0x1012d588
push esi
xor eax, eax
mov edx, dword [eax]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 8]
lea eax, [ebp - 0xac]
push eax
push 0x101975e0
push 0x14
push 1
push edx
call fcn.10164aa0
mov esi, eax
cmp esi, ebx
jl 0x1012d723
cmp esi, 0x270f0002
jne 0x1012d5d3
mov byte [ebp - 5], bl
lea ebx, [ebp - 0xac]
call fcn.10197940
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1012d5fb
lea esi, [ebp - 0xac]
call fcn.100da4b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 8]
lea ecx, [ebp - 0xac]
push ecx
push edx
call fcn.10197ed0
mov esi, eax
test esi, esi
jl 0x1012d721
cmp esi, 0x270f0000
je 0x1012d6f7
cmp esi, 0x270f0001
je 0x1012d6f7
cmp byte [ebp - 5], 0
je 0x1012d5e5
lea ebx, [ebp - 0xac]
call fcn.10197940
cmp dword [ebp - 0x10], eax
jbe 0x1012d5e5
mov edx, dword [ebp - 0xa4]
or ecx, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ebx
test edx, edx
jbe 0x1012d6f0
xor eax, eax
mov dword [ebp - 0x10], eax
cmp ebx, edx
jae 0x1012d66f
mov edx, dword [ebp - 0xac]
add eax, edx
jmp 0x1012d671
xor eax, eax
cmp dword [eax], 0
jne 0x1012d6d5
lea ecx, [eax + 0x14]
lea edx, [eax + 0x10]
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [eax + 8]
and eax, 0xfff00001
or eax, 1
lea esi, [ebp - 0x14]
push esi
push eax
mov eax, dword [edi + 0x18]
push eax
push edi
xor eax, eax
call fcn.1010b2f0
mov esi, eax
test esi, esi
jl 0x1012d721
cmp dword [ebp - 0xc], 0xffffffff
je 0x1012d6cf
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
lea ebx, [ebp - 0xc]
mov esi, edi
call fcn.10107b00
mov esi, eax
test esi, esi
jl 0x1012d721
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
jmp 0x1012d6d2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xa4]
inc ebx
add eax, 0x20
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edx
jb 0x1012d665
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x1012d721
mov edx, dword [edi + 8]
movzx eax, byte [edx + 0x7fd3]
mov ecx, dword [ebp - 0x18]
shr eax, 3
add eax, eax
add eax, eax
not eax
and eax, 4
cmp esi, 0x270f0000
push eax
sete al
call fcn.1010b290
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
cmp byte [ebp - 0xa0], bl
je 0x1012d75a
mov edi, dword [ebp - 0xac]
cmp edi, ebx
je 0x1012d75a
mov eax, dword [0x101e316c]
cmp eax, ebx
jge 0x1012d748
xor eax, eax
jmp 0x1012d74f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4