Function at 0x1000ea3d
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 - 0x20], edx
xor edx, edx
mov dword [ebp - 0x14], edx
mov ebx, edx
mov dword [ebp - 0x18], edx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
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 - 0xc], ecx
mov ecx, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], ecx
mov ecx, esi
push eax
call fcn.1000c64f
test eax, eax
js 0x1000ed2b
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.1000c64f
test eax, eax
js 0x1000ed2b
push 4
push dword [0x100151dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010f3c
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1000eacd
mov ebx, 0x8007000e
jmp 0x1000eae4
mov esi, dword [0x100156d0]
mov ecx, esi
push 1
push 4
push eax
call dword [0x10016308]
call esi
and dword [eax], ebx
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], esi
test ecx, ecx
je 0x1000eb73
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000eb06
mov ebx, 0x80070057
jmp 0x1000ecce
cmp dword [ebp - 0x10], esi
je 0x1000eb18
mov edx, dword [ebp - 0x10]
call fcn.100073c7
mov ecx, dword [ebp - 0xc]
jmp 0x1000eb1a
xor eax, eax
test eax, eax
je 0x1000eb28
mov ebx, 0x80070057
jmp 0x1000eccb
cmp dword [ebp - 4], 5
mov dword [ebp - 0x30], ecx
jbe 0x1000eb4f
mov esi, dword [0x100156d4]
mov ecx, esi
push 0
push dword [ebp - 0x18]
push 2
call dword [0x10016308]
call esi
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x1000eb6a
push dword [ebp - 0x18]
push dword [0x100151dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010f3c
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x1000eb73
mov ebx, 0x8007000e
test ebx, ebx
js 0x1000ecb3
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
jge 0x1000eb91
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000eb97
mov dword [eax], ecx
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000ebaa
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000ebb0
mov dword [eax], esi
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1c]
jge 0x1000ebc6
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000ebcc
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 [0x10016308]
call esi
mov ebx, eax
test ebx, ebx
js 0x1000ecb3
mov esi, dword [0x100156d0]
mov ecx, esi
push 1
push 4
push dword [ebp - 0x1c]
call dword [0x10016308]
call esi
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x1000ecac
cmp ebx, 1
jne 0x1000ec2d
mov eax, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
and edx, eax
mov dword [ebp - 0x14], edx
and dword [ebp - 0x24], 0
mov eax, ecx
mov esi, dword [ebp - 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], eax
test edx, edx
je 0x1000ecaf
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp + 0xc]
push esi
push eax
push edi
call dword [0x10016308]
call dword [ebp + 0xc]
test eax, eax
jns 0x1000ec60
xor ecx, ecx
mov ebx, eax
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x1000ec63
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
add esi, dword [ebp + 8]
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], eax
jne 0x1000ec43
mov esi, dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
test ecx, ecx
je 0x1000ecaf
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
inc ebx
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp + 0x10]
push esi
push eax
push edi
call dword [0x10016308]
call dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
add esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
sub ebx, 1
jne 0x1000ec89
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
test ebx, ebx
jns 0x1000eccb
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000ecc8
push dword [ebp - 0x10]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x1000ecda
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
test esi, esi
je 0x1000ed0d
cmp eax, 5
jbe 0x1000ecf6
push esi
mov esi, dword [0x100156d8]
mov ecx, esi
call dword [0x10016308]
call esi
jmp 0x1000ed0d
push dword [ebp - 0x18]
push ecx
push dword [0x100151dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011023
cmp dword [ebp - 0x1c], 0
je 0x1000ed29
push 4
push ecx
push dword [0x100151dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011023
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc