Function at 0x1000e74d
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.1000c35f
test eax, eax
js 0x1000ea3b
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.1000c35f
test eax, eax
js 0x1000ea3b
push 4
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010c4c
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1000e7dd
mov ebx, 0x8007000e
jmp 0x1000e7f4
mov esi, dword [0x100136c0]
mov ecx, esi
push 1
push 4
push eax
call dword [0x100142a8]
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 0x1000e883
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000e816
mov ebx, 0x80070057
jmp 0x1000e9de
cmp dword [ebp - 0x10], esi
je 0x1000e828
mov edx, dword [ebp - 0x10]
call fcn.100070d7
mov ecx, dword [ebp - 0xc]
jmp 0x1000e82a
xor eax, eax
test eax, eax
je 0x1000e838
mov ebx, 0x80070057
jmp 0x1000e9db
cmp dword [ebp - 4], 5
mov dword [ebp - 0x30], ecx
jbe 0x1000e85f
mov esi, dword [0x100136c4]
mov ecx, esi
push 0
push dword [ebp - 0x18]
push 2
call dword [0x100142a8]
call esi
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x1000e87a
push dword [ebp - 0x18]
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010c4c
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x1000e883
mov ebx, 0x8007000e
test ebx, ebx
js 0x1000e9c3
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
jge 0x1000e8a1
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000e8a7
mov dword [eax], ecx
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000e8ba
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000e8c0
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 0x1000e8d6
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000e8dc
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 0x1000e9c3
mov esi, dword [0x100136c0]
mov ecx, esi
push 1
push 4
push dword [ebp - 0x1c]
call dword [0x100142a8]
call esi
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x1000e9bc
cmp ebx, 1
jne 0x1000e93d
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 0x1000e9bf
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp + 0xc]
push esi
push eax
push edi
call dword [0x100142a8]
call dword [ebp + 0xc]
test eax, eax
jns 0x1000e970
xor ecx, ecx
mov ebx, eax
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x1000e973
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 0x1000e953
mov esi, dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
test ecx, ecx
je 0x1000e9bf
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 [0x100142a8]
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 0x1000e999
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
test ebx, ebx
jns 0x1000e9db
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000e9d8
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 0x1000e9ea
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
test esi, esi
je 0x1000ea1d
cmp eax, 5
jbe 0x1000ea06
push esi
mov esi, dword [0x100136c8]
mov ecx, esi
call dword [0x100142a8]
call esi
jmp 0x1000ea1d
push dword [ebp - 0x18]
push ecx
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010d33
cmp dword [ebp - 0x1c], 0
je 0x1000ea39
push 4
push ecx
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010d33
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc