Function at 0x5de5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
movsx eax, byte [eax + 0x24]
sub eax, 1
je 0x5de7cf
sub eax, 1
jne 0x5de8c7
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
je 0x5de8c7
test esi, esi
je 0x5de8c7
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x160
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x160
mov word [eax + 4], cx
mov ecx, eax
call fcn.005184e0
mov ecx, dword [edi + 0xc]
mov dword [esp + 8], eax
test ecx, ecx
jne 0x5de669
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x98], 0x3f800000
movaps xmmword [esp + 0xa0], xmm0
jmp 0x5de673
lea eax, [esp + 0x70]
push eax
call fcn.00461b40
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x5de6ab
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x58], 0x3f800000
movaps xmmword [esp + 0x60], xmm0
jmp 0x5de6b5
lea eax, [esp + 0x30]
push eax
call fcn.00461b40
movaps xmm0, xmmword [0x78ce80]
lea eax, [esp + 0x10]
push eax
movaps xmmword [esp + 0x14], xmm0
lea eax, [esp + 0x74]
movaps xmm0, xmmword [0x78ce90]
lea ecx, [esp + 0xc4]
push eax
movaps xmmword [esp + 0x28], xmm0
call fcn.0046e9b0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xb8]
call fcn.0046e9b0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0xe8]
call fcn.0046e9b0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xd8]
call fcn.0046e9b0
mov ecx, dword [esp + 8]
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.005188d0
mov eax, dword [esp + 8]
mov dword [eax + 0x114], 0
mov dword [eax + 0x118], 0
mov dword [eax + 0x140], 0
mov dword [eax + 0x13c], 0
mov dword [eax + 0x12c], 0
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x38
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push 1
push dword [esp + 0xc]
mov ecx, 0x38
push esi
push dword [esp + 0x18]
mov word [eax + 4], cx
mov ecx, eax
call fcn.005061e0
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x5de897
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
je 0x5de8c7
test esi, esi
je 0x5de8c7
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x60
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x60
mov word [eax + 4], cx
mov ecx, eax
call fcn.00513990
mov ecx, dword [edi + 0xc]
mov dword [esp + 8], eax
test ecx, ecx
jne 0x5de826
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
jmp 0x5de830
lea eax, [esp + 0x10]
push eax
call fcn.00461bb0
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x5de841
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
jmp 0x5de84b
lea eax, [esp + 0x20]
push eax
call fcn.00461bb0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00513a00
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x38
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push 1
push dword [esp + 0xc]
mov ecx, 0x38
push esi
push dword [esp + 0x18]
mov word [eax + 4], cx
mov ecx, eax
call fcn.005061e0
mov esi, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 8]
call fcn.0045c160
test esi, esi
je 0x5de8c7
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0050d7e0
push dword [esp + 0xc]
mov ecx, esi
call fcn.0050afc0
mov ecx, esi
call fcn.0050d800
mov eax, dword [esp + 0xc]
mov dword [edi + 0x38], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8