Function at 0x1000f61d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100181d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], edx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, edx
mov dword [ebp - 0x20], edx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
mov esi, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
mov dword [ebp - 8], 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 - 0x20]
mov dword [ebp - 0x3c], ecx
mov ecx, esi
push eax
call fcn.1000d05f
test eax, eax
js 0x1000f915
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.1000d05f
test eax, eax
js 0x1000f915
push 4
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011e0c
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1000f6b7
mov ebx, 0x8007000e
jmp 0x1000f6ce
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 4
push eax
call dword [0x10019344]
call esi
and dword [eax], ebx
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x1000f75d
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000f6f0
mov ebx, 0x80070057
jmp 0x1000f8b8
cmp dword [ebp - 0x18], esi
je 0x1000f702
mov edx, dword [ebp - 0x18]
call fcn.10007797
mov ecx, dword [ebp - 0x10]
jmp 0x1000f704
xor eax, eax
test eax, eax
je 0x1000f712
mov ebx, 0x80070057
jmp 0x1000f8b5
cmp dword [ebp - 8], 5
mov dword [ebp - 0x38], ecx
jbe 0x1000f739
mov esi, dword [0x100186d4]
mov ecx, esi
push 0
push dword [ebp - 0x20]
push 2
call dword [0x10019344]
call esi
mov esi, eax
mov dword [ebp - 0xc], esi
jmp 0x1000f754
push dword [ebp - 0x20]
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011e0c
mov esi, eax
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1000f75d
mov ebx, 0x8007000e
test ebx, ebx
js 0x1000f89d
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
jge 0x1000f77b
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000f781
mov dword [eax], ecx
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000f794
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000f79a
mov dword [eax], esi
add dword [edi + 4], 4
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x24]
jge 0x1000f7b0
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000f7b6
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 [0x10019344]
call esi
mov ebx, eax
test ebx, ebx
js 0x1000f89d
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 4
push dword [ebp - 0x24]
call dword [0x10019344]
call esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x1000f896
cmp ebx, 1
jne 0x1000f817
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and edx, eax
mov dword [ebp - 0x1c], edx
and dword [ebp - 0x30], 0
mov eax, ecx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
test edx, edx
je 0x1000f899
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0xc]
push esi
push eax
push edi
call dword [0x10019344]
call dword [ebp + 0xc]
test eax, eax
jns 0x1000f84a
xor ecx, ecx
mov ebx, eax
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x1000f84d
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x28]
add esi, dword [ebp + 8]
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x34], eax
jne 0x1000f82d
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x1000f899
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp + 0x10]
push esi
push eax
push edi
call dword [0x10019344]
call dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
add esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
sub ebx, 1
jne 0x1000f873
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
test ebx, ebx
jns 0x1000f8b5
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000f8b2
push dword [ebp - 0x18]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x1000f8c4
mov ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
test esi, esi
je 0x1000f8f7
cmp eax, 5
jbe 0x1000f8e0
push esi
mov esi, dword [0x100186d8]
mov ecx, esi
call dword [0x10019344]
call esi
jmp 0x1000f8f7
push dword [ebp - 0x20]
push ecx
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011f10
cmp dword [ebp - 0x24], 0
je 0x1000f913
push 4
push ecx
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011f10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100165d0
mov esp, ebp
pop ebp
ret 0xc