Function at 0x486b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
cmp dword [0x7beb1c], 0
je 0x486b2a
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 0x8000
jne 0x486b2a
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
test eax, eax
jne 0x486b34
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp + 0xc]
mov bx, word [eax + 0xe]
movzx eax, bx
and eax, 0x2c
je 0x487129
movzx eax, bx
and eax, 0x2c
cmp eax, 0x20
jne 0x486b74
cmp dword [ebp + 0x10], 2
je 0x486b74
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
movsx eax, byte [eax]
cmp eax, 0x5f
je 0x486b74
mov eax, 1
jmp 0x48712e
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
shl eax, 6
mov edx, dword [0x7beafc]
lea eax, [edx + eax - 0x40]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
jne 0x486bb6
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
lea esi, [edx + eax*4]
push 0x699acd
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
je 0x486be8
push 0x699ac7
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x486bf5
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
lea esi, [edx + eax*4]
push 0x699ac1
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x486c13
mov edi, dword [esi + 0xc]
jmp 0x486c16
mov edi, dword [esi + 4]
movzx eax, bx
and eax, 0x100
je 0x486c56
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004872e0
add esp, 8
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
je 0x486c56
movzx eax, word [ebp - 0xe]
shl eax, 6
mov edx, dword [0x7beafc]
lea eax, [edx + eax - 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
and eax, 0x8000
je 0x486cc4
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
test eax, eax
je 0x486cc4
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
shl eax, 6
mov edx, dword [0x7beafc]
lea eax, [edx + eax - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486ca7
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x486cac
jmp 0x486d4b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x486d4b
mov eax, 1
jmp 0x48712e
mov eax, dword [edi]
and eax, 0x1000
je 0x486d0f
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x486cf5
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x486cf7
jmp 0x486d4b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x486d4b
mov edx, dword [ebp - 0x14]
cmp eax, edx
jne 0x486d4b
mov eax, 1
jmp 0x48712e
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486d4b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x486d4b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x486d4b
mov eax, 1
jmp 0x48712e
mov eax, dword [edi]
and eax, 0x1000
je 0x486e1a
mov eax, dword [edi + 0x10]
cmp word [eax + 0x1a], 0
jne 0x486dc9
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x3a
mov eax, dword [ebp - 0x10]
push eax
call fcn.00532890
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486da9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, eax
sub edx, ecx
push edx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push edx
push eax
call fcn.00532010
add esp, 0xc
test eax, eax
jne 0x486de8
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x486de8
mov eax, 1
jmp 0x48712e
mov eax, dword [edi + 0x10]
movzx eax, word [eax + 0x1a]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
movzx edx, word [edx + 0xc]
cmp eax, edx
jne 0x486de8
mov eax, 1
jmp 0x48712e
mov eax, esi
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp eax, edx
je 0x486e1a
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
lea esi, [edx + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax]
and eax, 0x1000
je 0x486e17
mov eax, esi
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp eax, edx
jne 0x486df3
mov edi, dword [esi + 4]
mov eax, dword [edi]
and eax, 0x8000
je 0x48708c
mov eax, dword [edi + 8]
cmp word [eax + 0xc], 0
je 0x48708c
movzx eax, bx
and eax, 0x100
je 0x486f85
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004872e0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
push edi
call fcn.004872e0
add esp, 8
movzx edx, word [ebp - 0x14]
movzx eax, ax
cmp edx, eax
jne 0x486e89
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp - 0x10]
push eax
push edi
call fcn.004872e0
add esp, 8
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx + 8]
mov edx, dword [edx]
push edx
movzx eax, ax
push eax
call fcn.004879d0
add esp, 8
test eax, eax
je 0x486ebb
mov eax, 1
jmp 0x48712e
movzx eax, bx
and eax, 8
jne 0x487041
movzx eax, bx
mov edx, eax
and edx, 4
je 0x486eda
and eax, 0x20
jne 0x487041
movzx eax, bx
and eax, 0x20
je 0x486eec
mov eax, 1
jmp 0x48712e
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
shl eax, 6
mov edx, dword [0x7beafc]
lea eax, [edx + eax - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004873c0
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0xc]
inc eax
mov word [ebp - 0x22], ax
jmp 0x486f70
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xe]
and eax, 0x80
je 0x486f67
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x486f67
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0x38]
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x22]
dec eax
mov word [ebp - 0x22], ax
movzx eax, ax
test eax, eax
jne 0x486f34
jmp 0x487041
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
movzx edx, word [edx + 0xc]
cmp eax, edx
jne 0x486fa4
mov eax, 1
jmp 0x48712e
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
shl eax, 6
mov edx, dword [0x7beafc]
lea eax, [edx + eax - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
inc eax
mov word [ebp - 0x1a], ax
jmp 0x48702d
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xe]
and eax, 0x80
je 0x487024
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x487024
movzx eax, bx
and eax, 4
je 0x48701a
movzx eax, bx
and eax, 0x20
jne 0x487041
mov eax, 1
jmp 0x48712e
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x38]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 0x1a]
dec eax
mov word [ebp - 0x1a], ax
movzx eax, ax
test eax, eax
jne 0x486fd7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x2e]
inc eax
mov word [ebp - 0x12], ax
jmp 0x48707c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov edx, dword [edi + 8]
movzx edx, word [edx + 0xc]
cmp eax, edx
jne 0x487073
mov eax, 1
jmp 0x48712e
mov eax, dword [ebp - 0x10]
lea eax, [eax + 2]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 0x12]
dec eax
mov word [ebp - 0x12], ax
movzx eax, ax
test eax, eax
jne 0x487058
mov byte [ebp - 0x4c], 0
push str.Scope_Violation__
lea eax, [ebp - 0x4c]
push eax
call fcn.00532090
add esp, 8
movzx eax, bx
and eax, 8
je 0x4870ba
push str.HIDDEN
lea eax, [ebp - 0x4c]
push eax
call fcn.00532090
add esp, 8
movzx eax, bx
and eax, 4
je 0x4870d3
push str.PROTECTED
lea eax, [ebp - 0x4c]
push eax
call fcn.00532090
add esp, 8
movzx eax, bx
and eax, 0x20
je 0x4870ec
push str.READONLY
lea eax, [ebp - 0x4c]
push eax
call fcn.00532090
add esp, 8
lea eax, [ebp - 0x4c]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4870f4
dec eax
mov byte [ebp + eax - 0x4c], 0x3e
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x3ec
push 0xd
call fcn.00492870
add esp, 0x18
xor eax, eax
jmp 0x48712e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret