Function at 0x46c1e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
mov edi, ecx
mov ecx, esi
mov dword [esp + 0x18], edi
call edx
mov ebx, eax
add ebx, dword [edi + 0xc]
lea ecx, [esp + 0x2c]
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
push eax
call fcn.0047b4d0
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esp + 0x44]
call fcn.0046c600
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [edi + 0x40]
push eax
lea ecx, [esp + 0x6c]
call fcn.0047c0c0
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x60]
add eax, 0xc
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x60]
call eax
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x64]
call eax
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
push esi
mov ecx, edi
call fcn.0046c110
mov ecx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x46c287
cmp dword [ebp + 0x10], ecx
jge 0x46c2a2
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
push 0x28
push edx
mov ecx, eax
call fcn.004025a0
cmp byte [edi + 0x1c], 0
lea ecx, [ebx + ebx*4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
je 0x46c2bf
mov ebx, 0x1000
mov edx, dword [esi]
imul ebx, ebx, 0x7c
add ebx, ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
mov dword [esp + 0x2c], ebx
call eax
lea ecx, [esp + 0xd4]
call fcn.0047ea00
lea ecx, [esp + 0x20]
push ecx
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
lea ecx, [esp + 0xe8]
call fcn.0047f3d0
mov ebx, eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0x1c], ebx
call fcn.0047ea30
mov esi, dword [esp + 0x10]
cmp esi, dword [ebp + 0xc]
je 0x46c32e
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ecx, eax
call fcn.004025d0
mov eax, dword [edi + 4]
test eax, eax
mov dword [edi], ebx
jne 0x46c347
lea ecx, [esp + 0x2c]
call fcn.0047b5b0
mov esi, eax
jmp 0x46c4a3
mov esi, dword [eax + 0x14]
imul esi, dword [eax]
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x28
push 0x30
mov ecx, eax
call fcn.00402380
fldz
mov word [eax + 4], 0x30
mov word [eax + 6], 1
mov dword [eax], vtable.hkpMoppCode.0
lea ebx, [eax + 0x20]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], bind
fst dword [eax + 0x1c]
fst dword [eax + 0x18]
mov dword [esp + 0x14], eax
fst dword [eax + 0x14]
fstp dword [eax + 0x10]
mov ecx, dword [ebx + 8]
and ecx, 0x3fffffff
cmp ecx, esi
jge 0x46c3b8
push 1
push esi
push ebx
call fcn.004026b0
add esp, 0xc
mov eax, dword [ebx + 4]
cmp esi, eax
mov dword [esp + 0x10], eax
jle 0x46c3fd
mov ecx, dword [ebx + 8]
and ecx, 0x3fffffff
cmp ecx, esi
jge 0x46c3e9
lea eax, [ecx + ecx]
cmp esi, eax
jl 0x46c3d9
mov eax, esi
push 1
push eax
push ebx
call fcn.004026b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jge 0x46c3fd
lea ecx, [ecx]
mov edx, dword [ebx]
mov byte [eax + edx], 0xcd
add eax, 1
cmp eax, esi
jl 0x46c3f0
mov dword [ebx + 4], esi
mov ecx, dword [edi + 4]
xor eax, eax
cmp dword [ecx + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x46c49f
jmp 0x46c41a
mov eax, dword [esp + 0x10]
mov edi, esi
mov edi, dword [edi + 4]
mov esi, dword [edi]
imul esi, eax
add esi, dword [ebx]
lea ecx, [eax*8]
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [eax]
call fcn.0047b5b0
mov edi, eax
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
push edx
push eax
push esi
call fcn.00406220
mov edx, dword [edi]
mov eax, dword [edx]
add esp, 0xc
push 1
mov ecx, edi
call eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x10]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [eax + edx]
cmp word [ecx + 4], 0
je 0x46c488
add word [ecx + 6], 0xffff
movzx eax, word [ecx + 6]
test ax, ax
jne 0x46c488
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
add eax, 1
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
jl 0x46c414
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [edx + 0x18]
lea ecx, [esp + 0x68]
call eax
lea ecx, [esp + 0x60]
call fcn.0047ba90
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], vtable.hkBaseObject.0
call fcn.0047b510
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc