Function at 0x5e0ce0
Capabilities:
Get thread local storage value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x58
mov ecx, dword [ecx]
push esi
push edi
cmp dword [ecx + 4], 9
jle 0x5e1081
movsx eax, word [ecx + 0xa4]
lea esi, [ecx + 0xa0]
mov edi, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
movsx ecx, word [esi]
cmp dword [edi + 0x30], ecx
mov edx, ecx
mov dword [esp + 0x50], ecx
cmovl edx, dword [edi + 0x30]
mov dword [esp + 0x40], edx
test edx, edx
jle 0x5e1081
movsx esi, word [esi + 6]
push dword [0x884adc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
imul esi, ecx
add esi, 0xf
and esi, 0xfffffff0
add esi, ecx
call edi
add esi, 0x7f
and esi, 0xffffff80
mov dword [esp + 0x34], esi
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x58], ecx
lea edx, [ecx + esi]
cmp esi, dword [eax + 8]
jg 0x5e0d6c
cmp edx, dword [eax + 0x10]
ja 0x5e0d6c
mov dword [eax + 0xc], edx
jmp 0x5e0d7a
push esi
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x50]
push esi
lea eax, [esi + esi*2]
shl eax, 4
add eax, ecx
mov dword [esp + 0x40], eax
call fcn.0046b820
add esp, 4
mov dword [esp + 0x54], eax
push dword [0x884adc]
call edi
mov edx, dword [esp + 0x54]
add edx, 0x7f
and edx, 0xffffff80
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x4c], edx
add edx, ecx
mov edi, dword [esp + 0x4c]
cmp edi, dword [eax + 8]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x48], ecx
jg 0x5e0dcd
cmp edx, dword [eax + 0x10]
ja 0x5e0dcd
mov dword [eax + 0xc], edx
jmp 0x5e0dde
push dword [esp + 0x4c]
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x48], eax
push dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.0046b060
xor edx, edx
mov dword [esp + 0x54], edx
test esi, esi
je 0x5e0e36
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea edx, [esi*4 + 0x7f]
and edx, 0xffffff80
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
add eax, edx
cmp edx, dword [ecx + 8]
jg 0x5e0e28
cmp eax, dword [ecx + 0x10]
ja 0x5e0e28
mov dword [ecx + 0xc], eax
xor edx, edx
jmp 0x5e0e3a
push edx
call fcn.0046a3c0
mov dword [esp + 0x5c], eax
xor edx, edx
jmp 0x5e0e3a
mov dword [esp + 0x5c], edx
or esi, 0x80000000
mov dword [esp + 0x38], esi
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x5e0f8e
xor eax, eax
mov dword [esp + 0x44], eax
mov ecx, dword [edi + 0x2c]
add ecx, eax
cmp byte [ecx + 0x22], 0
je 0x5e0e8d
movsx eax, word [ecx + 0x20]
mov edi, dword [esp + 0x5c]
push esi
mov dword [edi + edx*4], eax
inc edx
movsx eax, word [ecx + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 0x7d8954
mov dword [esp + 0x60], edx
call fcn.0046ba50
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
inc esi
add eax, 0x30
mov dword [esp + 0x44], eax
cmp esi, dword [esp + 0x40]
jl 0x5e0e56
mov esi, edx
test esi, esi
jle 0x5e0f8e
cmp esi, 1
jle 0x5e0ec4
push dword [esp + 0x68]
lea eax, [esi - 1]
push eax
push 0
push dword [esp + 0x68]
call fcn.005e11a0
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x40], ecx
test esi, esi
jle 0x5e0f3a
mov eax, dword [esp + 0x58]
add eax, 0x20
mov dword [esp + 0x44], eax
nop dword [eax]
mov eax, dword [esp + 0x5c]
push 0xffffffffffffffff
push dword [eax + ecx*4]
lea ecx, [esp + 0x20]
call fcn.0046b890
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [edi + 0x2c]
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [edx - 0x10], xmm0
movaps xmm0, xmmword [eax]
movaps xmmword [edx - 0x20], xmm0
movaps xmm0, xmmword [0x719770]
movaps xmmword [edx], xmm0
add edx, 0x30
mov al, byte [eax + 0x20]
mov byte [ecx + esi], al
inc ecx
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
cmp ecx, esi
jl 0x5e0ee0
mov edi, dword [esp + 0x50]
lea eax, [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
mov word [esp + 0xc], di
push eax
mov dword [esp + 0x14], 0x300000
mov word [esp + 0x1c], 0x104
mov word [esp + 0x12], si
mov dword [esp + 0x18], 0x3f800000
call fcn.005d3910
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [eax + 8], 0x3f800000
jmp 0x5e0f92
mov edi, dword [esp + 0x50]
push dword [0x884adc]
lea esi, [edi*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
lea edi, [esi + 0xf]
mov eax, dword [esp + 0x5c]
and edi, 0xfffffff0
cmp esi, dword [edx + 8]
jg 0x5e0fcb
lea ecx, [edi + eax]
cmp ecx, dword [edx + 0xc]
jne 0x5e0fcb
cmp dword [edx + 0x14], eax
je 0x5e0fcb
mov dword [edx + 0xc], eax
jmp 0x5e0fd8
push edi
push eax
mov ecx, edx
call fcn.0046a590
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
test ecx, ecx
js 0x5e0ff8
and ecx, 0x3fffffff
shl ecx, 2
push ecx
push eax
mov eax, dword [0x7d8954]
mov ecx, 0x7d8954
call dword [eax + 0x10]
push 0x7d8954
lea ecx, [esp + 0x1c]
call fcn.0046b3e0
lea ecx, [esp + 0x18]
call fcn.0046b110
push dword [0x884adc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5e1042
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x5e1042
cmp dword [eax + 0x14], esi
je 0x5e1042
mov dword [eax + 0xc], esi
jmp 0x5e104b
push edx
push esi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call edi
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5e1078
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x5e1078
cmp dword [eax + 0x14], esi
je 0x5e1078
mov dword [eax + 0xc], esi
jmp 0x5e1081
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
cmp dword [eax + 4], 8
jle 0x5e118e
movsx edx, word [eax + 0x94]
add edx, eax
cmp word [eax + 0x92], 0
jle 0x5e118e
movsx esi, word [eax + 0x90]
lea ecx, [esi - 1]
test ecx, ecx
js 0x5e10c1
inc ecx
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x5e10cf
mov eax, dword [eax + 0x20]
xor ecx, ecx
mov dword [esp + 0x68], eax
cmp eax, 4
jl 0x5e1159
add eax, 0xfffffffd
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x1c]
movsx eax, word [eax + ecx*2]
test eax, eax
js 0x5e10fe
cmp eax, esi
jge 0x5e10fe
mov dword [edx + eax*4], 0x3f800000
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x1c]
movsx eax, word [eax + ecx*2 + 2]
test eax, eax
js 0x5e1118
cmp eax, esi
jge 0x5e1118
mov dword [edx + eax*4], 0x3f800000
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x1c]
movsx eax, word [eax + ecx*2 + 4]
test eax, eax
js 0x5e1132
cmp eax, esi
jge 0x5e1132
mov dword [edx + eax*4], 0x3f800000
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x1c]
movsx eax, word [eax + ecx*2 + 6]
test eax, eax
js 0x5e114c
cmp eax, esi
jge 0x5e114c
mov dword [edx + eax*4], 0x3f800000
add ecx, 4
cmp ecx, dword [esp + 0x34]
jl 0x5e10e5
mov eax, dword [esp + 0x68]
cmp ecx, eax
jge 0x5e1180
nop dword [eax]
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0x1c]
movsx eax, word [eax + ecx*2]
test eax, eax
js 0x5e1179
cmp eax, esi
jge 0x5e1179
mov dword [edx + eax*4], 0x3f800000
inc ecx
cmp ecx, dword [esp + 0x68]
jl 0x5e1160
mov eax, dword [esp + 0x38]
mov dword [eax + 0x98], 0x3f800000
pop edi
pop esi
add esp, 0x58
ret