Function at 0x100cd1d0
Capabilities:
Check if file exists
Get file attributes
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123280
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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, dword [0x101728c0]
mov ecx, 0x10172250
mov dword [ebp - 0x20], edi
call fcn.10033490
mov ecx, dword [0x1017222c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x100cd228
call fcn.10031ea0
lea eax, [ebp - 0x14]
mov edx, str._Windows_WinSxS
push eax
push ecx
push 0
push 0
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, 0x10172250
push eax
push 0
push 0
call fcn.10033e00
or ebx, 0xffffffff
test eax, eax
je 0x100cd346
cmp dword [ebp - 0x18], 0
je 0x100cd346
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100cd346
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x100cd346
lea esp, [esp]
mov eax, dword [esi + 0x24]
test byte [eax], 1
jne 0x100cd338
push dword [esi]
lea eax, [ebp - 0x18]
push str.CImaginarySxsContexts::InitVirtGlobalAssemblies:_SxsPacker.AddGlobalAssembly__s_
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.ImaginarySxsContexts
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
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 0x100cd2d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push ecx
mov ebx, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [esi]
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [edi + 0x48]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10044c80
add esp, 0xc
lea ecx, [edi + 0x48]
call fcn.10039220
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
mov edi, dword [ebp - 0x20]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100cd280
push dword [0x10172260]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x100cd397
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._Lock:_failed_releasing__LE_d
push eax
call fcn.10044f30
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0x18]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd397
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cd3d2
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 3
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cd402
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cd42f
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ecx
mov ecx, esp
push eax
push str.Manif._d.org.xml
push ecx
call fcn.10044f30
add esp, 0xc
lea ecx, [ebp - 0x24]
xor edx, edx
call fcn.1003d710
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x10], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x100cd4c5
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x100cd4b6
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100cd4b6
mov ecx, dword [ebp - 0x1c]
call fcn.10024750
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x100cd4ae
mov edi, dword [ebp - 0x10]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x100cd4c5
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.10024680
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd4e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x101728c0], 0
je 0x100cd6f5
lea ecx, [edi - 0x10]
call fcn.10024750
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
lea edx, [ebx - 0x10]
cmp eax, 0xffffffff
lea eax, [edx + 0xc]
setne cl
or ebx, 0xffffffff
mov dword [ebp - 0x24], ecx
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd52b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
je 0x100cd6f5
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [esi], eax
call fcn.10045950
add esp, 4
test eax, eax
je 0x100cd6f2
push edi
lea eax, [ebp - 0x10]
push str.CImaginarySxsContexts::InitVirtGlobalAssemblies:_process_manifest_file_exists:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, str.ImaginarySxsContexts
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov byte [ebp - 4], 5
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 0x100cd59b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cd5b7
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 8
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x100cd5ec
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
push 0x514
push esi
push 0
call fcn.100f2010
push dword [esi - 8]
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x100cd6e8
cmp eax, dword [esi - 8]
jg 0x100cd6e8
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov ebx, esp
lea ecx, [esi - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
call fcn.1003cd10
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.100244b0
mov byte [ebp - 4], 8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd668
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push 0
push 1
push ecx
lea ecx, [esi - 0x10]
mov dword [ebp - 0x24], esp
mov ebx, esp
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov ebx, esp
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0xb
mov ebx, esp
mov ecx, dword [ebp - 0x1c]
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
push 0
mov byte [ebp - 4], 8
call fcn.100cef50
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
call fcn.100475f0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
or ebx, 0xffffffff
jmp 0x100cd722
push 0x80070057
call fcn.100223c0
mov esi, dword [ebp - 0x18]
push edi
lea eax, [ebp - 0x1c]
push str.CImaginarySxsContexts::InitVirtGlobalAssemblies:_process_manifest_file_does_NOT_exist:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, str.ImaginarySxsContexts
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x101728c0]
mov edx, dword [eax + 0xc4]
sub edx, dword [eax + 0xc0]
lea eax, [ebp - 0x1c]
sar edx, 2
push edx
push str.CImaginarySxsContexts::InitVirtGlobalAssemblies:__d_global_assemblies_registered
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, str.ImaginarySxsContexts
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 5
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 0x100cd78f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x28]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd7bb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cd7d8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100cd7f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret