Function at 0x466670
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 eax, dword [eax - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 8]
mov dword [ebp - 8], eax
mov eax, dword [eax]
and eax, 0x1a
je 0x46675a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4666c8
and edx, 0x400
je 0x46675a
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x46675a
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
call fcn.004a1a80
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a1a80
pop ecx
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
pop edi
xor esi, eax
xor edi, edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 8]
mov dword [eax], 8
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466720
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46672c
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 0x466c7f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x466c7f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x4668ab
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x4668ab
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x466853
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x466853
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x400
je 0x4667d2
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4667d2
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x46680b
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0049b580
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00531d20
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004a4d10
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x46684b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add eax, edx
movsx edx, byte [eax]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
movsx ecx, byte [esi + ecx]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jne 0x466847
mov dword [ebp - 0x18], 0
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x14], eax
jb 0x46681b
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466871
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46687d
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 0x466c7f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x466c7f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x4669d8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4668df
and edx, 0x400
je 0x4669d8
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4669d8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x466980
mov eax, dword [ebp - 4]
push eax
call fcn.0049ffd0
pop ecx
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x400
je 0x466924
mov edx, dword [eax + 0xc]
test edx, edx
je 0x466924
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x466973
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0049b580
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00531d20
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004a4d10
add esp, 0xc
jmp 0x466973
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
movsx edx, byte [eax]
movsx ecx, byte [ebp - 0x11]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x466960
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x46699e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4669aa
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 0x466c7f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x466c7f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4669fc
and edx, 0x400
je 0x466ac8
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x466ac8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x466ac8
mov eax, dword [ebp - 8]
push eax
call fcn.004a1a80
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x466a50
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
pop edi
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx + eax]
cdq
xor esi, eax
xor edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x466a30
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
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466a8e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466a9a
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 0x466c7f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x466c7f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x466aec
and edx, 0x400
je 0x466ba2
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x466ba2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x466b10
and edx, 0x400
je 0x466ba2
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x466ba2
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
call fcn.004a1a80
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a1a80
pop ecx
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
pop edi
xor esi, eax
xor edi, edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 8]
mov dword [eax], 8
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466b68
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466b74
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 0x466c7f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x466c7f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 2
push 0x696d03
push 0
push 0x440
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x466c7f
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466beb
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466bf7
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 0x466c1c
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 0x466c3a
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466c46
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 0x466c6b
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.004a4430
pop ecx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049f7d0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret