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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101231a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 dword [ebp - 0x24], 0
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100cc9db
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1016f5d0]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or ebx, 0xffffffff
cmp byte [0x1017045d], 0
jne 0x100cca1e
push dword [ebp + 8]
call dword [0x10172864]
mov edi, eax
jmp 0x100ccf82
push 0x1012ec60
lea ecx, [ebp - 0x20]
call fcn.10023fc0
push 0x1012ec60
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10023fc0
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [edi + 8]
test eax, eax
je 0x100ccd1f
push ecx
mov ecx, esp
push eax
call fcn.10023fc0
call fcn.1003d290
add esp, 4
test eax, eax
jne 0x100ccd1f
mov eax, edi
lea ecx, [ebp - 0x10]
push dword [eax + 8]
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 3
mov edi, esp
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [edi], eax
call fcn.1003cd10
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.100244b0
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccac3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.10029a80
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x100cccfc
test byte [edi], 2
jne 0x100cccf3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push dword [eax + 8]
call fcn.100240c0
test byte [edi], 0x80
jne 0x100ccc47
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
mov edi, esp
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [ebp - 0x18]
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov edx, dword [edx + 0x64]
call fcn.1003d3b0
add esp, 0x10
call fcn.10046b30
add esp, 4
mov esi, eax
push ebx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
test esi, esi
jne 0x100ccc17
push str.deploying__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10024080
push ecx
mov ecx, esp
push str.CreateActCtxWHook:_FileStreaming_Deploy
call fcn.10023fc0
call fcn.100f5900
mov ecx, dword [ebp - 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edi, dword [ebp - 0x18]
add eax, 0x10
xor edx, edx
mov dword [esi], eax
mov ecx, edi
call fcn.100fd6a0
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
call fcn.100244b0
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x24]
mov dword [esi], eax
mov edx, dword [edi + 0x64]
call fcn.1003d3b0
add esp, 0x10
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.100244b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10024080
jmp 0x100ccc44
push str.already_exists__although_with_FLAGS_DEPLOYED0_:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10024080
mov edi, dword [ebp - 0x18]
or ebx, 0xffffffff
push 0
push 0
push 1
push ecx
mov ecx, dword [ebp - 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x24]
mov dword [esi], eax
mov edx, dword [edi + 0x64]
call fcn.1003d3b0
add esp, 0x10
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.100244b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10024080
push 0x20
call fcn.10104809
mov esi, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x24], edi
movdqu xmm0, xmmword [eax]
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [edi + 0x10], xmm0
cmp dword [esi - 4], 1
jle 0x100cccc2
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.10024570
mov esi, dword [ebp - 0x14]
push esi
push esi
lea eax, [ebp - 0x28]
mov dword [edi + 8], esi
push str.Virtualizing_lpSource__s_to__s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [ebp - 0x28]
call fcn.10024080
mov edi, dword [ebp - 0x18]
push edi
call fcn.10103713
add esp, 4
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccd1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
test eax, eax
mov edi, str.NULL
cmovne edi, eax
call fcn.100cc7d0
mov byte [ebp - 4], 0xa
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 4]
lea eax, [ebp - 0x28]
push edi
push str.ApiInitlpSource_sdwFlags0x_xDetail_s
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 0xb
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 0xa
mov ecx, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccd85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccda5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x100ccdb8
push edi
jmp 0x100ccdbb
push dword [ebp + 8]
call dword [0x10172864]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ecx - 0xc], 0
je 0x100cce8e
cmp byte [0x10174f38], 0
je 0x100cce8e
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [ebp - 0x28], eax
or ecx, 1
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
mov ecx, dword [ebp - 0x1c]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
mov dword [edi], eax
call fcn.100475f0
add esp, 4
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push str.re_deleting_just_deployed_file:__s_d
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 0xc
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cce68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov edx, 0x80
push 1
push 0
call fcn.1002a810
add esp, 8
push dword [ebp - 0x28]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x100ccea4
push ecx
lea ecx, [ebp - 0x14]
call fcn.10024210
push edi
call fcn.10103713
add esp, 4
mov edi, dword [ebp + 8]
mov ecx, str.NULL
mov edx, edi
mov eax, dword [edi + 8]
test eax, eax
cmovne ecx, eax
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x28]
call fcn.100cc7d0
mov byte [ebp - 4], 0xd
push dword [eax]
push dword [edi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x2c]
push str.ApiRetRet_Handle_0x_xLE_dlpSource_sdwFlags0x_xDetail_s
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 0xe
mov ecx, str.CreateActCtxW
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccf19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccf39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccf62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ccf82
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], ebx
dec ebx
test ebx, ebx
jg 0x100ccfa0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4