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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101261d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100f541e
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100f5449
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, ebx
mov byte [ebp - 4], 3
and eax, 0xfffffffe
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov eax, ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100f54a6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x100f5564
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x208
or eax, ecx
jge 0x100f54d4
push 0x208
lea ecx, [ebp - 0x18]
call fcn.100249c0
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_FindExecutableW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x100f57ab
cmp eax, dword [esi - 8]
jg 0x100f57ab
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x1c]
cmp edi, 0x20
jle 0x100f5760
push esi
push dword [ebp + 8]
push str.DoesPeRequireElevation:_FindExecutable__s__found:__s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 4
mov ecx, str.hkShellExec
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 3
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 0x100f5558
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.100244b0
push 1
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push str..Manifest
lea edi, [ebp - 0x20]
call fcn.10026820
add esp, 4
lea ecx, [ebp - 0x1c]
mov edx, edi
call fcn.10045880
add esp, 8
cmp eax, 0xffffffff
je 0x100f5670
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov edx, edi
call fcn.10045620
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.100244b0
mov byte [ebp - 4], 3
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 0x100f55d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.10103713
mov edi, dword [ebp - 0x10]
add esp, 4
cmp dword [edi - 0xc], 0
jl 0x100f5670
push str.highestAvailable
push edi
call fcn.10103a8d
add esp, 8
test eax, eax
je 0x100f5603
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x100f5624
cmp dword [edi - 0xc], 0
jl 0x100f5670
push str.requireAdministrator
push edi
call fcn.10103a8d
add esp, 8
test eax, eax
je 0x100f5670
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x100f5670
lea eax, [ebp + 8]
mov edx, str.DoesPeRequireElevation:_external_manifest_requires_elevation:
push eax
lea ecx, [ebp - 0x20]
call fcn.10036300
add esp, 4
mov byte [ebp - 4], 7
mov ecx, str.hkShellExec
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 3
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 0x100f5669
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 1
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [edi], eax
call fcn.10048820
mov edi, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x100f5731
cmp dword [edi - 0xc], 0
jl 0x100f5731
push str.highestAvailable
push edi
call fcn.10103a8d
add esp, 8
test eax, eax
je 0x100f56c4
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x100f56e5
cmp dword [edi - 0xc], 0
jl 0x100f5731
push str.requireAdministrator
push edi
call fcn.10103a8d
add esp, 8
test eax, eax
je 0x100f5731
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x100f5731
lea eax, [ebp + 8]
mov edx, str.DoesPeRequireElevation:_embedded_manifest_requires_elevation:
push eax
lea ecx, [ebp - 0x20]
call fcn.10036300
add esp, 4
mov byte [ebp - 4], 8
mov ecx, str.hkShellExec
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 3
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 0x100f572a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x24]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0x14], 0
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push eax
je 0x100f57b5
mov edx, str.DoesPeRequireElevation:_requires_elevation:
call fcn.10036300
add esp, 4
mov byte [ebp - 4], 9
jmp 0x100f57c6
push dword [ebp + 8]
push str.DoesPeRequireElevation:_FindExecutable__s__not_found
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, str.hkShellExec
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 3
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 0x100f5564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100f5564
push 0x80070057
call fcn.100223c0
mov edx, str.DoesPeRequireElevation:_PE_does_not_require_elevation:
call fcn.10036300
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x20]
mov ecx, str.hkShellExec
call fcn.10043b30
mov byte [ebp - 4], 3
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 0x100f57f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f5810
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f582d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f584d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100f586e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret