Function at 0x100299d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov byte [edi + 0xc], 0
test ecx, ecx
jne 0x10029ac3
cmp dword [0x1010fa10], ecx
jne 0x100299d3
mov eax, dword [0x1010e050]
mov dword [edi + 4], eax
mov eax, dword [0x1010e054]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cc20
mov esp, ebp
pop ebp
ret 4
call fcn.1005de8f
mov dword [edi], eax
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + 0x4c]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 0x48]
mov dword [edi + 8], ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, dword [0x1010e2c4]
mov esi, eax
mov ebx, dword [0x1010f3b4]
mov dword [ebp - 8], edx
mov ecx, dword [0x1010e2b0]
xor ebx, dword [0x1010e2b0]
and ecx, 0x1f
ror ebx, cl
cmp ebx, 0xffffffff
je 0x1006a71a
test ebx, ebx
je 0x1006a6eb
push edx
mov ecx, ebx
call dword [0x10110268]
call ebx
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 4]
cmp eax, dword [ebx*4 + 0x1010f370]
jne 0x10029aed
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, dword [0x1010e2c4]
mov esi, eax
mov eax, dword [0x1010f3b4]
mov dword [ebp - 8], edx
mov ebx, dword [0x1010e2b0]
mov ecx, ebx
and ecx, 0x1f
xor ebx, eax
ror ebx, cl
cmp ebx, 0xffffffff
je 0x1006a783
test ebx, ebx
je 0x1006a754
push edx
mov ecx, ebx
call dword [0x10110268]
call ebx
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 8]
cmp eax, dword [ebx*4 + 0x1010f388]
jne 0x10029ad3
mov ecx, dword [edi]
mov eax, dword [ecx + 0x350]
test al, 2
jne 0x100299be
or eax, 2
mov dword [ecx + 0x350], eax
mov byte [edi + 0xc], 1
jmp 0x100299be
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
jmp 0x100299be
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x1010ead0]
test dword [ecx + 0x350], eax
jne 0x10029aa1
call fcn.10031eda
mov dword [edi + 8], eax
jmp 0x10029aa1
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x1010ead0]
test dword [ecx + 0x350], eax
jne 0x10029a46
call fcn.10025e10
mov dword [edi + 4], eax
jmp 0x10029a46
mov ebx, 0x10006a9c
mov ecx, dword [ebx]
call fcn.10032fe0
test eax, eax
jne 0x1006a726
add ebx, 4
cmp ebx, 0x10006aa4
jne 0x1006a6f0
push 0xffffffffffffffff
call fcn.10032d19
add esp, 4
mov ecx, 0x1010f3b4
xchg dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
jmp 0x10029a2d
push 0x10006aa4
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1006a706
push ebx
call fcn.10032d19
add esp, 4
mov ecx, 0x1010f3b4
xchg dword [ecx], eax
mov edx, dword [ebp - 8]
test ebx, ebx
je 0x1006a71a
jmp 0x10029a22
mov ebx, 0x10006a9c
mov ecx, dword [ebx]
call fcn.10032fe0
test eax, eax
jne 0x1006a78f
add ebx, 4
cmp ebx, 0x10006aa4
jne 0x1006a759
push 0xffffffffffffffff
call fcn.10032d19
add esp, 4
mov ecx, 0x1010f3b4
xchg dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
jmp 0x10029a8c
push 0x10006aa4
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1006a76f
push ebx
call fcn.10032d19
add esp, 4
mov ecx, 0x1010f3b4
xchg dword [ecx], eax
mov edx, dword [ebp - 8]
test ebx, ebx
je 0x1006a783
jmp 0x10029a81