Function at 0x47a930
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x3274
call fcn.0042ddc0
fld dword [0x4b33d8]
mov eax, dword [ebp + 8]
fstp dword [esp + 0x3214]
fldz
push ebx
xor ebx, ebx
fst dword [esp + 0x3238]
mov dword [esp + 0x1ec], eax
fst dword [esp + 0x323c]
mov eax, dword [ebp + 0xc]
push esi
xor ecx, ecx
cmp dword [eax + 8], ebx
push edi
mov dword [esp + 0x24], ebx
jle 0x47b022
fld dword [0x4b33dc]
mov edx, dword [eax + 4]
mov esi, dword [edx + ecx*4]
add ecx, 1
cmp ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
jne 0x47a99c
mov edx, dword [eax]
add edx, esi
jmp 0x47a9a2
lea edx, [esi + 0x200]
cmp esi, edx
mov dword [esp + 0x20], edx
jae 0x47b017
jmp 0x47a9b8
fldz
fld dword [0x4b33dc]
mov eax, dword [esi + 0x10]
fld dword [0x4b33d8]
mov ecx, dword [esi + 0x14]
fstp dword [esp + 0x3220]
lea edx, [esp + 0x200]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x1f0], edx
mov dword [esp + 0x3270], ebx
movzx eax, byte [esi]
sub eax, 2
mov dword [esp + 0x5c], ecx
je 0x47adf0
sub eax, 2
je 0x47aa29
sub eax, 2
fstp st(1)
fstp st(0)
jne 0x47af8f
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x1f0]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push edx
call eax
jmp 0x47af8f
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xe4], ebx
fld dword [ecx + 0x58]
fstp dword [esp + 0x1c]
mov edi, dword [edx + 8]
fld dword [edi + 0x40]
mov ebx, dword [eax + 8]
fsub dword [edi + 0x50]
fstp dword [esp + 0x60]
fld dword [edi + 0x44]
fsub dword [edi + 0x54]
fstp dword [esp + 0x64]
fld dword [edi + 0x48]
fsub dword [edi + 0x58]
fstp dword [esp + 0x68]
fld dword [edi + 0x4c]
fsub dword [edi + 0x5c]
fstp dword [esp + 0x6c]
fld dword [ebx + 0x50]
fsub dword [ebx + 0x40]
fstp dword [esp + 0x80]
fld dword [ebx + 0x54]
fsub dword [ebx + 0x44]
fstp dword [esp + 0x84]
fld dword [ebx + 0x58]
fsub dword [ebx + 0x48]
fstp dword [esp + 0x88]
fld dword [ebx + 0x5c]
fsub dword [ebx + 0x4c]
fstp dword [esp + 0x8c]
fld dword [edi + 0x5c]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fmul dword [ebx + 0x5c]
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0xf4]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0xf8]
fld dword [esp + 0x6c]
fmul st(1)
fstp dword [esp + 0xfc]
fld dword [esp + 0x80]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fld dword [esp + 0xf0]
faddp st(2)
fxch st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0x84]
fmul st(1)
fadd dword [esp + 0xf4]
fstp dword [esp + 0xf4]
fld dword [esp + 0x88]
fmul st(1)
fadd dword [esp + 0xf8]
fstp dword [esp + 0xf8]
fld dword [esp + 0x8c]
fmul st(1)
fadd dword [esp + 0xfc]
fstp dword [esp + 0xfc]
fmul dword [ebx + 0x9c]
fmul dword [ebx + 0xa0]
fld dword [edi + 0x9c]
fmulp st(2)
fld dword [edi + 0xa0]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0xfc]
fld dword [esi + 0x18]
fld dword [ecx + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x47ad58
mov eax, dword [ecx + 0x60]
cmp dword [eax + 0x10], 0
jne 0x47ac2b
fld dword [ecx + 0x54]
fstp dword [esi + 0x18]
fst dword [esp + 0x1c]
fxch st(1)
fst dword [esi + 0x2c]
fst dword [esi + 0x28]
fst dword [esi + 0x24]
fstp dword [esi + 0x20]
fstp dword [esi + 0x2c]
fld dword [esp + 0x1c]
push ebx
fstp dword [esp + 0xe4]
push edi
lea ecx, [esp + 0xa8]
call fcn.00402cb0
movzx eax, byte [esi + 1]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea eax, [esp + 0x1f0]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x30]
push eax
shl edx, 4
mov ecx, dword [edx + ecx + 0x16dc]
lea eax, [esp + 0x9c]
push esi
push eax
call ecx
add esp, 0x14
xor ebx, ebx
jmp 0x47af8f
fstp st(1)
lea eax, [esp + 0x120]
push eax
fstp st(0)
fld dword [ecx + 0x50]
push ecx
mov ecx, dword [edx + 8]
fstp dword [esp]
add ecx, 0x40
push ecx
call fcn.004686f0
mov eax, dword [esp + 0xa4]
fld dword [eax + 0x50]
add esp, 0xc
lea edx, [esp + 0x160]
push edx
push ecx
mov ecx, dword [esp + 0x9c]
fstp dword [esp]
mov edx, dword [ecx + 8]
add edx, 0x40
push edx
call fcn.004686f0
mov edx, dword [esp + 0xa8]
lea eax, [esp + 0x10c]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x1b8], edx
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1b0], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x10c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x128], ecx
lea ecx, [esp + 0x16c]
add esp, 0xc
mov dword [esp + 0x114], edx
mov edx, ecx
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x120]
push edx
mov dword [esp + 0x11c], ecx
push eax
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x110], eax
call fcn.00402cb0
movzx eax, byte [esi + 1]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
lea ecx, [eax + eax*4]
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x30]
push eax
shl ecx, 4
mov ecx, dword [ecx + edx + 0x16d8]
lea eax, [esp + 0x1a8]
push esi
push eax
call ecx
mov ecx, dword [ebp + 0x10]
add esp, 0x10
jmp 0x47ad5c
fstp st(1)
fstp st(0)
fld dword [ecx + 0x54]
fstp dword [esi + 0x18]
fld dword [esi + 0x2c]
fld dword [esi + 0x24]
fmul dword [esp + 0xf4]
fld dword [esi + 0x20]
fmul dword [esp + 0xf0]
faddp st(1)
fld dword [esi + 0x28]
fmul dword [esp + 0xf8]
faddp st(1)
fadd dword [esp + 0xfc]
fstp dword [esp + 0x18]
fsub dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [ecx + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x47abdb
fstp dword [esi + 0x2c]
cmp byte [esi + 2], 0
je 0x47ade4
movzx eax, byte [esi + 1]
mov ecx, dword [ecx]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1f4]
push eax
mov eax, dword [esp + 0xa0]
push eax
lea eax, [esi + 0x30]
shl edx, 4
mov ecx, dword [edx + ecx + 0x16b8]
push eax
push esi
call ecx
add esp, 0x10
add dword [esp + 0x24], 1
xor ebx, ebx
jmp 0x47af8f
fstp st(1)
mov eax, dword [esi + 0x10]
fstp st(0)
mov ecx, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword [esi + 8]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], edi
fld dword [edi + 0x58]
fstp dword [esp + 0x18]
mov eax, dword [eax + 8]
fld dword [eax + 0x40]
mov ecx, dword [ecx + 8]
fsub dword [eax + 0x50]
fstp dword [esp + 0x30]
fld dword [eax + 0x44]
fsub dword [eax + 0x54]
fstp dword [esp + 0x34]
fld dword [eax + 0x48]
fsub dword [eax + 0x58]
fstp dword [esp + 0x38]
fld dword [eax + 0x4c]
fsub dword [eax + 0x5c]
fstp dword [esp + 0x3c]
fld dword [ecx + 0x50]
fsub dword [ecx + 0x40]
fstp dword [esp + 0x40]
fld dword [ecx + 0x54]
fsub dword [ecx + 0x44]
fstp dword [esp + 0x44]
fld dword [ecx + 0x58]
fsub dword [ecx + 0x48]
fstp dword [esp + 0x48]
fld dword [ecx + 0x5c]
fsub dword [ecx + 0x4c]
fstp dword [esp + 0x4c]
fld dword [eax + 0x5c]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fmul dword [ecx + 0x5c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x30]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0xf0]
fld st(0)
fmul dword [esp + 0x34]
fstp dword [esp + 0xf4]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0xf8]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0xfc]
fld dword [esp + 0x40]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fld dword [esp + 0xf0]
faddp st(2)
fxch st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [esp + 0xf4]
fstp dword [esp + 0xf4]
fld dword [esp + 0x48]
fmul st(1)
fadd dword [esp + 0xf8]
fstp dword [esp + 0xf8]
fld dword [esp + 0x4c]
fmul st(1)
fadd dword [esp + 0xfc]
fstp dword [esp + 0xfc]
fmul dword [ecx + 0x9c]
push ecx
push eax
fmul dword [ecx + 0xa0]
lea ecx, [esp + 0xa8]
fld dword [eax + 0x9c]
fmulp st(2)
fld dword [eax + 0xa0]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x104]
call fcn.00402cb0
movzx eax, byte [esi + 1]
mov ecx, dword [edi]
lea edx, [esp + 0x1f0]
push edx
push ebx
lea edx, [esi + 0x20]
push edx
lea eax, [eax + eax*4]
shl eax, 4
lea edx, [esp + 0x9c]
mov dword [esp + 0xf0], ebx
mov eax, dword [eax + ecx + 0x16dc]
push esi
push edx
call eax
add esp, 0x14
mov ecx, dword [0x4c606c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x60]
push ebx
lea eax, [esp + 0x2f]
push eax
call edx
cmp byte [eax], 0
jne 0x47afb3
mov eax, dword [0x4c606c]
mov dword [eax + 4], 1
mov ecx, dword [0x4c606c]
cmp dword [ecx + 4], 1
je 0x47b04c
lea edx, [esp + 0x200]
cmp dword [esp + 0x1f0], edx
je 0x47aff6
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x1f0]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x88]
push edx
call eax
movzx ecx, byte [esi + 3]
add esi, ecx
cmp esi, dword [esp + 0x20]
jb 0x47a9b0
fld dword [0x4b33dc]
mov ecx, dword [esp + 0x2c]
fldz
mov eax, dword [ebp + 0xc]
fxch st(1)
cmp ecx, dword [eax + 8]
jl 0x47a984
fstp st(1)
mov edx, dword [0x4c6074]
fstp st(0)
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x47b04c
fild dword [esp + 0x24]
mov dword [ecx], 0x4b9fc0
add ecx, 8
fstp dword [ecx - 4]
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret