Function at 0x10000e478
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
sub rsp, 0x30
mov r13, r8
mov rdi, rdx
mov rbp, rcx
call fcn.100001210
test al, al
je 0x100022bab
mov eax, dword [rdi + 0x1c]
test eax, eax
jne 0x100022bb5
mov rdx, r13
mov rcx, rbp
call fcn.10000e504
mov rax, qword [rsp + 0x68]
and dword [rdi + 0x18], 0
mov edx, 2
mov rcx, rdi
mov dword [rdi + 4], 0x8003
mov qword [rdi + 8], r13
mov qword [rdi + 0x28], rax
call fcn.100001aa0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
mov eax, 0x40000
jmp 0x10000e4e5
sub eax, 1
je 0x100022e54
sub eax, 1
je 0x100022c10
cmp eax, 1
jne 0x10000e4c0
mov ecx, dword [0x1000da584]
or ebx, 0xffffffff
cmp ecx, ebx
jne 0x100022bdd
xor eax, eax
jmp 0x100022be9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
mov esi, dword [rsp + 0x68]
sub esi, dword [rax + 0x54]
cmp ecx, ebx
jne 0x100022bf8
xor eax, eax
jmp 0x100022bfe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rsp + 0x6c]
sub ecx, dword [rax + 0x58]
mov dword [rdi + 0x38], esi
mov dword [rdi + 0x3c], ecx
jmp 0x10000e4c0
mov ecx, dword [0x1000da584]
or ebx, 0xffffffff
cmp ecx, ebx
jne 0x100022c21
xor eax, eax
jmp 0x100022c2d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
cmp qword [rax + 0x20], 0
je 0x100022e3a
cmp ecx, ebx
jne 0x100022c40
xor eax, eax
jmp 0x100022c4c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
mov al, byte [rax + 0x50]
cmp byte [rdi + 0x30], al
jne 0x100022e3a
cmp ecx, ebx
jne 0x100022c60
xor eax, eax
jmp 0x100022c6c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
mov byte [rax + 0xa1], 0
cmp ecx, ebx
jne 0x100022c7b
xor eax, eax
jmp 0x100022c87
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
and qword [rax + 0x20], 0
cmp ecx, ebx
jne 0x100022c94
xor eax, eax
jmp 0x100022c9a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [rax + 0x50], 0
mov rax, qword [rbp]
mov rcx, rbp
mov byte [rbp + 0x1a8], 1
call qword [rax + 0xa8]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r13
mov byte [rbp + 0x1a8], 0
call fcn.10000b620
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100022e31
mov edx, dword [0x1000da584]
cmp edx, ebx
jne 0x100022cf2
xor eax, eax
jmp 0x100022d00
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov esi, dword [rax + 0x90]
cmp edx, ebx
jne 0x100022d0e
xor eax, eax
jmp 0x100022d1c
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov r12d, dword [rdi + 0x24]
sub r12d, dword [rax + 0x7c]
cmp edx, ebx
jne 0x100022d2c
xor ebp, ebp
jmp 0x100022d41
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov rbp, rax
cmp edx, ebx
jne 0x100022d45
xor eax, eax
jmp 0x100022d53
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov al, byte [rax + 0x60]
cmp byte [rbp + 0x78], al
jne 0x100022e0e
cmp edx, ebx
jne 0x100022d67
xor eax, eax
jmp 0x100022d75
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov cl, byte [rdi + 0x30]
cmp byte [rax + 0x60], cl
jne 0x100022e0e
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp r12d, eax
ja 0x100022e08
mov ecx, dword [0x1000da584]
cmp ecx, ebx
jne 0x100022d9a
xor ebp, ebp
jmp 0x100022da3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r11d, eax
mov eax, dword [rsp + 0x68]
sub eax, dword [rbp + 0x80]
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
jg 0x100022e08
mov ecx, dword [0x1000da584]
cmp ecx, ebx
jne 0x100022dd3
xor ebp, ebp
jmp 0x100022ddc
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r11d, eax
mov eax, dword [rsp + 0x6c]
sub eax, dword [rbp + 0x84]
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
jg 0x100022e08
mov edx, dword [0x1000da584]
inc esi
jmp 0x100022e13
mov edx, dword [0x1000da584]
mov esi, 1
mov dword [rdi + 0x38], esi
cmp edx, ebx
jne 0x100022e1e
xor eax, eax
jmp 0x100022e26
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x90], esi
jmp 0x10000e4c0
and dword [rdi + 0x38], 0
jmp 0x10000e4c0
cmp ecx, ebx
jne 0x100022e42
xor eax, eax
jmp 0x100022e48
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [rax + 0x90], 0
jmp 0x10000e4c0
mov edx, dword [0x1000da584]
or ebx, 0xffffffff
cmp edx, ebx
jne 0x100022e65
xor eax, eax
jmp 0x100022e73
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
cmp qword [rax + 0x20], 0
jne 0x10000e4c0
mov rcx, r13
test r13, r13
je 0x100022e9c
mov eax, dword [rcx + 0x44]
and eax, 0x26
cmp al, 0x26
je 0x100022e9e
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x100022e86
xor ecx, ecx
test rcx, rcx
je 0x100022eba
mov rdx, rcx
mov r8d, 8
mov rcx, rbp
call fcn.1000018d0
mov edx, dword [0x1000da584]
cmp edx, ebx
jne 0x100022ec2
xor eax, eax
jmp 0x100022ed0
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
cmp qword [rax + 0x70], r13
jne 0x100022f99
cmp edx, ebx
jne 0x100022ee2
xor eax, eax
jmp 0x100022ef0
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov cl, byte [rdi + 0x30]
cmp byte [rax + 0x60], cl
jne 0x100022f99
cmp edx, ebx
jne 0x100022f04
xor esi, esi
jmp 0x100022f0f
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, dword [rdi + 0x24]
sub ecx, dword [rsi + 0x64]
cmp ecx, eax
ja 0x100022f93
mov ecx, dword [0x1000da584]
cmp ecx, ebx
jne 0x100022f2d
xor esi, esi
jmp 0x100022f36
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r11d, eax
mov eax, dword [rsp + 0x68]
sub eax, dword [rsi + 0x68]
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
jg 0x100022f93
mov ecx, dword [0x1000da584]
cmp ecx, ebx
jne 0x100022f63
xor esi, esi
jmp 0x100022f6c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r11d, eax
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsi + 0x6c]
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
jg 0x100022f93
mov edx, dword [0x1000da584]
jmp 0x100022fb6
mov edx, dword [0x1000da584]
cmp edx, ebx
jne 0x100022fa1
xor eax, eax
jmp 0x100022faf
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
and dword [rax + 0x90], 0
cmp edx, ebx
jne 0x100022fbe
xor eax, eax
jmp 0x100022fcc
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov eax, dword [rax + 0x90]
mov dword [rdi + 0x38], eax
cmp edx, ebx
jne 0x100022fdd
xor esi, esi
jmp 0x100022ff2
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov rsi, rax
cmp edx, ebx
jne 0x100022ff6
xor eax, eax
jmp 0x100023004
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov rcx, qword [rsi + 0x60]
mov qword [rax + 0x78], rcx
mov rcx, qword [rsi + 0x68]
mov qword [rax + 0x80], rcx
mov rcx, qword [rsi + 0x70]
mov qword [rax + 0x88], rcx
cmp edx, ebx
jne 0x10002302a
xor eax, eax
jmp 0x100023038
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov qword [rax + 0x70], r13
cmp edx, ebx
jne 0x100023044
xor eax, eax
jmp 0x100023052
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov cl, byte [rdi + 0x30]
mov byte [rax + 0x60], cl
cmp edx, ebx
jne 0x100023060
xor eax, eax
jmp 0x10002306e
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov ecx, dword [rdi + 0x24]
mov dword [rax + 0x64], ecx
cmp edx, ebx
jne 0x10002307c
xor eax, eax
jmp 0x10002308a
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x68], rcx
cmp edx, ebx
jne 0x10002309b
xor eax, eax
jmp 0x1000230a9
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov qword [rax + 0x20], r13
cmp edx, ebx
jne 0x1000230b5
xor eax, eax
jmp 0x1000230c3
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [0x1000da584]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x54], rcx
cmp edx, ebx
jne 0x1000230d4
xor eax, eax
jmp 0x1000230dc
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov cl, byte [rdi + 0x30]
mov byte [rax + 0x50], cl
mov rax, qword [rbp]
mov rcx, rbp
mov byte [rbp + 0x1a8], 1
call qword [rax + 0xa0]
mov byte [rbp + 0x1a8], 0
jmp 0x10000e4c0