Function at 0x461910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
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 - 8]
mov eax, dword [ebx + 4]
mov edi, dword [eax - 4]
mov eax, dword [esi]
mov edx, eax
and edx, 0x3a
jne 0x461953
and eax, 0x400
je 0x461ae5
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x461ae5
mov eax, dword [edi]
mov edx, eax
and edx, 0x3a
jne 0x461973
and eax, 0x400
je 0x461ae5
mov eax, dword [edi + 8]
cmp eax, 1
jne 0x461ae5
push edi
call fcn.0049fd50
pop ecx
fst qword [ebp - 0x10]
fstp qword [ebp - 8]
fld qword [0x696e14]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
jne 0x461a6f
push edi
push esi
push 2
push 0x696e0d
push 0
push 0x53c
push 5
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0x14], eax
test eax, eax
je 0x461bec
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4619d6
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4619e2
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 0x461a07
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x461a25
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x461a31
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 0x461a56
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.004a4430
pop ecx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049f7d0
pop ecx
jmp 0x461bec
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x461a8d
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x461a99
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 0x461abe
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
call fcn.0046bde0
fstp qword [ebp - 0x18]
mov eax, dword [0x7d7f4c]
push eax
fld qword [ebp - 0x18]
fdiv qword [ebp - 8]
sub esp, 8
fstp qword [esp]
call fcn.0046af40
add esp, 0xc
jmp 0x461bec
push esi
call fcn.004874e0
pop ecx
and eax, 8
je 0x461b15
push 0
push 2
push 0
push str.__OPDIVIDE
push edi
push esi
call fcn.004689e0
add esp, 0x18
lea eax, [ebx + 0x10]
push eax
call fcn.004a4430
pop ecx
jmp 0x461bec
push edi
push esi
push 2
push 0x696e0d
push 0
push 0x43c
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 4], eax
test eax, eax
je 0x461bec
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x461b58
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x461b64
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 0x461b89
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x461ba7
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x461bb3
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 0x461bd8
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.004a4430
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.0049f7d0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret