Function at 0x4562d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov edx, dword [ebp + 0xc]
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov ecx, 1
lea eax, [esi + 8]
mov word [esi + 6], cx
mov dword [eax], vtable.hkpWorldDeletionListener.0
mov dword [esi + 0xc], vtable.hkpPhantomOverlapListener.0
cmp word [esi + 4], 0
lea ebx, [esi + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esi], vtable.hkpBroadPhaseBorder.2.0
mov dword [eax], vtable.hkpBroadPhaseBorder.1.0
mov dword [ebx], vtable.hkpBroadPhaseBorder.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edx
je 0x456323
add word [esi + 6], cx
push eax
mov ecx, edi
call fcn.00440780
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x2d0]
mov edx, dword [eax + 0x2d4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x2d8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x2dc]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x2e0]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x2e4]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x20]
mov ecx, dword [eax + 0x2e8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x2ec]
fst dword [esp + 0x30]
fld dword [esp + 0x14]
mov eax, dword [0x4c6060]
fstp dword [esp + 0x34]
mov dword [esp + 0x28], ecx
fld dword [esp + 0x18]
push eax
fstp dword [esp + 0x3c]
mov dword [esp + 0x30], edx
fldz
fst dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov word [eax + 4], 0xd0
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x14], eax
call fcn.004403e0
fld dword [esp + 0x10]
mov edx, dword [0x4c6060]
fst dword [esp + 0x30]
fld dword [esp + 0x14]
push edx
fstp dword [esp + 0x38]
fld dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fldz
fst dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
mov word [eax + 4], 0xd0
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.004403e0
fld dword [esp + 0x10]
mov edx, dword [0x4c6060]
fstp dword [esp + 0x30]
fld dword [esp + 0x24]
push edx
fst dword [esp + 0x38]
fld dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fldz
fst dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x44]
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov word [eax + 4], 0xd0
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.004403e0
fld dword [esp + 0x10]
mov edx, dword [0x4c6060]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
push edx
fst dword [esp + 0x38]
fld dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fldz
fst dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x44]
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov word [eax + 4], 0xd0
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x20], eax
call fcn.004403e0
fld dword [esp + 0x10]
mov edx, dword [0x4c6060]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
push edx
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fxch st(1)
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov word [eax + 4], 0xd0
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x24], eax
call fcn.004403e0
fld dword [esp + 0x10]
mov edx, dword [0x4c6060]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
push edx
fstp dword [esp + 0x38]
fld dword [esp + 0x1c]
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fxch st(1)
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x31
push 0xd0
mov ecx, eax
call fcn.00402380
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov word [eax + 4], 0xd0
call fcn.00463f30
push ebx
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [eax + 0x28], 3
call fcn.00454640
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x28], eax
call fcn.004403e0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8