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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcfce
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor bl, bl
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x110], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], edi
mov byte [ebp - 0x151], bl
mov dword [ebp - 4], 0
jb 0x53fedf
mov eax, dword [esi]
jmp 0x53fee1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x540385
test al, 0x10
jne 0x540385
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movq qword [ebp - 0x11c], xmm0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], 0x10
jb 0x53ff20
mov esi, dword [esi]
push 0x2c
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x11c], esi
push 0
push eax
mov dword [ebp - 0x118], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x150], 0x30
lea eax, [ebp - 0x120]
mov dword [ebp - 0x144], 2
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x13c], 1
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x128], 0x1100
mov dword [ebp - 0x30], 0xaac56b
mov dword [ebp - 0x2c], 0x11d0cd44
mov dword [ebp - 0x28], 0xc000c28c
mov dword [ebp - 0x24], 0xee95c24f
call sub.WINTRUST.dll_WinVerifyTrust
mov esi, eax
test esi, esi
je 0x540116
push 0x98
lea eax, [ebp - 0x10c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10c], 0x608d28
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x110], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x110], eax
lea eax, [ebp - 0x108]
mov ecx, eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 4
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 4
push str.Signature_check_failed:__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x10c]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x5400cb
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x164]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1c]
movq qword [ebp - 0x164], xmm0
push eax
mov byte [ebp - 0x18], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x168]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push dword [ebp - 0x130]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test eax, eax
je 0x540353
push 0
push 0
push 0
push eax
call sub.WINTRUST.dll_WTHelperGetProvSignerFromChain
test eax, eax
je 0x540353
cmp dword [eax + 0xc], 0
je 0x540353
push 0
push eax
call sub.WINTRUST.dll_WTHelperGetProvCertFromChain
mov esi, eax
test esi, esi
je 0x540353
mov eax, dword [esi + 4]
test eax, eax
je 0x540353
cmp dword [eax + 0xc], 0
je 0x540353
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x54020b
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push ecx
push 0
push dword [eax + 8]
push dword [eax + 4]
push 0
push 0x8004
push 0
call dword [sym.imp.CRYPT32.dll_CryptHashCertificate]
push dword [ebp - 0x110]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.0053f9d0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x110]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push edx
mov dword [ebp - 0x110], eax
mov eax, dword [esi + 4]
push ecx
mov byte [ebp - 4], 6
push dword [eax + 8]
push dword [eax + 4]
push 0
push 0x8004
push 0
call dword [sym.imp.CRYPT32.dll_CryptHashCertificate]
test eax, eax
je 0x5401ff
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00431200
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00418b40
cmp dword [ebp - 0x158], 0
je 0x54034b
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.CRYPT32.dll_CertNameToStrW]
push 0
push 0
mov eax, dword [eax + 0xc]
push 3
add eax, 0x30
push eax
push 1
call ebx
test eax, eax
je 0x54034b
push 0
push eax
lea ecx, [ebp - 0x74]
call fcn.004a36d0
push dword [ebp - 0x64]
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
mov eax, dword [esi + 4]
push 3
mov eax, dword [eax + 0xc]
add eax, 0x30
push eax
push 1
call ebx
test eax, eax
je 0x54033f
push 0x2c
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
add esp, 0xc
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 1
push 0
push str.O_s_s___w_.__
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
movq qword [ebp - 0x1c], xmm0
call fcn.0045d8f0
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0053f8a0
add esp, 0x10
cmp al, 1
jne 0x54032f
lea ecx, [ebp - 0x5c]
call fcn.004916f0
test eax, eax
je 0x54032f
push 1
lea ecx, [ebp - 0x5c]
call fcn.004f5c70
cmp byte [eax + 8], 0
je 0x54032f
push 1
lea ecx, [ebp - 0x5c]
call fcn.004f5c70
lea ecx, [ebp - 0x190]
push ecx
mov ecx, eax
call fcn.004917f0
mov ecx, dword [ebp - 0x158]
push eax
call fcn.00421880
lea ecx, [ebp - 0x190]
call fcn.0040a7f0
lea ecx, [ebp - 0x1c]
call fcn.004ac0a0
lea ecx, [ebp - 0x5c]
call fcn.004f52f0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.0040a7f0
mov bl, 1
mov byte [ebp - 0x151], bl
test edi, edi
je 0x540367
test bl, bl
jne 0x540367
push str.Unable_to_get_certificate_serial_number
mov ecx, edi
call fcn.00416e10
lea eax, [ebp - 0x150]
mov dword [ebp - 0x134], 2
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
jmp 0x5403fd
lea eax, [ebp - 0x170]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.file_not_found
xorps xmm0, xmm0
mov byte [ebp - 0x18], 1
push eax
movq qword [ebp - 0x170], xmm0
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x174]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [ebp - 0x15c]
test esi, esi
je 0x5403f1
mov ecx, dword [ebp - 0x178]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
mov ecx, esi
call fcn.00416e10
mov eax, 0x5403f7
ret
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret