Function at 0x46f7d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xb828]
push edi
mov edi, dword [eax + 0x3c]
xor ecx, ecx
and edi, 0xfffff
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0x14], ecx
sete bl
mov dword [ebp - 0x48], ecx
mov byte [ebp - 5], cl
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0xec]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 2
push ebx
push edi
push ecx
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0x431778
push eax
mov ecx, esi
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x10], edi
call fcn.004f3a10
cmp dword [ebp - 0x14], 0x20
ja 0x46f848
test eax, eax
je 0x46f893
push ebx
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xec]
push ecx
mov ecx, dword [esi + 0xb828]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0x431868
push ecx
mov ecx, esi
mov byte [ebp - 5], 1
call fcn.004f3a10
cmp dword [ebp - 0x14], 0x20
jbe 0x46f88b
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x46fc28
fld qword [0x44f5d8]
lea edx, [ebp - 0xdc]
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0xbc]
lea edx, [ebp - 0xac]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edx
xor ebx, ebx
test edi, edi
jbe 0x46f9d4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [edx]
mov ecx, dword [ecx]
mov esi, dword [ebp + ebx*4 - 0xec]
or edx, 0xffffffff
cmp dword [ecx + 0x24], edx
jne 0x46f98a
cmp dword [esi + 0x24], edx
jne 0x46f98a
cmp dword [edi + 0x24], edx
jne 0x46f98a
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
xor edx, edx
or eax, edx
je 0x46f987
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, edx
je 0x46f987
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, edx
je 0x46f987
fld qword [edi + 0xa8]
fsub qword [ecx + 0xa8]
fsub qword [esi + 0xa8]
fabs
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x46f987
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
cmp ecx, dword [edx]
jne 0x46f987
mov eax, 4
add dword [ebp - 0x2c], eax
add dword [ebp - 0x1c], eax
add dword [ebp - 0x20], eax
add dword [ebp - 0x30], eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x46f8ed
or edx, 0xffffffff
mov edi, dword [ebp - 0x10]
cmp ebx, edi
je 0x46f9d9
mov eax, dword [ebp - 0x34]
mov ecx, 0x10
sub dword [ebp - 0x18], ecx
add dword [ebp - 0x24], ecx
inc eax
mov dword [ebp - 0x34], eax
cmp eax, 2
jb 0x46f8cb
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x28], ecx
add dword [ebp - 0xc], ecx
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 2
jb 0x46f8b2
mov ebx, 1
fstp st(0)
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
or edx, 0xffffffff
jmp 0x46f98d
mov eax, dword [0x551d48]
fstp st(0)
test eax, eax
jge 0x46f9e8
xor eax, eax
jmp 0x46f9f2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or edx, 0xffffffff
cmp dword [eax + 0x14], 0
je 0x46fa19
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x46fa03
mov esi, ecx
jmp 0x46fa2a
mov esi, dword [ecx]
mov dword [eax + 0x14], esi
test esi, esi
jne 0x46fa0f
mov dword [eax + 0x18], esi
mov dword [ecx], 0xfefefefe
mov esi, ecx
jmp 0x46fa2a
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
mov esi, eax
or edx, 0xffffffff
xor eax, eax
cmp esi, eax
je 0x46fa75
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x3c], eax
mov dword [esi + 4], eax
mov word [esi + 0x40], cx
mov dword [esi + 0xc], eax
mov word [esi + 0x42], cx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ebp - 0xc], esi
cmp byte [ebp - 5], cl
je 0x46fa94
cmp dword [ebp + 0xc], eax
je 0x46fa85
lea ebx, [eax + 1]
jmp 0x46fb74
mov ebx, 0x8007000e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push eax
mov eax, edi
and eax, 0xfffff
or eax, 0x70c00000
jmp 0x46faa1
push eax
mov eax, edi
and eax, 0xfffff
or eax, 0x70b00000
push esi
mov edx, edi
lea ecx, [edi + edi]
call fcn.0050a980
mov ebx, eax
test ebx, ebx
jl 0x46fb72
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb828]
mov edx, dword [eax + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [ecx + 0xb828]
mov edx, dword [ecx + 0xc]
mov eax, dword [esi + 0xc]
lea ebx, [edi*4]
push ebx
push edx
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esi + 4]
add esp, 0xc
push ebx
lea ecx, [ebp - 0xec]
push ecx
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp - 5], 0
push ebx
je 0x46fb1b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb828]
mov edx, dword [ecx + 4]
mov eax, dword [esi + 4]
add edx, ebx
push edx
add eax, ebx
push eax
jmp 0x46fb31
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb828]
mov eax, dword [edx + 4]
mov edx, dword [esi + 4]
lea ecx, [eax + edi*8]
push ecx
add edx, ebx
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov ebx, dword [eax + ebx]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
add esp, 0xc
cmp byte [ebp + 0x18], 0
je 0x46fbd2
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x10]
jne 0x46fb60
mov edi, dword [ecx + 0x28]
cmp edi, dword [edx + 0x28]
je 0x46fb6d
cmp eax, dword [ebx + 0x10]
jne 0x46fbd2
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [ebx + 0x28]
jne 0x46fbd2
mov ebx, 1
xor eax, eax
mov esi, dword [ebp - 0xc]
cmp esi, eax
je 0x46fc26
call fcn.0050a890
mov eax, dword [0x551d48]
test eax, eax
jl 0x46fc26
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x46fc26
mov edi, dword [ebp - 0xc]
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x18]
add esp, 0xc
test eax, eax
je 0x46fc20
mov dword [eax], edi
mov dword [esi + 0x18], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x46fc0b
mov edx, dword [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 0xc], ebx
cmp edx, ebx
jbe 0x46fc01
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + edx*4 - 4]
mov esi, dword [ebp + eax*4 - 0x16c]
mov dword [ecx], esi
inc eax
sub ecx, 4
cmp eax, edx
jb 0x46fbf0
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x46fb72
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb828]
push esi
push edx
call fcn.0050b3a0
jmp 0x46fb72
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14