Function at 0x1001e8af
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008036a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1001ea8b
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x1001ea3b
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0x4639
mov dword [ebp - 0x48], 0x10008a10
cmp dword [ebp - 0x28], 0x47fc
jle 0x1001e9bc
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [ebp - 0x20], 0
jmp 0x1001e955
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1d9b
jge 0x1001e9bc
and dword [ebp - 0x24], 0
jmp 0x1001e96b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1d2f
jge 0x1001e9ba
and dword [ebp - 0x14], 0
jmp 0x1001e981
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2e08
jge 0x1001e9b8
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push dword [ebp - 0x84]
push dword [ebp - 0x88]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x1001e97a
jmp 0x1001e964
jmp 0x1001e94e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x28], 0x42e6
jge 0x1001e9d8
mov edx, dword [ebp - 0x48]
mov ecx, 0x10085b58
call fcn.10023628
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x60]
push dword [eax]
mov eax, dword [ebp - 0x8c]
push dword [eax]
lea eax, [ebp - 0xa4]
push eax
call fcn.10016429
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
call fcn.10020d2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.10020d62
jmp 0x1001ea86
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1001ea69
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 2
jge 0x1001ea86
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0x6c]
call fcn.10020c90
mov dword [eax], 1
jmp 0x1001ea5e
jmp 0x1001eb4e
mov dword [ebp - 0x2c], 0x5cc9
mov dword [ebp - 0x74], 0x10008a38
cmp dword [ebp - 0x2c], 0x5f79
jle 0x1001eb11
push 0
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [ebp - 0x18], 0
jmp 0x1001eab7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x348a
jge 0x1001eb05
and dword [ebp - 0x1c], 0
jmp 0x1001eacd
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1dc4
jge 0x1001eb03
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
shl eax, cl
cdq
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x1001eac6
jmp 0x1001eab0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x2c], 0x5b6c
jge 0x1001eb2d
mov edx, dword [ebp - 0x74]
mov ecx, 0x10085b58
call fcn.10023628
push 0
push 0x7648
push 0x7ebd
push 0x9d2
push 0x3666
push dword [ebp - 0x7c]
call fcn.1001503e
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret