Function at 0x10121e80
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ecx, eax
and ecx, 0xfff00000
push esi
push edi
cmp ecx, 0x9ff00000
jne 0x10121ea5
and eax, 0xfffff
or eax, 0x10000000
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
lea edx, [ebp - 4]
push edx
push ecx
call fcn.10169e20
xor ecx, ecx
cmp eax, ecx
jl 0x10121fce
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
cmp eax, ecx
jne 0x10121ee8
cmp dword [ebx], ecx
jne 0x10121ee8
mov dword [ebx + 0x3c], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebx + 0x3c]
mov edx, eax
and edx, 0xf0000000
cmp edx, 0xb0000000
jne 0x10121f02
mov eax, 1
jmp 0x10121f23
mov ecx, eax
and ecx, 0xfff00000
cmp ecx, 0x68700000
je 0x10121f1a
cmp ecx, 0x68800000
jne 0x10121f1e
mov eax, dword [ebx]
jmp 0x10121f23
and eax, 0xfffff
cmp dword [ebx], eax
mov ecx, dword [ebx + 4]
sbb edi, edi
not edi
and edi, eax
mov eax, dword [ebp + 0x14]
lea esi, [edi*4]
push esi
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x10121f5a
mov edx, dword [ebx + 4]
push esi
push eax
add edx, esi
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10121f72
push esi
push eax
mov eax, dword [ebx + 4]
lea ecx, [eax + edi*8]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
cmp dword [ebx], eax
jbe 0x10121f8e
jmp 0x10121f80
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
inc dword [ecx + 0x20]
inc eax
cmp eax, dword [ebx]
jb 0x10121f80
mov eax, dword [ebp + 0x20]
mov esi, dword [eax + 0x10]
xor edi, edi
lea ecx, [esi + 1]
mov dword [ebp - 0xc], esi
mov dword [eax + 0x10], ecx
mov dword [ebp + 0x14], edi
cmp dword [ebp - 8], edi
ja 0x10121fdd
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 8]
push 0
push eax
mov edi, ebx
mov eax, esi
call fcn.10109b70
test eax, eax
jl 0x10121fce
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x38], ecx
mov edx, dword [esi + 0xc8]
mov dword [ebx + 0x34], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x1c], 0
test eax, eax
je 0x10121ffe
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x10121ffe
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1012220a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10122014
xor eax, eax
jmp 0x1012201b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x10122042
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x1012202c
mov ebx, ecx
jmp 0x10122053
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
test edx, edx
jne 0x10122038
mov dword [eax + 0x10], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x10122053
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x101220a3
or eax, 0xffffffff
push edi
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp + 0x20]
push esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
push ecx
mov eax, ebx
call fcn.10165570
mov esi, eax
test esi, esi
jl 0x101220aa
mov edi, dword [ebp - 0x10]
push 0
call fcn.10169830
mov esi, eax
test esi, esi
jl 0x101220aa
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp + 0x18], ebx
jmp 0x101220f7
mov esi, 0x8007000e
jmp 0x101220f4
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101220be
xor edi, edi
jmp 0x101220c7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x101220eb
mov dword [eax], ebx
jmp 0x101220ee
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, esi
test esi, esi
jl 0x10121fce
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x64], edi
mov edx, dword [eax + 0xb8]
mov dword [ebx + 0x68], edx
mov cl, byte [eax + 0xbc]
mov byte [ebx + 0x6c], cl
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
mov dword [edx + edi*4], ebx
test ecx, ecx
je 0x10122132
mov dword [ecx + edi*4], ebx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1012218d
mov edx, dword [ecx + 0x8c]
mov dword [ebx + 0x8c], edx
mov edx, dword [ecx + 0x90]
mov dword [ebx + 0x90], edx
mov edx, dword [ecx + 0xa4]
mov dword [ebx + 0xa4], edx
mov edx, dword [ecx + 0xa8]
mov dword [ebx + 0xa8], edx
mov edx, dword [ecx + 0xac]
mov dword [ebx + 0xac], edx
mov edx, dword [ecx + 0xb4]
mov dword [ebx + 0xb4], edx
mov edx, dword [ecx + 0x28]
mov dword [ebx + 0x28], edx
mov ecx, dword [ecx + 0x70]
mov dword [ebx + 0x70], ecx
mov edi, dword [ebx + 0x70]
cmp edi, 0xffffffff
je 0x101221ec
mov edx, dword [esi + 0xc]
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edx + esi*4]
mov dword [ecx + edi*4], edx
mov eax, dword [eax + 0x1a8]
test eax, eax
je 0x101221ec
mov esi, dword [eax + 4]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, edi
shr ecx, 5
lea ecx, [esi + ecx*4]
test dword [ecx], edx
jne 0x101221ec
inc dword [eax + 0xc]
or dword [ecx], edx
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
je 0x101221da
cmp edi, ecx
jae 0x101221dd
mov dword [eax + 0x10], edi
mov ecx, dword [eax + 0x14]
cmp ecx, 0xffffffff
je 0x101221e9
cmp edi, ecx
jbe 0x101221ec
mov dword [eax + 0x14], edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
inc eax
mov dword [ebx + 0x4c], edx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp - 8]
jb 0x10121fd7
mov ebx, dword [ebp - 4]
jmp 0x10121fa7
mov eax, dword [ebp + 8]
push 0x1008c730
push 0
xor edx, edx
call fcn.1010ad00
add esp, 8
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x20