Function at 0x1007c290
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1c90
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x1010aef8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [0x100fef8c]
xor ebx, ebx
cmp eax, ebx
jne 0x1007c2eb
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c2e4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
jmp 0x1007c2e6
xor eax, eax
mov dword [0x100fef8c], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 8]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, eax
call fcn.10078120
mov ecx, eax
call fcn.100794d0
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x1007c319
xor edx, edx
jmp 0x1007c31b
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x1007c32f
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
add eax, 0x4c
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
cmp eax, ebx
je 0x1007c35f
mov ecx, dword [eax + 0x10]
mov edi, dword [ebp + 8]
cmp ecx, edi
jle 0x1007c354
mov eax, dword [eax]
jmp 0x1007c359
jge 0x1007c362
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x1007c346
jmp 0x1007c362
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x3c], ebx
setne byte [ebp - 0xd]
cmp eax, ebx
je 0x1007c385
fld dword [eax + 0x14]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
fstp dword [ecx]
fld dword [eax + 0x18]
fstp dword [ebx]
jmp 0x1007c4ad
mov eax, dword [0x100fef8c]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edi
cmp eax, ebx
jne 0x1007c3c0
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c3b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
jmp 0x1007c3bb
xor eax, eax
mov dword [0x100fef8c], eax
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.1007bd60
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 4], ebx
call dword [0x1010dffc]
add esp, 8
cmp eax, ebx
je 0x1007c3fa
push eax
call fcn.1009e120
push ebx
cmp dword [ebp - 0x1c], ebx
jne 0x1007c432
movzx ecx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x18]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [0x1010e014]
add esp, 0x14
cmp eax, ebx
je 0x1007c421
push eax
call fcn.1009e120
fld dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
fstp dword [ecx]
fldz
fstp dword [ebx]
jmp 0x1007c462
movzx edx, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x18]
push edx
push edi
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [0x1010e014]
add esp, 0x14
cmp eax, ebx
je 0x1007c453
push eax
call fcn.1009e120
fld dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
fstp dword [ebx]
fldz
fstp dword [edx]
mov eax, dword [ebp + 0xc]
fld dword [eax]
push 0x1c
fstp dword [ebp - 0x4c]
fld dword [ebx]
fstp dword [ebp - 0x48]
call dword [0x1010db70]
add esp, 4
test eax, eax
jne 0x1007c50a
call fcn.1009d5f0
xor eax, eax
mov ecx, dword [ebp - 0x20]
push eax
call fcn.100783e0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1007c4aa
push eax
call dword [0x1010dba0]
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp byte [ebp + 0x18], 0
je 0x1007c51e
cmp byte [ebp - 0xd], 0
jne 0x1007c51e
mov esi, dword [ebp - 0x14]
fld dword [ecx]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], edx
fmul dword [ebp - 0x44]
mov edx, dword [esi + 0x18]
fld dword [ebx]
mov dword [ebp - 0x3c], edx
fmul dword [ebp - 0x3c]
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x1c]
faddp st(1)
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
fstp dword [ebp + 0x18]
mov dword [ebp - 0x34], edx
fld dword [ecx]
mov dword [ebp - 0x30], eax
fmul dword [ebp - 0x40]
fld dword [ebx]
fmul dword [ebp - 0x38]
faddp st(1)
fstp dword [ebp + 0xc]
fld dword [ebp + 0x18]
fstp dword [ecx]
fld dword [ebp + 0xc]
fstp dword [ebx]
jmp 0x1007c521
mov ecx, 7
lea esi, [ebp - 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
jmp 0x1007c489
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1007c5a7
mov eax, dword [0x100fef8c]
test eax, eax
jne 0x1007c557
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
test esi, esi
je 0x1007c54d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
jmp 0x1007c54f
xor eax, eax
mov esi, dword [ebp - 0x14]
mov dword [0x100fef8c], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx edx, word [esi + 8]
push edx
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.1007bd60
mov eax, dword [eax]
push ebx
push edi
push eax
mov dword [ebp - 4], 1
call dword [0x1010e020]
add esp, 0xc
test eax, eax
je 0x1007c58f
push eax
call fcn.1009e120
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1007c5a7
push eax
call dword [0x1010dba0]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14