Function at 0x1000ecf3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
xor ebx, ebx
and dword [ebp - 0x14], ebx
and dword [ebp - 0x24], ebx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], ebx
mov esi, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
mov dword [ebp - 4], esi
mov ecx, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov ecx, esi
push eax
call fcn.1000c7d5
test eax, eax
js 0x1000efee
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.1000c7d5
test eax, eax
js 0x1000efee
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
mov ecx, eax
call fcn.10011532
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000ed81
mov ebx, 0x8007000e
jmp 0x1000ed98
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 4
push eax
call dword [0x100142a8]
call esi
and dword [eax], ebx
and dword [ebp - 0x20], 0
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], esi
test ecx, ecx
je 0x1000ee2d
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000edbf
mov ebx, 0x80070057
mov edx, esi
jmp 0x1000ef94
mov edx, dword [ebp - 0x24]
call fcn.10007277
test eax, eax
je 0x1000edd7
mov ebx, 0x80070057
mov edx, esi
jmp 0x1000ef91
cmp dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
jbe 0x1000ee01
mov esi, dword [0x100136ac]
mov ecx, esi
push 0
push dword [ebp - 0x14]
push 2
call dword [0x100142a8]
call esi
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x1000ee1c
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp - 0x14]
mov ecx, eax
call fcn.10011532
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x1000ee2d
mov eax, dword [ebp - 0x20]
mov ebx, 0x8007000e
jmp 0x1000ef80
test ebx, ebx
js 0x1000ef79
cmp dword [edi + 8], 0
mov ecx, dword [edi + 4]
jge 0x1000ee4b
lea eax, [ecx - 4]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000ee54
mov eax, dword [ebp - 4]
mov dword [ecx], eax
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000ee67
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000ee6d
mov dword [eax], esi
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x18]
jge 0x1000ee83
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000ee89
mov dword [eax], ecx
add dword [edi + 4], 4
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
push edi
movzx eax, byte [eax]
and eax, 0x3f
mov esi, dword [eax*4 + 0x100010f8]
mov ecx, esi
call dword [0x100142a8]
call esi
mov ebx, eax
test ebx, ebx
js 0x1000ef76
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 4
push dword [ebp - 0x18]
call dword [0x100142a8]
call esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x1000eee2
cmp ebx, 1
jne 0x1000eeea
cmp eax, ebx
jne 0x1000eeea
xor edx, edx
mov esi, dword [ebp - 8]
jmp 0x1000ef94
and dword [ebp - 0x28], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ecx
test edx, edx
je 0x1000ef94
mov dword [ebp - 0x30], edx
push esi
push ecx
mov ecx, dword [ebp + 0xc]
push edi
call dword [0x100142a8]
call dword [ebp + 0xc]
mov ecx, eax
test ecx, ecx
jns 0x1000ef21
xor eax, eax
mov ebx, ecx
inc eax
mov dword [ebp - 0x28], eax
jmp 0x1000ef24
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
add esi, dword [ebp + 8]
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ecx
jne 0x1000ef02
mov esi, dword [ebp - 8]
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x1000ef70
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp + 0x10]
push esi
push eax
push edi
call dword [0x100142a8]
call dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
add esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
sub ebx, 1
jne 0x1000ef4a
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 8]
test ebx, ebx
jns 0x1000ef8e
jmp 0x1000ef79
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000ef8e
push dword [ebp - 0x24]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1000ef9d
mov dword [ecx], edx
test esi, esi
je 0x1000efd0
cmp eax, 5
jbe 0x1000efb9
push esi
mov esi, dword [0x100136b0]
mov ecx, esi
call dword [0x100142a8]
call esi
jmp 0x1000efd0
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.1001161f
cmp dword [ebp - 0x18], 0
je 0x1000efec
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
push ecx
mov ecx, eax
call fcn.1001161f
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc