Function at 0x5b05f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0xf4], 0
mov byte [esi + 0xc7], 1
mov byte [esi + 0xf8], 1
call fcn.005c60b0
mov dword [esp + 0xc], eax
test eax, eax
je 0x5b0885
lea ecx, [esp + 0x40]
call fcn.005b1390
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0xd0]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x48]
movaps xmm0, xmmword [ecx]
movaps xmmword [esp + 0x50], xmm0
movss xmm0, dword [esi + 0x30]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esi + 0x34]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esi + 0x38]
movss dword [esp + 0x78], xmm0
movaps xmm0, xmmword [esi + 0x40]
movaps xmmword [esp + 0x80], xmm0
movss xmm0, dword [esi + 0x50]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esi + 0x54]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esi + 0x5c]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esi + 0x60]
movss dword [esp + 0xac], xmm0
movss xmm0, dword [esi + 0x64]
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esi + 0x68]
mulss xmm0, dword [0x7a3b34]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x70]
mov dword [esp + 0xbc], eax
mov al, byte [esi + 0x74]
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esi + 0x6c]
mov byte [esp + 0xc0], al
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
movss dword [esp + 0xb8], xmm0
test edi, edi
jne 0x5b07a6
movss xmm0, dword [esi + 0xb0]
mov ecx, edx
movaps xmmword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0xb4]
movss dword [esp + 8], xmm0
call fcn.005c60d0
movaps xmm0, xmmword [esp + 0x10]
subss xmm0, dword [esp + 8]
mov ecx, dword [ebp + 8]
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [eax]
movaps xmmword [esp + 0x30], xmm0
call fcn.005c60d0
movss xmm0, dword [esp + 8]
push dword [0x884adc]
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
movaps xmmword [esp + 0x24], xmm0
call eax
push 0x40
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
movss xmm0, dword [esp + 8]
mov ecx, 0x40
push ecx
movss dword [esp], xmm0
mov word [eax + 4], cx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.004e02b0
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [esi + 0xc0], 0
push dword [0x884adc]
jne 0x5b07e4
call eax
push 0x170
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x170
mov word [eax + 4], cx
mov ecx, eax
push dword [esi + 0xbc]
push 0x884bd0
push edi
call fcn.00520b50
jmp 0x5b0811
call eax
push 0x170
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x170
mov word [eax + 4], cx
mov ecx, eax
push dword [esi + 0xbc]
push 0x884bd0
push edi
call fcn.00520060
cmp dword [esi + 0xd0], 0
mov dword [esi + 0xcc], eax
jne 0x5b0827
mov ecx, edi
call fcn.0045c160
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.0050d7e0
mov eax, dword [esi + 0xcc]
mov ecx, edi
push eax
mov dword [esp + 0x9c], eax
call fcn.0050b540
push dword [0x884adc]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
push 0xc0
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0xc0
mov word [eax + 4], cx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.006f8ed0
mov ecx, edi
mov dword [esi + 0xc8], eax
call fcn.0050d800
xorps xmm0, xmm0
mov dword [esi + 0xf0], 0
pop edi
movaps xmmword [esi + 0xe0], xmm0
pop esi
mov esp, ebp
pop ebp
ret 4