Function at 0x10048a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101216a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 - 0x20], edx
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.100448b0
or edi, 0xffffffff
test eax, eax
je 0x10048bb3
push str..manifest
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.10026820
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x1c], ecx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048ab4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
je 0x10048bb3
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.ExtractPeManifest__s_:_found_external_manifest__XP_priority_
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, str.WinUtils
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048b03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push str..manifest
lea esi, [ebp - 0x14]
call fcn.10026820
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
call fcn.10045880
add esp, 8
cmp eax, 0xffffffff
je 0x10048b97
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push esi
call fcn.10045620
add esp, 4
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.100244b0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048b6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call fcn.10103713
mov eax, dword [ebx]
mov ecx, esp
push eax
push dword [eax - 0xc]
push esi
push str.ExtractPeManifest:_found__d__d_:_n_s:
push ecx
call fcn.10044f30
add esp, 0x14
call fcn.10043ac0
add esp, 4
jmp 0x10048d45
push ecx
mov eax, esp
push dword [ebp + 8]
push str._ExtractPeManifest__s_:_warning:_.manifest_file_could_not_be_read_
push eax
call fcn.10044f30
add esp, 0xc
call fcn.10043ac0
add esp, 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [ebp - 0x20]
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10048820
add esp, 0xc
test eax, eax
je 0x10048bfa
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.ExtractPeManifest__s_:_found_in_PE_resource
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x10048d18
call fcn.100448b0
test eax, eax
jne 0x10048d00
push str..manifest
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.10026820
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x20], ecx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048c4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
je 0x10048d00
push ecx
mov eax, esp
push dword [ebp + 8]
push str.ExtractPeManifest__s_:_found_external_manifest__non_XP_priority_
push eax
call fcn.10044f30
add esp, 0xc
call fcn.10043ac0
add esp, 4
lea edx, [ebp + 8]
lea esi, [ebp - 0x14]
push 1
push ecx
mov ecx, esp
push str..manifest
call fcn.10026820
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
call fcn.10045880
add esp, 8
cmp eax, 0xffffffff
je 0x10048ce4
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov edx, esi
call fcn.10045620
add esp, 4
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.100244b0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048cd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.10103713
add esp, 4
jmp 0x10048d45
push ecx
mov eax, esp
push dword [ebp + 8]
push str._ExtractPeManifest__s_:_warning:_.manifest_file_could_not_be_read_
push eax
call fcn.10044f30
add esp, 0xc
call fcn.10043ac0
add esp, 4
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.ExtractPeManifest__s_:_no_manifest_found
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
mov ecx, str.WinUtils
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048d45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10048d66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret