Function at 0x465a30
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 0x465b1a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x465a88
and edx, 0x400
je 0x465b1a
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x465b1a
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
and esi, eax
and 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 0x465ae0
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465aec
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 0x46603f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46603f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x465c6b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x465c6b
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 0x465c13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x465c13
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 0x465b92
mov edx, dword [eax + 0xc]
test edx, edx
je 0x465b92
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x465bcb
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 0x465c0b
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]
and edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jne 0x465c07
mov dword [ebp - 0x18], 0
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x14], eax
jb 0x465bdb
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465c31
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465c3d
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 0x46603f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46603f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x465d98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x465c9f
and edx, 0x400
je 0x465d98
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x465d98
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x465d40
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 0x465ce4
mov edx, dword [eax + 0xc]
test edx, edx
je 0x465ce4
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x465d33
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 0x465d33
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
movsx edx, byte [eax]
movsx ecx, byte [ebp - 0x11]
and edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x465d20
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465d5e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465d6a
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 0x46603f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46603f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x465dbc
and edx, 0x400
je 0x465e88
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x465e88
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x465e88
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 0x465e10
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
and esi, eax
and edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x465df0
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 0x465e4e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465e5a
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 0x46603f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46603f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x465eac
and edx, 0x400
je 0x465f62
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x465f62
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x465ed0
and edx, 0x400
je 0x465f62
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x465f62
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
and esi, eax
and 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 0x465f28
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465f34
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 0x46603f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x46603f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 2
push 0x696d08
push 0
push 0x440
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x46603f
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x465fab
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x465fb7
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 0x465fdc
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 0x465ffa
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x466006
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 0x46602b
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