Function at 0x5e7920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
test eax, eax
je 0x5e794d
mov eax, dword [eax + 0x30]
test eax, eax
je 0x5e794d
mov eax, dword [eax + 0x50]
test eax, eax
je 0x5e794d
mov eax, dword [eax + 0x54]
jmp 0x5e794f
xor eax, eax
push eax
call fcn.005e8440
cmp word [edi + 0xec], 0xffff
mov edx, dword [edi + 0x30]
mov dword [ebp - 4], edx
jne 0x5e7a12
cmp dword [edi + 0xe4], 0
jne 0x5e7a12
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x5e7985
mov ecx, dword [ecx + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x5e798c
mov dword [ebp - 0xc], 0
mov eax, dword [esi]
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x5e79b6
mov ecx, dword [esi + 0x14]
mov eax, 1
test ecx, ecx
je 0x5e79ab
call fcn.0045c0c0
mov eax, 1
mov esi, dword [esi + 0x14]
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
jmp 0x5e79c3
xor ecx, ecx
mov eax, 2
mov dword [ebp - 8], ecx
mov esi, dword [ebp - 8]
lea edx, [ebp - 8]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
test al, 2
je 0x5e79e1
and eax, 0xfffffffd
mov dword [ebp - 8], eax
test ecx, ecx
je 0x5e79e1
call fcn.0045c160
mov eax, dword [ebp - 8]
test al, 1
je 0x5e79f0
test esi, esi
je 0x5e79f0
mov ecx, esi
call fcn.0045c160
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5e7a0c
push dword [edi + 0x34]
push eax
push dword [ebp - 0x10]
call fcn.005ef2c0
add esp, 0xc
mov dword [edi + 0xe4], eax
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [0x8d45ec]
test ecx, ecx
je 0x5e7a2a
mov eax, dword [ecx]
push edi
push edx
push esi
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x5e7a35
push dword [ebp - 4]
mov ecx, edi
push esi
call fcn.005e8710
cmp dword [edi + 0x48], 0
jne 0x5e7a8a
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
xorps xmm0, xmm0
mov dword [ebp + 8], eax
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0x1ffff
mov dword [eax], vtable.BSSynchronizedClipGenerator::hkbDefaultSynchronizedScene.0
call fcn.0045c0c0
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x5e7a84
call fcn.0045c160
mov eax, dword [ebp + 8]
mov dword [edi + 0x48], eax
lea eax, [edi + 0xb0]
mov ecx, edi
push eax
push esi
call fcn.005e81c0
test al, al
jne 0x5e7ac3
xorps xmm0, xmm0
movaps xmmword [edi + 0xb0], xmm0
movaps xmm0, xmmword [0x7195b0]
movaps xmmword [edi + 0xc0], xmm0
movaps xmm0, xmmword [0x719da0]
movaps xmmword [edi + 0xd0], xmm0
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
movaps xmm0, xmmword [eax]
movaps xmmword [edi + 0x50], xmm0
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [edi + 0x60], xmm0
movaps xmm0, xmmword [eax + 0x20]
movaps xmmword [edi + 0x70], xmm0
movaps xmm0, xmmword [edi + 0x50]
movaps xmmword [edi + 0x80], xmm0
movaps xmm0, xmmword [edi + 0x60]
movaps xmmword [edi + 0x90], xmm0
movaps xmm0, xmmword [edi + 0x70]
movaps xmmword [edi + 0xa0], xmm0
movss xmm0, dword [edi + 0x3c]
ucomiss xmm0, dword [0x718814]
lahf
test ah, 0x44
jp 0x5e7b1c
mov dword [edi + 0xe0], 0x3f800000
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4