Function at 0x653affd9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edx, eax
test edx, edx
mov dword [ebp - 4], edx
jne 0x653b0014
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ebx, dword [esi + 0x14]
xor eax, eax
and dword [ebp - 8], eax
mov ecx, ebx
mov edi, edx
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x653b0093
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
sub dword [ebp + 0x10], ebx
sub edi, ebx
mov dword [ebp + 0xc], edi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push 0x10
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [ecx + ebx], eax
je 0x653b0196
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + ebx]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edi, dword [ecx + 4]
or ecx, 0xffffffff
xor eax, eax
add ebx, 4
repne scasb al, byte es:[edi]
not ecx
inc ecx
add dword [esi], ecx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x14]
jb 0x653b00bc
mov edx, dword [ebp - 4]
cmp dword [esi + 0x14], 1
jne 0x653b00c4
mov eax, dword [edx]
push dword [section..data]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor eax, eax
jmp 0x653b000d
mov edi, dword [ebp + 0xc]
jmp 0x653b0037
lea eax, [ebp - 0xc]
lea edi, [edx + 4]
push eax
mov ecx, esi
push dword [edi]
push dword [edx]
call fcn.653aff80
mov ebx, eax
test ebx, ebx
jne 0x653b014a
mov dword [ebp + 0x10], 2
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x14]
je 0x653b0177
mov edx, dword [edi + 4]
lea ecx, [edi + 4]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jae 0x653b0123
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 4]
cmp ebx, dword [edx + 4]
jbe 0x653b0123
mov edx, dword [ecx]
mov ebx, dword [esi + 0x14]
mov dword [ecx - 4], edx
inc eax
add ecx, 4
cmp eax, ebx
je 0x653b0123
mov edx, dword [ecx]
cmp eax, ebx
jb 0x653b0102
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
inc dword [ebp + 0x10]
mov dword [ecx + eax*4 - 4], edx
mov eax, dword [edi]
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [edi]
push ecx
push eax
mov ecx, esi
call fcn.653aff80
mov ebx, eax
test ebx, ebx
je 0x653b00e3
mov esi, dword [esi + 0x14]
test esi, esi
jbe 0x653b0170
mov edi, dword [ebp - 4]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
add edi, 4
dec esi
jne 0x653b0154
mov eax, ebx
jmp 0x653b000d
mov eax, dword [ebp - 0xc]
push dword [section..data]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x653b0170
mov eax, dword [ebp - 8]
mov ebx, 0x8007000e
lea esi, [eax - 1]
jmp 0x653b014d