Function at 0x4f4c0a
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x5dcbff
call fcn.0056d43d
mov esi, ecx
test esi, esi
je 0x4f4e7d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f4e7d
xor ebx, ebx
mov dword [ebp - 0x38], 0xaac56b
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x34], 0x11d0cd44
mov dword [ebp - 0x30], 0xc000c28c
mov dword [ebp - 0x2c], 0xee95c24f
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0044610e
pop ecx
push 8
pop edi
test al, al
je 0x4f4e3d
xor eax, eax
mov dword [ebp - 0x28], ebx
push str.Wintrust.dll
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408fe7
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x4f4cc1
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
call fcn.00407cc7
jmp 0x4f4d42
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4f4d42
cmp dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
push 0x5c
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], 0x2f
movzx eax, word [eax + edx*2 - 2]
pop edx
mov dword [ebp - 0x58], edx
cmp word [ebp - 0x54], ax
je 0x4f4cff
cmp dx, ax
je 0x4f4cff
push 0x60db0c
lea ecx, [ebp - 0x50]
call fcn.00409914
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
mov edx, ebx
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax]
cmp word [ebp - 0x54], ax
je 0x4f4d1a
cmp word [ebp - 0x58], ax
jne 0x4f4d1d
xor edx, edx
inc edx
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea eax, [eax + edx*2]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040993b
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x4f4d81
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
cmp eax, 0x1000
jb 0x4f4d78
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
cmp dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x4f4da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4f4e33
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4f4dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f4e2a
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x64], esi
push ecx
push ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x9c], 0x34
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 0x100
mov dword [ebp - 0x70], ebx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
push 8
sete bl
pop edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jb 0x4f4e79
mov ecx, dword [ebp - 0x50]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
cmp eax, 0x1000
jb 0x4f4e70
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x58]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
mov eax, ebx
jmp 0x4f4e7f
xor eax, eax
call fcn.0056d3ec
ret