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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10125000
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1016f5d0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
mov dword [esp + 0x58], eax
je 0x100e5662
test al, 1
je 0x100e5691
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x10172940]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 8]
push 0
call fcn.100e8600
mov edx, dword [ebp + 0xc]
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x100e56e0
mov ecx, dword [edi + 0x34]
call fcn.100e88f0
mov edx, eax
mov ecx, 1
xor eax, eax
mov dword [esp + 0x10], edx
cmp dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x2c], edx
cmove eax, ecx
mov dword [esp + 0x40], eax
jmp 0x100e56f4
mov dword [esp + 0x10], edx
jmp 0x100e56f4
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x1c]
mov esi, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [0x10172940]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
test edi, edi
je 0x100e5788
cmp dword [edi + 0x3c], 0
je 0x100e5788
test esi, esi
jne 0x100e5788
push esi
push dword [edi + 0x20]
lea eax, [esp + 0x38]
push dword [ebp + 0x10]
push str.KeyInformationClass_d__Key_s__Index_d
push eax
call fcn.10044f30
add esp, 0x14
mov dword [esp + 0x90], esi
mov ecx, 0x10153c1c
mov edx, dword [esp + 0x30]
call fcn.10043b30
mov dword [esp + 0x90], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5788
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100e57a2
cmp eax, 2
je 0x100e57a2
cmp eax, 3
je 0x100e57a2
cmp eax, 1
jne 0x100e5ee8
test esi, esi
js 0x100e5ee8
cmp dword [ebp + 0x14], 0
je 0x100e5ee8
test edi, edi
je 0x100e5ef6
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x100e5ee8
cmp dword [ebp + 8], ecx
je 0x100e5ee8
mov eax, dword [edi + 0x44]
mov edx, dword [esp + 0x2c]
not eax
and eax, 1
test edx, edx
jne 0x100e5d19
test eax, eax
je 0x100e5ee8
xor eax, eax
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
lea edx, [esi + 1]
sub eax, esi
je 0x100e5827
dec eax
je 0x100e581c
sub eax, 2
je 0x100e5812
mov eax, dword [esp + 0x14]
xor edx, edx
jmp 0x100e5838
mov eax, dword [ebp + 0x14]
lea esi, [eax + 4]
mov eax, dword [eax]
jmp 0x100e5830
mov eax, dword [ebp + 0x14]
lea esi, [eax + 0x18]
mov eax, dword [eax + 0x14]
jmp 0x100e5830
mov eax, dword [ebp + 0x14]
lea esi, [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
test edx, edx
je 0x100e5ee8
xor edx, edx
movzx edi, ax
xorps xmm0, xmm0
mov dword [esp + 0x66], edx
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x64]
mov word [esp + 0x6a], dx
mov dword [esp + 0x80], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x68], esi
mov word [esp + 0x66], ax
mov word [esp + 0x64], ax
mov dword [esp + 0x6c], 0x18
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
shr edi, 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x100e5d0f
test esi, esi
jne 0x100e58c3
test edi, edi
jne 0x100e5ce5
mov eax, dword [edx]
mov ecx, edx
push 2
push edi
mov eax, dword [eax]
call eax
test eax, eax
je 0x100e5d0a
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
test edi, edi
js 0x100e5ce5
cmp edi, dword [esi - 8]
jg 0x100e5ce5
lea eax, [edi + edi]
mov dword [esi - 0xc], edi
push eax
push dword [esp + 0x1c]
xor ecx, ecx
push eax
push esi
mov word [esi + eax], cx
call fcn.10103d20
add esp, 0xc
mov dword [esp + 0x94], 1
mov ecx, esp
mov dword [esp + 0x60], esp
push 0x1012ec40
call fcn.10023fc0
mov byte [esp + 0x94], 2
lea edi, [esi - 0x10]
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x68], esp
mov dword [esp + 0x50], esp
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x100e595d
cmp ecx, dword [edi]
jne 0x100e595d
mov ecx, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100e59a3
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [esp + 0x4c], edx
test edx, edx
je 0x100e5d0a
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10103d20
mov ecx, dword [esp + 0x5c]
add esp, 0x10
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
push ecx
mov byte [esp + 0x9c], 3
mov ecx, esp
push dword [eax + 0x20]
call fcn.10023fc0
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 1
call fcn.10044c80
add esp, 0xc
mov byte [esp + 0x90], 4
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x100e5a32
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x100e5a21
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100e5a21
call fcn.10024750
mov dword [esp + 0x48], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100e5a18
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x48]
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
jmp 0x100e5a32
push dword [edx - 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.10024680
mov esi, dword [esp + 0x28]
mov byte [esp + 0x90], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5a58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.1003dbd0
lea eax, [esp + 0x6c]
mov byte [esp + 0x90], 5
push eax
push 1
lea eax, [esp + 0x3c]
push eax
call dword [0x10173370]
test eax, eax
jne 0x100e5a93
push dword [esp + 0x34]
call dword [0x10174f34]
mov dword [esp + 0x38], 1
mov edi, dword [esp + 0x24]
add edi, 0xfffffff0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x100e5abd
cmp ecx, dword [edi]
jne 0x100e5abd
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100e5b01
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov dword [esp + 0x48], eax
test eax, eax
je 0x100e5d0a
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [edi + 4]
lea eax, [edx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.10103d20
mov edi, dword [esp + 0x58]
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x60], edi
mov edx, 1
mov byte [esp + 0x90], 6
mov ecx, edi
call fcn.10029a80
test eax, eax
je 0x100e5b57
mov ecx, dword [eax]
push eax
mov dword [esp + 0x4c], ecx
call fcn.10103713
add edi, 0xfffffff0
mov byte [esp + 0x94], 5
add esp, 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5b51
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x48]
jmp 0x100e5b7b
add edi, 0xfffffff0
mov byte [esp + 0x90], 5
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5b79
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test al, 2
je 0x100e5bd1
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push str.Hiding_deleted_Key_during_enumeration:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [esp + 0x90], 7
mov ecx, 0x10153c1c
mov edx, dword [eax]
call fcn.10043b30
mov byte [esp + 0x90], 5
or ecx, 0xffffffff
mov edx, dword [esp + 0x50]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5bdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100e5bdc
cmp dword [esp + 0x38], 0
je 0x100e5cef
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
mov edx, dword [esp + 0x18]
push eax
call fcn.100e42f0
mov byte [esp + 0x94], 8
push dword [eax]
lea eax, [esp + 0x44]
push str.NtEnumerateKeyHook:_REMOVE__s_and_increment_HiddenKeyIndexes
push eax
call fcn.10044f30
add esp, 0x10
mov byte [esp + 0x90], 9
mov ecx, 0x10153c1c
mov edx, dword [esp + 0x3c]
call fcn.10043b30
mov byte [esp + 0x90], 8
or ecx, 0xffffffff
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5c46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x90], 5
or ecx, 0xffffffff
mov edx, dword [esp + 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5c6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 8
call fcn.10104809
mov edi, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
inc edx
mov ecx, dword [edi + 0x34]
mov dword [eax], ecx
or ecx, 0xffffffff
mov dword [edi + 0x34], eax
mov dword [esp + 0x10], edx
mov dword [edi + 0x2c], edx
mov byte [esp + 0x90], 1
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e5cb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e56f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100e56f0
push 0x80070057
call fcn.100223c0
lea ecx, [esp + 0x24]
call fcn.10024080
lea ecx, [esp + 0x28]
call fcn.10024080
mov edi, dword [esp + 0x1c]
jmp 0x100e5ee8
call fcn.10024740
push 0x80004005
call fcn.100223c0
cmp edx, 0x8000001a
jne 0x100e5ee8
cmp dword [esp + 0x40], 0
je 0x100e5e8c
test esi, esi
je 0x100e5e8c
cmp dword [edi + 0x24], 0xffffffff
jne 0x100e5e8c
push dword [0x1016f5d0]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x100e5e34
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call eax
mov edi, eax
mov ecx, edi
or ecx, 1
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea eax, [esp + 0x44]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
push dword [eax + 0x3c]
call esi
push edi
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push ecx
mov eax, esp
push dword [edi + 0x20]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [edi + 0x24]
push esi
push str._Irregular_enumeration:_doing_VirtualizeKeyCounts__watch_out_for_performance_impact__:_Index_d__pEntry__LastRealKeyIndex_d__RealSubKeys_d__VirtSubKeys_d__Key_s
push eax
call fcn.10044f30
add esp, 0x1c
call fcn.100e4280
mov ecx, esp
push str.IrregularKeyEnumeration
call fcn.10023fc0
lea edx, [esp + 0x58]
lea ecx, [esp + 0x54]
call fcn.1004a240
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x64]
push 0
call fcn.100e7580
mov edx, dword [esp + 0x5c]
add esp, 8
mov ecx, dword [esp + 0x50]
call fcn.1004a450
jmp 0x100e5e8c
call eax
mov esi, eax
mov ecx, esi
or ecx, 1
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push esi
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x100e5e98
cmp esi, eax
jae 0x100e5e9b
mov dword [edi + 0x24], esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x1c]
sub esi, dword [edi + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [edi + 0x3c]
call dword [0x10172940]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100e5ede
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x60]
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.100e55a0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
test edi, edi
je 0x100e5ef6
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x58]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18