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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087298
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
call fcn.10021470
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x1006032e
push 0x80004005
call fcn.10021340
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
call fcn.10021470
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10060359
push 0x80004005
call fcn.10021340
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
and ebx, 0xfffffffe
mov byte [ebp - 4], 3
push ebx
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.100236e0
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
lea edx, [ebx - 0x10]
cmp eax, 0xffffffff
setne cl
or ebx, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100603b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x100604b9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x208
or eax, ecx
jge 0x100603e2
push 0x208
lea ecx, [ebp - 0x18]
call fcn.10023670
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 dword [ebp - 0x1c], eax
push esi
call fcn.1006b17d
add esp, 8
test eax, eax
js 0x100605aa
cmp eax, dword [esi - 8]
jg 0x100605aa
xor ecx, ecx
mov dword [esi - 0xc], eax
cmp dword [ebp - 0x1c], 0x20
mov word [esi + eax*2], cx
lea eax, [ebp - 0x1c]
jle 0x10060564
push esi
push dword [ebp + 8]
push str.DoesPeRequireElevation:_FindExecutable__s__found:__s
push eax
call fcn.1003a800
add esp, 0x10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
call fcn.100394f0
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 0x10060463
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [esi - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], ecx
cmp edx, ecx
je 0x100604b9
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1c], eax
jl 0x10060553
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10060553
mov ecx, edx
call fcn.100236e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100604b0
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp + 8], eax
push 1
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push str..Manifest
call fcn.10022e60
add esp, 4
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.1003aee0
add esp, 8
cmp eax, 0xffffffff
je 0x1006067b
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.1003ad00
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x28], eax
cmp eax, ecx
je 0x100605c3
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x100605b4
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100605b4
mov ecx, dword [ebp - 0x28]
call fcn.100236e0
mov dword [ebp - 0x28], eax
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10060548
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x28]
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x100605c3
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.10023530
jmp 0x100604b9
push dword [ebp + 8]
push str.DoesPeRequireElevation:_FindExecutable__s__not_found
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
call fcn.100394f0
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 0x100604b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100604b9
push 0x80070057
call fcn.10021340
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10023530
mov edi, dword [ebp - 0x10]
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 0x100605e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call fcn.1006ac0c
add esp, 4
cmp dword [edi - 0xc], 0
jl 0x1006067b
push str.highestAvailable
push edi
call fcn.1006bdbf
add esp, 8
test eax, eax
je 0x10060613
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x10060634
cmp dword [edi - 0xc], 0
jl 0x1006067b
push str.requireAdministrator
push edi
call fcn.1006bdbf
add esp, 8
test eax, eax
je 0x1006067b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1006067b
lea eax, [ebp + 8]
mov edx, str.DoesPeRequireElevation:_external_manifest_requires_elevation:
push eax
lea ecx, [ebp - 0x20]
call fcn.10022f40
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x20]
call fcn.100394f0
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 0x10060674
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.100236e0
add eax, 0x10
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [edi], eax
call fcn.1003d5b0
mov edi, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x10060737
cmp dword [edi - 0xc], 0
jl 0x10060737
push str.highestAvailable
push edi
call fcn.1006bdbf
add esp, 8
test eax, eax
je 0x100606cf
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x100606f0
cmp dword [edi - 0xc], 0
jl 0x10060737
push str.requireAdministrator
push edi
call fcn.1006bdbf
add esp, 8
test eax, eax
je 0x10060737
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10060737
lea eax, [ebp + 8]
mov edx, str.DoesPeRequireElevation:_embedded_manifest_requires_elevation:
push eax
lea ecx, [ebp - 0x20]
call fcn.10022f40
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x20]
call fcn.100394f0
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 0x10060730
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x2c]
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0x14], 0
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push eax
je 0x10060766
mov edx, str.DoesPeRequireElevation:_requires_elevation:
call fcn.10022f40
add esp, 4
mov byte [ebp - 4], 9
jmp 0x10060777
mov edx, str.DoesPeRequireElevation:_PE_does_not_require_elevation:
call fcn.10022f40
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x20]
call fcn.100394f0
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 0x1006079f
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 0x100607bc
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 0x100607d9
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 0x100607f9
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 0x1006081a
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