Function at 0x10020df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10227d09
mov eax, dword fs:[0]
push eax
sub esp, 0x184
push ebx
push esi
push edi
mov eax, dword [0x1029912c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0xc], 0
jne 0x10020ec3
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x188]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x190], eax
lea eax, [edi + 0x38]
push eax
call fcn.1001db20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
mov esi, dword [ebp + 8]
push esi
call fcn.10020980
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xd0], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x28]
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.10022400
lea ecx, [ebp - 0x108]
call fcn.100151d0
lea ecx, [ebp - 0x144]
call fcn.10019b90
lea ecx, [ebp - 0x180]
call fcn.100151d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
sub esp, 8
lea eax, [ebp - 0x34]
push ecx
push eax
call fcn.10022e40
mov ebx, eax
mov dword [ebp - 4], 2
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10020ef6
push dword [ebp + 8]
push 0x10021f00
push ebx
call eax
add esp, 0xc
jmp 0x10021001
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xc0]
push esi
call fcn.10020980
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
lea eax, [ebp + 0xb]
push dword [0x102ad720]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10020f60
mov eax, dword [eax + 4]
test eax, eax
je 0x10020f60
mov edi, dword [eax + 8]
test edi, edi
je 0x10020f60
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x26
jb 0x10020f57
mov byte [edi + 0x98], al
jmp 0x10020f76
push edi
call fcn.100df630
add esp, 4
push 0x99
call fcn.101d507c
mov edi, eax
add esp, 4
mov byte [edi + 0x98], 0x26
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea esi, [edi + 8]
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x10], esi
push eax
mov ecx, esi
call fcn.10020980
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x80], eax
mov dword [edi], 0x10021fd0
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x18], 0
call fcn.10021e90
lea ecx, [ebp - 0x80]
call fcn.100151d0
lea ecx, [ebp - 0xbc]
call fcn.10019b90
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
mov eax, dword [ebx + 0x10]
push ecx
push ebx
mov eax, dword [eax + 8]
call eax
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10021001
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8