Function at 0x465220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
jmp 0x4652c2
mov eax, dword [ebx + 4]
mov edi, dword [eax - 4]
push edi
push 1
push 0x696d74
push 0
push 0x431
push 1
call fcn.00492ab0
add esp, 0x18
mov esi, eax
test eax, eax
je 0x4655ee
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465283
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46528f
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 0x4652b4
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
push esi
call fcn.004a4430
pop ecx
push esi
call fcn.0049f7d0
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4652e9
and edx, 0x400
je 0x46523c
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x46523c
call fcn.0046bde0
fst qword [ebp - 0x10]
fstp qword [ebp - 8]
jmp 0x46537f
mov eax, dword [ebx + 4]
mov edi, dword [eax - 4]
push edi
push 1
push 0x696d74
push 0
push 0x431
push 1
call fcn.00492ab0
add esp, 0x18
mov esi, eax
test eax, eax
je 0x4655ee
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465340
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46534c
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 0x465371
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
push esi
call fcn.004a4430
pop ecx
push esi
call fcn.0049f7d0
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4653b1
and edx, 0x400
je 0x46539e
mov eax, dword [eax + 8]
cmp eax, 1
je 0x4653b1
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0x80
je 0x4652f9
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
cmp eax, 0x80
jne 0x4654ce
call fcn.0046bd50
mov dword [ebp - 0x14], eax
jmp 0x465457
mov eax, dword [ebx + 4]
mov edi, dword [eax - 4]
push edi
push 1
push 0x696d74
push 0
push 0x431
push 1
call fcn.00492ab0
add esp, 0x18
mov esi, eax
test eax, eax
je 0x4655ee
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465418
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465424
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 0x465449
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
push esi
call fcn.004a4430
pop ecx
push esi
call fcn.0049f7d0
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0x80
je 0x4653d1
call fcn.0046bd50
mov dword [ebp - 0x18], eax
fld qword [0x696e14]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
ja 0x46549e
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jg 0x465490
mov esi, 1
jmp 0x465492
xor esi, esi
push esi
call fcn.0046aa20
pop ecx
jmp 0x4655ee
fld qword [0x696e14]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
jbe 0x4655ee
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jl 0x4654c0
mov esi, 1
jmp 0x4654c2
xor esi, esi
push esi
call fcn.0046aa20
pop ecx
jmp 0x4655ee
call fcn.0046bde0
fst qword [ebp - 0x28]
fstp qword [ebp - 0x18]
jmp 0x465564
mov eax, dword [ebx + 4]
mov edi, dword [eax - 4]
push edi
push 1
push 0x696d74
push 0
push 0x431
push 1
call fcn.00492ab0
add esp, 0x18
mov esi, eax
test eax, eax
je 0x4655ee
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465525
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465531
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 0x465556
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
push esi
call fcn.004a4430
pop ecx
push esi
call fcn.0049f7d0
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x46558b
and edx, 0x400
je 0x4654de
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4654de
call fcn.0046bde0
fst qword [ebp - 0x30]
fstp qword [ebp - 0x20]
fld qword [0x696e14]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
ja 0x4655c3
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
wait
fnstsw ax
sahf
jb 0x4655b8
mov esi, 1
jmp 0x4655ba
xor esi, esi
push esi
call fcn.0046aa20
pop ecx
jmp 0x4655ee
fld qword [0x696e14]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
jbe 0x4655ee
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
wait
fnstsw ax
sahf
ja 0x4655e5
mov esi, 1
jmp 0x4655e7
xor esi, esi
push esi
call fcn.0046aa20
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret