Function at 0x100e6df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10125170
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], ecx
or ebx, 0xffffffff
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], ebx
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100e6e46
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1016f5d0]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
mov dword [ebp - 0x44], eax
jne 0x100e6ee5
mov ecx, dword [0x10173370]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jne 0x100e6ebc
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ecx
mov ebx, eax
or edi, 0xffffffff
jmp 0x100e743d
mov ecx, dword [0x10173374]
cmp eax, ecx
jne 0x100e6f12
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ecx
mov ebx, eax
or edi, 0xffffffff
jmp 0x100e743d
test al, 1
je 0x100e6f2c
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x10173370]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jne 0x100e6ebc
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ecx
mov ebx, eax
or edi, 0xffffffff
jmp 0x100e743d
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [0x10173378]
mov ebx, eax
or edi, 0xffffffff
jmp 0x100e743d
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push 1
call fcn.100f80d0
add esp, 4
test eax, eax
je 0x100e7014
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x1012ec60
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push str.Wow6432Node
call fcn.10023fc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.10047d00
mov esi, dword [ebp - 0x14]
add esp, 8
test eax, eax
jle 0x100e6fa5
push ecx
mov eax, esp
push esi
push str.DoOpenCreateKey:_redirecting_Wow6432Node_key_to:__s
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100e6af0
add esp, 4
mov eax, dword [0x10172224]
cmp dword [esi - 0xc], eax
jle 0x100e701b
push eax
push dword [0x10172290]
push esi
call fcn.1010465a
add esp, 0xc
test eax, eax
jne 0x100e701b
push ecx
mov eax, esp
push esi
push str.DoOpenCreateKey:_already_virtualized_key:__s
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100e6af0
add esp, 4
lea ecx, [ebp - 0x14]
push dword [0x10172224]
push 0
call fcn.10026580
lea ecx, [ebp - 0x14]
call fcn.1002ebe0
mov esi, dword [ebp - 0x14]
push ecx
mov eax, esp
push esi
push str.DoOpenCreateKey:_un_virtualized_it_to:__s
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100e6af0
add esp, 4
jmp 0x100e701b
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x70]
mov dword [edi], eax
call fcn.100e6b60
push 0x1012ec60
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.10023fc0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp eax, dword [0x10173374]
jne 0x100e706b
push 0xb
push str.NtCreateKey
lea ecx, [ebp - 0x24]
call fcn.10024680
mov dword [ebp - 0x28], 1
jmp 0x100e7096
cmp eax, dword [0x10173370]
jne 0x100e707a
push str.NtOpenKey
jmp 0x100e708e
cmp eax, dword [0x10173378]
jne 0x100e7089
push 0x10154cb4
jmp 0x100e708e
push 0x10138168
lea ecx, [ebp - 0x24]
call fcn.100240c0
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.1003dbd0
push ecx
mov byte [ebp - 4], 4
mov edi, esp
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
mov ecx, 1
mov dword [edi], eax
call fcn.1002b210
add esp, 4
test al, 2
je 0x100e70fb
push ecx
mov eax, esp
push dword [ebp - 0x38]
push str.DoOpenCreateKey:__s_is_flagged_as_DELETED
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100e6af0
add esp, 4
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x28], 0
jne 0x100e70fb
mov ebx, 0xc0000034
jmp 0x100e73c2
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp + 8]
je 0x100e71d5
push edi
mov edx, esi
call fcn.100e6cc0
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x100e7124
cmp eax, 3
jne 0x100e71d5
mov ecx, dword [ebp + 0xc]
call fcn.100f84a0
test al, al
jne 0x100e713a
cmp dword [ebp - 0x28], 0
je 0x100e71d5
lea ecx, [ebp - 0x64]
call fcn.100f84a0
test al, al
je 0x100e7150
cmp dword [ebp - 0x3c], 0
je 0x100e71d5
push 0
push 0
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x64]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
call dword [0x10173374]
mov dword [ebp - 0x18], eax
cmp eax, 0xc0000034
jne 0x100e718c
cmp dword [ebp - 0x20], 3
je 0x100e71d5
lea eax, [ebp - 0x30]
mov edx, edi
push eax
lea ecx, [ebp - 0x64]
call fcn.100e6d20
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100e7227
push ecx
mov eax, esp
push esi
push str._LOUD__DoOpenCreateKey:_created_Sandbox_key:__s
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100e6af0
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x100e71d5
cmp dword [ebp - 0x3c], 0
je 0x100e71d5
mov ecx, dword [ebp - 0x38]
mov edx, 2
push 1
push 0
mov dword [ebp - 0x40], 1
call fcn.1002a810
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
cmp eax, 3
jne 0x100e7273
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
push dword [0x10172218]
mov ebx, 0xc0000034
mov dword [ebp + 0x10], ebx
push dword [ecx + 4]
push edi
push dword [ecx + 8]
push dword [ebp - 0x18]
push ebx
push str.DoOpenCreateKey:_StrictlyIsolated_key._Forcing_RealRetVal_to_NOT_FOUND:_Real0x_.8x__Virt0x_.8x___wZ__Access_.8x__RootKey_.8x__VirtKeyHandle_x_
push eax
call fcn.10044f30
add esp, 0x20
call fcn.100e6af0
mov edi, dword [ebp - 0x1c]
add esp, 4
jmp 0x100e735c
cmp dword [ebp - 0x20], 3
je 0x100e71d5
lea ecx, [ebp + 0xc]
call fcn.10023f70
mov byte [ebp - 4], 5
lea edx, [ebp + 0xc]
mov ecx, dword [ebp - 0x60]
call fcn.100f8380
push ecx
mov eax, esp
push dword [ebp - 0x5c]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push str.__LOUD__DoOpenCreateKey:_could_not_create_Sandbox_key:_Ret_.8xL__Root_s__Key_wZ
push eax
call fcn.10044f30
add esp, 0x14
call fcn.100e6af0
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.10024080
jmp 0x100e73c2
cmp eax, 2
jne 0x100e72b0
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
push 0x20019
push edi
call dword [0x10173370]
mov edx, dword [ebp + 0xc]
mov ebx, eax
push ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov eax, esp
push dword [0x10172218]
push dword [edx + 4]
push ecx
push dword [edx + 8]
push dword [ebp - 0x18]
push ebx
push str._LOUD__DoOpenCreateKey_through_:_Real0x_.8x__Virt0x_.8x___wZ__Access_.8x__RootKey_.8x__VirtKeyHandle_x_
jmp 0x100e7320
mov ecx, dword [0x10173370]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jne 0x100e72c9
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x1c]
push edi
call ecx
jmp 0x100e72fc
mov ecx, dword [0x10173374]
cmp eax, ecx
jne 0x100e72eb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x1c]
push edi
call ecx
jmp 0x100e72fc
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x1c]
push edi
call dword [0x10173378]
mov edx, dword [ebp + 0xc]
mov ebx, eax
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
push dword [0x10172218]
mov dword [ebp + 0x10], ebx
push dword [edx + 4]
push ecx
push dword [edx + 8]
push dword [ebp - 0x18]
push ebx
push str._LOUD__DoOpenCreateKey_sandboxed_:_Real0x_.8x__Virt0x_.8x___wZ__Access_.8x__RootKey_.8x__VirtKeyHandle_x_
push eax
call fcn.10044f30
add esp, 0x20
call fcn.100e6af0
add esp, 4
test ebx, ebx
jne 0x100e735c
cmp dword [ebp - 0x40], ebx
je 0x100e735c
push ecx
mov ecx, esp
push str.Updating_Disposition_from_REG_OPENED_EXISTING_KEY____REG_CREATED_NEW_KEY
call fcn.10023fc0
call fcn.100e6af0
mov eax, dword [ebp + 0x1c]
add esp, 4
test eax, eax
je 0x100e735c
mov dword [eax], 1
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x34], eax
je 0x100e73c2
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x100e7388
push dword [ebp + 8]
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.100e4da0
add esp, 4
mov edx, dword [ebp - 0x30]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x100e739c
test eax, eax
je 0x100e739c
mov dword [edi], edx
xor ebx, ebx
jmp 0x100e73a0
test ebx, ebx
jne 0x100e73c2
push dword [ebp - 0x20]
test eax, eax
mov ecx, edx
push esi
cmove ecx, dword [ebp + 0xc]
call fcn.100e8880
add esp, 8
test eax, eax
je 0x100e73c2
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x44]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e73fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e741d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e743d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100e745b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c