Function at 0x101091d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov byte [ebp - 1], 1
test eax, eax
jbe 0x101092a4
mov esi, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [esi]
or ebx, 0xffffffff
cmp ecx, ebx
je 0x10109294
cmp dword [ecx + 0x78], ebx
je 0x1010927a
cmp dword [ecx + 0x5c], ebx
jne 0x1010927a
mov eax, dword [ecx + 0x78]
cmp dword [eax + 0x8c], 0
jne 0x1010922b
mov edx, dword [ecx + 0x8c]
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x90], edx
mov edx, dword [eax + 0x4c]
mov edi, dword [ecx + 0x4c]
cmp edi, edx
je 0x10109271
cmp edi, 4
jne 0x10109241
cmp edx, 3
je 0x10109271
jmp 0x1010925f
cmp edi, 3
jne 0x1010924d
cmp edx, 4
jne 0x1010925f
jmp 0x10109271
cmp edi, 0x20
jne 0x1010925f
test dword [edx*4 + 0x101e0f10], 0x8000
jne 0x10109271
cmp edx, 0x20
jne 0x1010927a
test dword [edi*4 + 0x101e0f10], 0x8000
je 0x1010927a
mov dword [esi], eax
mov ecx, eax
cmp dword [eax + 0x78], ebx
jne 0x10109202
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
xor edx, edx
or eax, edx
je 0x10109290
cmp dword [ecx + 0x5c], ebx
je 0x10109294
mov byte [ebp - 1], 0
add esi, 4
sub dword [ebp - 8], 1
jne 0x101091f0
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 0
je 0x1010945e
cmp byte [ebp - 1], 0
je 0x1010945e
xor esi, esi
test eax, eax
jbe 0x1010942c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + esi*4]
mov edi, dword [edx + 8]
mov eax, dword [edi + 0x8024]
mov dword [ebp - 8], eax
mov eax, dword [0x101e316c]
mov dword [ebp - 0xc], ecx
test eax, eax
jge 0x101092e7
xor eax, eax
jmp 0x101092ee
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x10109315
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x101092ff
mov ebx, ecx
jmp 0x10109326
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
test edx, edx
jne 0x1010930b
mov dword [eax + 0x10], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x10109326
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x1010937f
push ecx
or eax, 0xffffffff
push ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
push ecx
mov eax, ebx
call fcn.10165570
mov dword [ebp - 8], eax
test eax, eax
jl 0x10109386
push 0
call fcn.10169830
mov dword [ebp - 8], eax
test eax, eax
jl 0x10109386
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [edi + esi*4], ebx
xor ecx, ecx
jmp 0x101093d5
mov eax, 0x8007000e
jmp 0x101093d2
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1010939a
xor edi, edi
jmp 0x101093a3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x101093c7
mov dword [eax], ebx
jmp 0x101093ca
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], ebx
xor ecx, ecx
mov edi, dword [ebp + 0x14]
cmp eax, ecx
jl 0x10109460
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi + esi*4]
mov edx, dword [ebx + 0x8c]
mov dword [eax + 0x8c], edx
mov ecx, dword [ebx + 0x90]
mov dword [eax + 0x90], ecx
mov eax, dword [edi + esi*4]
mov ecx, ebx
call fcn.10166070
test eax, eax
jl 0x10109460
mov edx, dword [edi + esi*4]
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [edi + esi*4]
or dword [eax + 0x40], 0x800010
mov ecx, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], ecx
cmp esi, dword [ebp + 0x18]
jb 0x101092c2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x8024]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push 0
push 1
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
xor ebx, ebx
call fcn.10125380
test eax, eax
jl 0x10109460
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14