Function at 0x466050
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 0x46613a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4660a8
and edx, 0x400
je 0x46613a
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x46613a
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
or esi, eax
or 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 0x466100
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46610c
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 0x46665f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46665f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x46628b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x46628b
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 0x466233
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x466233
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 0x4661b2
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4661b2
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x4661eb
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 0x46622b
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]
or edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jne 0x466227
mov dword [ebp - 0x18], 0
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x14], eax
jb 0x4661fb
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x466251
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46625d
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 0x46665f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46665f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x4663b8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4662bf
and edx, 0x400
je 0x4663b8
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4663b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x466360
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 0x466304
mov edx, dword [eax + 0xc]
test edx, edx
je 0x466304
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x466353
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 0x466353
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
movsx edx, byte [eax]
movsx ecx, byte [ebp - 0x11]
or edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x466340
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x46637e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46638a
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 0x46665f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46665f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4663dc
and edx, 0x400
je 0x4664a8
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4664a8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x4664a8
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 0x466430
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
or esi, eax
or edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x466410
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 0x46646e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46647a
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 0x46665f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46665f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4664cc
and edx, 0x400
je 0x466582
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x466582
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4664f0
and edx, 0x400
je 0x466582
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x466582
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
or esi, eax
or 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 0x466548
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466554
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 0x46665f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46665f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 2
push 0x696d06
push 0
push 0x440
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x46665f
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4665cb
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4665d7
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 0x4665fc
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 0x46661a
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466626
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 0x46664b
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