Function at 0x409c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x308
mov eax, dword [0x450068]
xor eax, esp
mov dword [esp + 0x304], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push 0x30
lea eax, [esp + 0x64]
mov dword [esp + 0x14], esi
push edi
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
movaps xmmword [esp + 0x3c], xmm0
movaps xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], edi
call fcn.0041d060
push 0x54
lea eax, [esp + 0x2c0]
mov dword [esp + 0xa0], 0xaac56b
push edi
push eax
mov dword [esp + 0xac], 0x11d0cd44
mov dword [esp + 0xb0], 0xc000c28c
mov dword [esp + 0xb4], 0xee95c24f
call fcn.0041d060
add esp, 0x18
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x409d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
lea eax, [ecx*2 - 1]
pop edi
pop esi
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x409dff
push 0
push 0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
test eax, eax
je 0x409fe4
push dword [esp + 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x409fe4
push 0
push edi
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
test eax, eax
je 0x409fe4
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x30]
push edi
push dword [esp + 0x34]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x409e0b
push eax
push dword [esp + 0x28]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a00c
cmp dword [0x452110], 0
je 0x409f99
push 0x208
lea eax, [esp + 0xa8]
push 0
push eax
call fcn.0041d060
add esp, 0xc
mov dword [esp + 0xa0], 0x20c
lea eax, [esp + 0xa0]
push 0
push eax
push dword [esp + 0x34]
call dword [sym.imp.WINTRUST.dll_CryptCATCatalogInfoFromContext]
test eax, eax
je 0x409f95
lea eax, [esp + 0xa4]
mov dword [esp + 0x30], 0x24
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2b0]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x4c], edi
push eax
push 0
mov dword [esp + 0x94], 0x1000
mov dword [esp + 0x78], 2
mov dword [esp + 0x80], 2
mov dword [esp + 0x88], 1
mov dword [esp + 0x6c], 0x30
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x409f78
cmp ecx, 0xffffffff
je 0x409f78
push ecx
call dword [sym.imp.WINTRUST.dll_WTHelperProvDataFromStateData]
push 0
push 0
push 0
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvSignerFromChain]
push 0
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
push 0
push 0
push 0
mov eax, dword [eax + 4]
push 0
push 4
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x409f40
push str.Unknown
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x409f78
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0x10]
mov esi, eax
push esi
push 0
push 0
push 4
push dword [esp + 0x30]
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x60]
mov dword [esp + 0x7c], 2
push eax
lea eax, [esp + 0x94]
push eax
push 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov eax, dword [esp + 0x2c]
push 0
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push 0
push dword [esp + 0x28]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8
push 0
push dword [esp + 0x28]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40a00c
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x30c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8