Function at 0x10017eb5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1001808c
lea eax, [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10017f0a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
push 2
mov ecx, dword [ebp - 0x34]
call fcn.100267ee
or dword [eax], 0xffffffff
jmp 0x1001808a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x20], 0x22c3
mov dword [ebp - 0x40], 0x10007ec8
cmp dword [ebp - 0x20], 0x2409
jle 0x10017fbf
and dword [ebp - 0x14], 0
jmp 0x10017f3e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x58e1
jge 0x10017fb7
and dword [ebp - 0xc], 0
jmp 0x10017f54
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x247c
jge 0x10017fb5
and dword [ebp - 0x18], 0
jmp 0x10017f6a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x307a
jge 0x10017fb3
and dword [ebp - 4], 0
jmp 0x10017f80
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1243
jge 0x10017fb1
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0xc]
xor edx, dword [ebp - 0x18]
or edx, dword [ebp - 4]
mov eax, edx
cdq
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
mov ecx, 0x10094c18
call fcn.10026436
jmp 0x10017f79
jmp 0x10017f63
jmp 0x10017f4d
jmp 0x10017f37
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0x5709
mov dword [ebp - 0x28], 0x10007ee8
cmp dword [ebp - 0x1c], 0x57af
jle 0x10018049
and dword [ebp - 8], 0
jmp 0x10017fe9
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x7f28
jge 0x10018049
and dword [ebp - 0x10], 0
jmp 0x10017fff
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3f8d
jge 0x10018047
mov eax, dword [ebp - 8]
or eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.100127de
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.10026416
push eax
call fcn.10079103
pop ecx
lea ecx, [ebp - 0x84]
call fcn.1002640c
jmp 0x10017ff8
jmp 0x10017fe2
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], 0x56f1
jge 0x10018061
push dword [ebp - 0x28]
call fcn.10079103
pop ecx
mov eax, dword [ebp - 0x30]
push dword [eax]
mov ecx, dword [ebp - 0x38]
call fcn.100267ee
mov dword [eax], 1
cmp dword [ebp - 0x20], 0x1feb
jge 0x1001808a
mov edx, dword [ebp - 0x40]
mov ecx, 0x10094c18
call fcn.10029186
jmp 0x100180aa
lea eax, [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
push 0
mov eax, dword [ebp - 0x48]
push dword [eax]
push dword [ebp - 0x50]
call fcn.10019a22
add esp, 0xc
mov esp, ebp
pop ebp
ret