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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
xor ebx, ebx
mov ecx, 0x535b74
mov dword [ebp - 0x18], ebx
mov eax, str._N_A_
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c8736
test dx, dx
je 0x4c8732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c8736
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c8710
xor eax, eax
jmp 0x4c873b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c8b9f
push 0x206
push eax
mov word [str._N_A_], ax
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x27e]
push eax
call fcn.004cf600
push 1
lea eax, [ebp - 0x280]
push 0x104
push eax
call fcn.004cafb0
xor eax, eax
mov dword [ebp - 0x64], 7
add esp, 0x18
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x78], ax
cmp word [ebp - 0x280], ax
jne 0x4c8795
xor ecx, ecx
jmp 0x4c87af
lea ecx, [ebp - 0x280]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c87a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040a410
push 0x50f8e4
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004778a0
add esp, 0xc
cmp dword [ebp - 0x64], 8
mov byte [ebp - 4], 2
jb 0x4c87f0
push dword [ebp - 0x78]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [0x659224], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jne 0x4c898f
cmp dword [ebp - 0x14], 0
je 0x4c8891
push str.SynComTT32.dll
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ebx, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
jb 0x4c885b
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x4c8891
push str.SynComTT32.dll.manifest
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
mov ebx, 3
cmp dword [eax + 0x14], 8
jb 0x4c8885
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x4c8895
mov byte [ebp - 0xd], 0
test bl, 2
je 0x4c88c2
and ebx, 0xfffffffd
cmp dword [ebp - 0x34], 8
jb 0x4c88ae
push dword [ebp - 0x48]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x4c88e2
and ebx, 0xfffffffe
cmp dword [ebp - 0x1c], 8
jb 0x4c88e2
push dword [ebp - 0x30]
call fcn.004cf489
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x4c88f2
push str.SynComTT32.dll.manifest
jmp 0x4c8a50
cmp dword [ebp - 0x14], 0
jne 0x4c8953
push str.SynComTT.dll
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x18], ebx
jb 0x4c891f
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x4c8953
push str.SynComTT.dll.manifest
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 8
cmp dword [eax + 0x14], 8
jb 0x4c8947
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x4c8957
mov byte [ebp - 0xd], 0
test bl, 8
je 0x4c8967
lea ecx, [ebp - 0x30]
and ebx, 0xfffffff7
call fcn.004090f0
mov dword [ebp - 4], 2
test bl, 4
je 0x4c897b
lea ecx, [ebp - 0x48]
call fcn.004090f0
cmp byte [ebp - 0xd], 0
je 0x4c8b6b
push str.SynComTT.dll.manifest
jmp 0x4c8b33
cmp dword [ebp - 0x14], 0
je 0x4c89f4
push str.SynCom32.dll
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ebx, 0x10
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], ebx
jb 0x4c89be
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x4c89f4
push str.SynCom32.dll.manifest
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
mov ebx, 0x30
cmp dword [eax + 0x14], 8
jb 0x4c89e8
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x4c89f8
mov byte [ebp - 0xd], 0
test bl, 0x20
je 0x4c8a25
and ebx, 0xffffffdf
cmp dword [ebp - 0x34], 8
jb 0x4c8a11
push dword [ebp - 0x48]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 2
test bl, 0x10
je 0x4c8a45
and ebx, 0xffffffef
cmp dword [ebp - 0x1c], 8
jb 0x4c8a45
push dword [ebp - 0x30]
call fcn.004cf489
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x4c8a9a
push str.SynCom32.dll.manifest
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4c8a68
mov eax, dword [eax]
push eax
push 0x517dd8
push 0x104
push str._N_A_
call fcn.004d7de9
add esp, 0x10
cmp dword [ebp - 0x1c], 8
jb 0x4c8b6b
push dword [ebp - 0x30]
call fcn.004cf489
add esp, 4
jmp 0x4c8b6b
cmp dword [ebp - 0x14], 0
jne 0x4c8afe
push str.SynCom.dll
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 0x40
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x18], ebx
jb 0x4c8ac7
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x4c8afe
push 0x535768
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 0x80
cmp dword [eax + 0x14], 8
jb 0x4c8af2
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x4c8b02
mov byte [ebp - 0xd], 0
test bl, bl
jns 0x4c8b14
lea ecx, [ebp - 0x30]
and ebx, 0xffffff7f
call fcn.004090f0
mov dword [ebp - 4], 2
test bl, 0x40
je 0x4c8b28
lea ecx, [ebp - 0x48]
call fcn.004090f0
cmp byte [ebp - 0xd], 0
je 0x4c8b6b
push 0x535768
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414540
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4c8b4b
mov eax, dword [eax]
push eax
push 0x517dd8
push 0x104
push str._N_A_
call fcn.004d7de9
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.004090f0
test byte [0x652fc0], 2
pop esi
je 0x4c8b8e
push str._N_A_
push str.ManifestFile___s_n
push 2
push str.GetSynComLocalManifestFilename
call fcn.004cb410
add esp, 0x10
cmp dword [ebp - 0x4c], 8
jb 0x4c8b9f
push dword [ebp - 0x60]
call fcn.004cf489
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, str._N_A_
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret