Function at 0x46a5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [ebx + 4]
mov esi, dword [eax - 4]
and dword [esi], 0xfffff7ff
push esi
lea eax, [ebx + 0x10]
push eax
call fcn.004a44a0
add esp, 8
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x46a601
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x46a780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0xa
je 0x46a7be
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049ffd0
pop ecx
sub esi, eax
jmp 0x46a834
fld qword [0x696e14]
fstp qword [ebp - 8]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049fd50
pop ecx
fstp qword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
fld qword [ebp - 0x18]
sub esp, 8
fstp qword [esp]
call fcn.005347e0
add esp, 0xc
fstp qword [ebp - 0x20]
fld qword [0x696bac]
fmul qword [ebp - 0x20]
call fcn.00532060
sub edi, eax
test edi, edi
jge 0x46a812
lea edi, [edi + 0x5265c00]
fld qword [ebp - 8]
fadd qword [0x696dd4]
fstp qword [ebp - 8]
push 0x5265c00
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00534790
add esp, 0xc
mov edi, dword [ebp - 0xc]
fld qword [ebp - 8]
call fcn.00532060
sub eax, dword [ebp - 0x10]
sub esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x46a852
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46a85e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x46a883
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
test esi, esi
jge 0x46a889
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], 0x20
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46a8b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
call fcn.004a4960
add esp, 8
mov eax, dword [ebx + 8]
dec eax
mov dword [ebp - 8], eax
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
sub edx, ecx
mov dword [ebp - 4], edx
mov eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [ebp - 8]
cmp ecx, eax
jg 0x46a8ff
call fcn.004a8c60
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx + 4]
mov dword [eax], edx
mov eax, dword [edx]
mov dword [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret