Function at 0x4cac9e
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x5c655f
call fcn.00542a0f
mov esi, ecx
test esi, esi
je 0x4caf11
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4caf11
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.00446376
pop ecx
push 8
pop edi
test al, al
je 0x4caed1
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.00409240
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x4cad55
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.00407f20
jmp 0x4cadd6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4cadd6
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 0x4cad93
cmp dx, ax
je 0x4cad93
push 0x5fb124
lea ecx, [ebp - 0x50]
call fcn.00409b6d
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 0x4cadae
cmp word [ebp - 0x58], ax
jne 0x4cadb1
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.00409b94
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x4cae15
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
cmp eax, 0x1000
jb 0x4cae0c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.00541bf5
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 0x4cae39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4caec7
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4cae51
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4caebe
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 0x4caf0d
mov ecx, dword [ebp - 0x50]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
cmp eax, 0x1000
jb 0x4caf04
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x58]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
mov eax, ebx
jmp 0x4caf13
xor eax, eax
call fcn.005429be
ret