Function at 0x460120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x2000
je 0x460151
mov eax, dword [ebp + 8]
push eax
call fcn.004a0990
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xa
je 0x4602fd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 2
je 0x460178
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x460188
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
pop edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
pop edx
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sar ebx, 0x1f
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], 0
jl 0x4601dc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00531e50
jae 0x4601d0
mov dword [ebp - 0x2c], 1
jmp 0x4601d7
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x2c]
jmp 0x460202
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00531ee0
jae 0x4601f8
mov dword [ebp - 0x30], 1
jmp 0x4601ff
mov dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4602f2
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
pop edx
push edx
push eax
push dword [0x696e88]
push dword [0x696e84]
call fcn.00531e50
jae 0x46028a
push edx
push eax
push dword [0x696e80]
push dword [0x696e7c]
call fcn.00531eb0
jae 0x46028a
mov eax, dword [ebp + 8]
mov dword [eax], 2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [0x696e78]
push dword [0x696e74]
call fcn.00531eb0
jae 0x460266
mov dword [ebp - 0x34], 0x14
jmp 0x46026d
mov dword [ebp - 0x34], 0xa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
pop edi
mov edx, esi
mov dword [eax + 0xc], edx
jmp 0x46055b
mov eax, dword [ebp + 8]
mov dword [eax], 8
mov eax, dword [ebp + 8]
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
pop edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
pop edx
push edx
push eax
push dword [0x696e78]
push dword [0x696e74]
call fcn.00531e80
jae 0x4602d4
push edx
push eax
push dword [0x696e70]
push dword [0x696e6c]
call fcn.00531e50
jae 0x4602dd
mov dword [ebp - 0x34], 0x14
jmp 0x4602e4
mov dword [ebp - 0x34], 0xa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x10], edx
jmp 0x46055b
fild qword [ebp - 0x18]
fstp qword [ebp - 8]
jmp 0x460503
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x20
je 0x460317
mov eax, dword [ebp + 8]
lea eax, [eax + 8]
mov edx, dword [ebp + 0xc]
add dword [eax], edx
jmp 0x46055b
mov eax, dword [ebp + 8]
mov edx, dword [eax]
and edx, 0x400
je 0x460355
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x460355
push 1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
movsx edx, byte [edx]
mov ecx, dword [ebp + 0xc]
add edx, ecx
movzx edx, dl
mov edx, dword [edx*4 + 0x7bfba8]
push edx
push eax
call fcn.004a4e80
add esp, 0xc
jmp 0x46055b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x10
je 0x460372
mov eax, dword [ebp + 8]
fld qword [eax + 8]
fild dword [ebp + 0xc]
faddp st(1)
fstp qword [ebp - 8]
jmp 0x460503
cmp dword [ebp + 0xc], 1
jne 0x46039e
mov eax, dword [ebp + 8]
push eax
call fcn.004874e0
pop ecx
and eax, 0x40
je 0x46039e
mov eax, dword [ebp + 8]
push eax
push str.__OPINC
push eax
call fcn.00468ac0
add esp, 0xc
jmp 0x46055b
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4603cc
mov eax, dword [ebp + 8]
push eax
call fcn.004874e0
pop ecx
and eax, 0x80
je 0x4603cc
mov eax, dword [ebp + 8]
push eax
push str.__OPDEC
push eax
call fcn.00468ac0
add esp, 0xc
jmp 0x46055b
mov eax, dword [ebp + 8]
push eax
call fcn.004874e0
pop ecx
and eax, 1
je 0x46040f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046ac40
pop ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.__OPPLUS
mov edx, dword [ebp - 0x10]
push edx
push eax
call fcn.004689e0
add esp, 0x18
jmp 0x46055b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
jle 0x46044f
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046ac40
pop ecx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push 2
push 0x696e4e
push 0
push 0x439
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x46047e
mov eax, dword [ebp + 0xc]
neg eax
push eax
call fcn.0046ac40
pop ecx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push 2
push 0x696e4c
push 0
push 0x43a
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46055b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4604ad
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4604bc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
cmp eax, edx
jae 0x4604e7
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a44a0
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049f7d0
pop ecx
jmp 0x46055b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x10
jne 0x460520
mov eax, dword [ebp + 8]
mov dword [eax], 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
fld qword [ebp - 8]
fstp qword [eax + 8]
fld qword [0x696e44]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
jbe 0x460547
fld qword [0x696e3c]
fcomp qword [ebp - 8]
wait
fnstsw ax
sahf
jb 0x46054e
mov ebx, 0x14
jmp 0x460553
mov ebx, 0xa
mov eax, dword [ebp + 8]
mov edx, ebx
mov dword [eax + 0x10], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret