Function at 0x1018169a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x14], 3
xor ecx, ecx
mov dword [ebp - 0x10], esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
cmp edi, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
setne al
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], cl
mov byte [ebp + 0xb], al
test al, al
je 0x101816fa
test ebx, ebx
je 0x101816fa
mov dword [ebp - 0xc], ecx
mov ecx, ebx
push 1
call fcn.1018097a
mov dword [ebp - 0x1c], eax
call fcn.10186bcb
push eax
mov ecx, esi
call fcn.1017e8c6
mov byte [ebp - 1], al
mov al, byte [ebp + 0xb]
test edi, edi
je 0x101817b1
test al, al
je 0x10181742
push dword [0x10658524]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
push 0
push dword [ebp - 0x10]
mov esi, dword [eax + 8]
lea ecx, [esi + 0x64]
call fcn.101de6a2
push 1
push 0
push dword [ebp - 0x10]
lea ecx, [esi + 0x58]
call fcn.101de6a2
push 1
mov ecx, edi
call fcn.1018097a
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x101817b4
xor edx, edx
cmp dword [esi + 0xc], edx
je 0x101817ad
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1018175f
cmp dword [eax + 0xc], edx
jne 0x10181761
mov eax, edx
test eax, eax
je 0x101817a6
test byte [eax + 0x32], 2
jne 0x1018177d
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10181777
cmp dword [eax + 0xc], edx
jne 0x10181779
mov eax, edx
test eax, eax
jne 0x10181765
test eax, eax
je 0x101817a6
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
test eax, eax
je 0x101817b7
push edx
push eax
call fcn.1019c179
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
je 0x1018179d
xor eax, eax
jmp 0x101817b7
mov dword [ebp - 0x14], 1
jmp 0x101817b4
mov dword [ebp - 0x14], 4
mov eax, edx
jmp 0x101817b7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push eax
push ecx
push dword [esi + 0x3c]
call fcn.1019d836
cmp dword [esi + 0x40], 0
je 0x1018181c
test ebx, ebx
je 0x101817de
cmp dword [ebx + 0x40], 0
je 0x101817de
push dword [esi + 0x40]
mov ecx, ebx
call fcn.1018fcbb
test edi, edi
je 0x1018181c
cmp dword [edi + 0x40], 0
jne 0x10181807
mov al, byte [edi + 0x7d]
and al, 3
cmp al, 1
je 0x10181801
test byte [edi + 0x86], 8
je 0x10181801
mov ecx, edi
call fcn.1018b0d4
cmp dword [edi + 0x40], 0
je 0x10181815
push dword [esi + 0x40]
mov ecx, esi
call fcn.1018dae2
test al, al
jne 0x1018181c
mov ecx, esi
call fcn.1018af79
cmp byte [ebp - 1], 0
je 0x10181833
test ebx, ebx
je 0x10181833
push 1
push 0xb
push 0
mov ecx, ebx
call fcn.1018e89f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x10181862
test edx, edx
je 0x10181851
mov eax, dword [esi]
mov ecx, esi
push 0
push edx
call dword [eax + 0xd8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10181862
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
call dword [eax + 0xd8]
mov esi, 0x1000
test edi, edi
je 0x10181893
test byte [edi + 0x82], 0x20
je 0x10181893
mov ecx, edi
call fcn.1018084a
test al, al
jne 0x10181887
push edi
call fcn.101d2e98
mov edi, eax
test edi, edi
je 0x10181893
push esi
mov ecx, edi
call fcn.1017c7c0
test ebx, ebx
je 0x101818c5
cmp byte [ebp + 0xb], 0
je 0x101818c5
test byte [ebx + 0x82], 0x20
je 0x101818c5
mov ecx, ebx
call fcn.1018084a
test al, al
jne 0x101818b9
push ebx
call fcn.101d2e98
mov ebx, eax
test ebx, ebx
je 0x101818c5
push esi
mov ecx, ebx
call fcn.1017c7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8