Function at 0x100ce1b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [ebx + 0x10294]
push esi
mov esi, dword [eax + 0x3c]
push edi
push 1
and esi, 0xfffff
push esi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x158]
push edx
push 0x10078ec8
xor edi, edi
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 3
call fcn.10161210
cmp eax, edi
je 0x100ce313
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebx + 0x10294]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x158]
push eax
push 0x10079378
push ecx
mov ecx, ebx
call fcn.10161210
cmp eax, edi
je 0x100ce313
push 1
push esi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [ebx + 0x10294]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x158]
push edx
push 0x10079828
push eax
mov ecx, ebx
call fcn.10161210
cmp eax, edi
je 0x100ce313
push 1
push esi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov edx, dword [ebx + 0x10294]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x158]
push ecx
push 0x10079cd8
push edx
mov ecx, ebx
call fcn.10161210
cmp eax, edi
je 0x100ce313
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebx + 0x10294]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x158]
push eax
push 0x1007a188
push ecx
mov ecx, ebx
call fcn.10161210
cmp eax, edi
je 0x100ce313
push 1
push esi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [ebx + 0x10294]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x158]
push edx
push 0x1007a638
push eax
mov ecx, ebx
call fcn.10161210
cmp eax, edi
jne 0x100ce60a
lea edi, [esi*4]
push edi
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor edi, edi
test esi, esi
jbe 0x100ce3c1
mov dl, byte [ebx + 0x7fcf]
fldz
fld qword [0x100a3028]
shr dl, 4
fld1
and dl, 1
mov ecx, dword [ebp + edi*4 - 0x14]
test dl, dl
je 0x100ce3b6
test byte [ecx + 0x80], 1
jne 0x100ce3b6
fxch st(2)
fcom qword [ecx + 0xd0]
fnstsw ax
test ah, 0x41
jp 0x100ce3ce
fxch st(1)
fcom qword [ecx + 0xd0]
fnstsw ax
test ah, 0x41
jp 0x100ce3d4
fxch st(2)
fcom qword [ecx + 0xd8]
fnstsw ax
test ah, 1
jne 0x100ce3da
fxch st(1)
fxch st(2)
fxch st(1)
inc edi
cmp edi, esi
jb 0x100ce372
fstp st(2)
fstp st(0)
fstp st(0)
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100ce412
xor eax, eax
jmp 0x100ce419
fstp st(0)
fstp st(0)
jmp 0x100ce3de
fstp st(1)
fstp st(0)
jmp 0x100ce3de
fstp st(1)
fstp st(1)
mov eax, dword [ebx + 0x10294]
fstp st(0)
test eax, eax
je 0x100ce3f1
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x100ce3f3
xor eax, eax
push 0x100873f0
mov esi, 0x125f
mov ecx, ebx
call fcn.10168f10
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x18], 0
je 0x100ce440
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100ce42a
mov edi, ecx
jmp 0x100ce44e
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
test edx, edx
jne 0x100ce436
mov dword [eax + 0x1c], edx
mov dword [ecx], 0xfefefefe
mov edi, ecx
jmp 0x100ce44e
mov ecx, dword [eax + 0x14]
push 0x10
push 0x44
call fcn.101d8457
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x100ce592
push eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
and eax, 0xfffff
mov dword [edi + 0x10], ecx
mov word [edi + 0x40], dx
mov word [edi + 0x42], dx
mov dword [edi + 0x20], ecx
lea ecx, [esi + esi*2]
or eax, 0x70100000
push edi
mov edx, esi
call fcn.10172020
mov dword [ebp - 4], eax
test eax, eax
jl 0x100ce542
mov eax, dword [ebx + 0x10294]
mov ecx, dword [eax + 0x34]
mov dword [edi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [edi + 0x38], edx
mov edx, dword [edi + 0xc]
lea eax, [esi*4]
push eax
mov eax, dword [ebx + 0x10294]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 4]
add esp, 0xc
lea eax, [esi*4]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 4]
add esp, 0xc
lea eax, [esi*4]
push eax
lea edx, [ebp - 0x24]
push edx
add ecx, eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esi*4]
push eax
mov eax, dword [edi + 4]
lea edx, [ebp - 0x34]
push edx
lea ecx, [eax + esi*8]
push ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebx]
mov eax, dword [edx + 0x48]
add esp, 0xc
push 0
push edi
mov ecx, ebx
call eax
test al, al
je 0x100ce59d
mov dword [ebp - 4], 1
mov esi, edi
call fcn.10171ee0
mov eax, dword [0x101e316c]
test eax, eax
jl 0x100ce607
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100ce607
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x100ce601
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x8007000e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x10294]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + 0x10]
cmp ecx, eax
jae 0x100ce5ba
mov edx, dword [ebx + 0x14]
cmp dword [edx + ecx*4], esi
jne 0x100ce5ba
mov dword [ebp - 4], ecx
jmp 0x100ce5d9
test eax, eax
jbe 0x100ce5d0
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + eax*4]
sub ecx, 4
dec eax
cmp dword [ecx], esi
je 0x100ce5d1
test eax, eax
ja 0x100ce5c4
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100ce5f3
call fcn.10171ee0
call fcn.101751f0
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + eax*4], edi
mov dword [edi + 0x10], eax
or dword [ebx + 0x18], 6
push ebx
call fcn.10175ad0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret