Function at 0x1000cfbb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov bl, byte [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], edx
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], esi
mov dword [edi + 0x10], eax
test bl, bl
jns 0x1000d03b
test esi, esi
je 0x1000d03b
push 4
pop edx
mov ecx, esi
call fcn.100070ac
test eax, eax
jne 0x1000d031
push 4
pop edx
mov ecx, esi
call fcn.100070d7
test eax, eax
jne 0x1000d031
mov edx, dword [esp + 0x10]
mov al, bl
and al, 0x40
je 0x1000d029
mov ecx, dword [esi]
jmp 0x1000d02b
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x1000d045
mov eax, 0x80070057
jmp 0x1000d2c6
mov al, bl
mov dword [esp + 0x2c], esi
mov ecx, esi
and al, 0x40
test al, al
je 0x1000d0b5
test ecx, ecx
je 0x1000d0ad
mov al, bl
and al, 0x3f
cmp al, 0x20
lea eax, [esp + 0x24]
push eax
jne 0x1000d08b
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [edi + 0x28]
call fcn.100063e2
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.10004e93
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], 1
jmp 0x1000d09f
push edx
push 0
push ecx
mov ecx, dword [edi + 0x28]
push 0
call fcn.10005c22
mov ecx, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x1000d0b9
mov eax, 0x8007000e
jmp 0x1000d2c6
xor ecx, ecx
mov dword [esp + 0xc], ecx
jmp 0x1000d0b9
mov ecx, dword [esp + 0xc]
test bl, bl
jns 0x1000d113
test esi, esi
je 0x1000d113
push dword [esp + 0x10]
mov ecx, dword [edi + 0x28]
call fcn.100061a2
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000d12d
push 4
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010c4c
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x1000d126
mov esi, dword [0x100136c0]
mov ecx, esi
push 1
push 4
push edx
call dword [0x100142a8]
call esi
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000d134
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000d13a
mov ecx, 0x8007000e
jmp 0x1000d15f
mov ecx, 0x8007000e
jmp 0x1000d15b
mov dword [eax], ecx
add dword [edi + 4], 4
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 esi, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
test bl, bl
jns 0x1000d246
test esi, esi
je 0x1000d246
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x1000d244
mov esi, dword [0x100136c0]
mov ecx, esi
push 1
push 4
push edx
call dword [0x100142a8]
call esi
mov esi, dword [eax]
test esi, esi
je 0x1000d23c
cmp dword [ebp + 0xc], 0
je 0x1000d1da
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0x48]
push 0
push dword [esp + 0x18]
push dword [eax]
push esi
push dword [esp + 0x2c]
call fcn.100068b1
mov edx, dword [esp + 0x30]
jmp 0x1000d1f8
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x18]
push 0
push esi
push dword [esp + 0x2c]
call fcn.100068b1
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1000d21d
mov cl, bl
and cl, 0x3f
cmp cl, 0x21
jne 0x1000d216
cmp edx, 4
je 0x1000d216
mov dword [eax + 0x1c], 0x20
and dword [esp + 0x18], 0
jmp 0x1000d225
mov dword [esp + 0x20], 0x8007000e
push esi
push dword [0x10013588]
mov esi, dword [0x100136d8]
mov ecx, esi
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000d283
and bl, 0xc0
cmp bl, 0xc0
jne 0x1000d26c
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100142a8]
call esi
jmp 0x1000d283
mov esi, dword [0x100136d8]
mov ecx, esi
push eax
push dword [0x10013588]
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000d298
push dword [esp + 0x10]
mov ecx, dword [edi + 0x28]
push eax
call fcn.100061ea
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1000d2b6
push 4
push ecx
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10010d33
cmp dword [esp + 0x34], 0
je 0x1000d2c2
call fcn.10004ebb
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8