Function at 0x64e4b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
mov eax, 1
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebp, dword [esi + 0x6c]
test ebp, ebp
mov ecx, dword [esi + 0x280]
cmove ebp, eax
mov dword [esi + 0x48], ecx
cmp byte [esi + 0x5c], 0
jne 0x64e4dd
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
jmp 0x64e4e4
mov dword [esi + 0x28], 0
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
lea edx, [edi + ebp]
add ecx, edx
mov dword [esi + 0x2c], edx
add eax, ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
cmp edi, edx
jge 0x64e51f
lea ebx, [edi + edi*4]
shl ebx, 2
mov ecx, dword [esi + 0x18]
add ecx, 0x40
push 0x80
add ecx, ebx
call fcn.0064fdb0
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x2c]
jl 0x64e504
cmp dword [esi + 0x6c], 0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x50], eax
jle 0x64e58e
xor eax, eax
cmp dword [esi + 0x64], eax
jle 0x64e54e
nop dword [eax + eax]
mov byte [esi + eax + 0x11c], 0xff
inc eax
cmp eax, dword [esi + 0x64]
jl 0x64e540
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
jle 0x64e58a
xor edi, edi
mov eax, dword [esi + 0x68]
xor edx, edx
cmp dword [eax + edi + 4], edx
jle 0x64e581
mov eax, dword [esi + 0x68]
mov cl, byte [esi + 0x28]
add cl, bl
mov eax, dword [eax + edi]
mov eax, dword [eax + edx*4]
inc edx
mov byte [eax + esi + 0x11c], cl
mov eax, dword [esi + 0x68]
cmp edx, dword [eax + edi + 4]
jl 0x64e562
inc ebx
add edi, 0xc
cmp ebx, dword [esi + 0x6c]
jl 0x64e557
cmp dword [esi + 0x6c], 0
jne 0x64e5b0
xor ecx, ecx
cmp dword [esi + 0x64], ecx
jle 0x64e5b0
nop word [eax + eax]
mov al, byte [esi + 0x28]
mov byte [esi + ecx + 0x11c], al
inc ecx
cmp ecx, dword [esi + 0x64]
jl 0x64e5a0
xor ebx, ebx
test ebp, ebp
jle 0x64e65a
nop word [eax + eax]
mov ecx, dword [esi + 0x28]
xor edx, edx
add ecx, ebx
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [esi + eax*4]
mov al, byte [esi + 0x28]
add al, bl
mov byte [ecx + 0x90], al
add ecx, 0x91
cmp dword [esi + 0x6c], edx
jle 0x64e602
nop dword [eax]
cmp ebx, edx
je 0x64e5fc
mov al, byte [esi + 0x28]
add al, dl
mov byte [ecx], al
inc ecx
inc edx
cmp edx, dword [esi + 0x6c]
jl 0x64e5f0
xor edx, edx
cmp dword [esi + 0x24], edx
jle 0x64e61e
nop dword [eax]
mov al, byte [esi + 0x30]
add al, dl
inc edx
mov byte [ecx], al
inc ecx
cmp edx, dword [esi + 0x24]
jl 0x64e610
cmp dword [esi + 0x58], 0
jne 0x64e639
xor eax, eax
cmp dword [esi + 0x24], eax
jle 0x64e639
nop dword [eax + eax]
mov byte [ecx], al
inc eax
inc ecx
cmp eax, dword [esi + 0x24]
jl 0x64e630
xor edx, edx
cmp dword [esi + 0x48], edx
jle 0x64e64e
mov al, byte [esi + 0x2c]
add al, dl
inc edx
mov byte [ecx], al
inc ecx
cmp edx, dword [esi + 0x48]
jl 0x64e640
inc ebx
mov byte [ecx], 0xff
cmp ebx, ebp
jl 0x64e5c0
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x48], ebx
jle 0x64e729
xor edx, edx
lea ebp, [esi + 0x3d]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x27c]
mov eax, dword [edx + eax]
mov dword [ebp - 5], eax
mov eax, dword [esi + 0x27c]
movzx eax, byte [eax + edx + 4]
mov byte [ebp - 1], al
mov cl, byte [esi + 0x2c]
add cl, bl
mov byte [ebp], cl
mov eax, dword [esi + 0x27c]
mov eax, dword [eax + edx + 8]
movsx edx, byte [eax + esi + 0x11c]
mov byte [eax + esi + 0x11c], cl
mov ecx, dword [esi + 0x2c]
add ecx, ebx
lea eax, [ecx*8]
sub eax, ecx
lea edi, [esi + eax*4]
movzx eax, byte [esi + 0x2c]
add al, bl
mov byte [edi + 0x90], al
lea eax, [edx*8]
sub eax, edx
add edi, 0x91
lea edx, [esi + 0x90]
cmp byte [edx + eax*4], 0xff
lea edx, [edx + eax*4]
je 0x64e70a
nop dword [eax + eax]
mov bl, byte [edx]
movzx ecx, byte [ebp]
movsx eax, bl
cmp eax, ecx
je 0x64e700
mov byte [edi], bl
inc edi
inc edx
cmp byte [edx], 0xff
jne 0x64e6f0
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc ebx
add edx, 0xc
mov byte [edi], 0xff
add ebp, 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
cmp ebx, dword [esi + 0x48]
jl 0x64e672
movsx eax, byte [esi + 0x11c]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x30]
mov dword [esi + 0x54], eax
mov eax, 1
mov dword [esp + 0x14], edx
cmp ecx, eax
jle 0x64e76b
mov bl, byte [esi + 0x11c]
nop dword [eax]
cmp byte [esi + eax + 0x11c], bl
je 0x64e760
inc eax
cmp eax, ecx
jl 0x64e750
jmp 0x64e76b
mov byte [esi + 0x11c], dl
inc edx
mov dword [esp + 0x14], edx
cmp byte [esi + 0x74], 0
je 0x64e7b8
mov edi, dword [esi + 0x28]
cmp edi, dword [esi + 0x8c]
jge 0x64e7b8
lea ebp, [esi + 0x78]
lea ebp, [ebp + edi*4]
mov ebx, dword [ebp]
test ebx, ebx
je 0x64e7a8
mov ecx, ebx
call fcn.00650130
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
push ebx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
inc edi
add ebp, 4
cmp edi, dword [esi + 0x8c]
jl 0x64e783
mov edx, dword [esp + 0x14]
xor edi, edi
mov dword [esi + 0x8c], edx
test edx, edx
jle 0x64e81b
mov ebp, 0x36
lea ebx, [esi + 0x78]
nop dword [eax]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov word [eax + ebp], cx
cmp edi, dword [esi + 0x28]
jl 0x64e80c
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x64e808
push 0x3e8
push 0
mov ecx, eax
call fcn.00650110
jmp 0x64e80a
xor eax, eax
mov dword [ebx], eax
inc edi
add ebp, 2
add ebx, 4
cmp edi, dword [esi + 0x8c]
jl 0x64e7d0
pop edi
mov byte [esi + 0x74], 1
pop esi
pop ebp
pop ebx
add esp, 8
ret