Function at 0x40c3a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
mov eax, dword [0x6019e4]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
push edi
xor esi, esi
mov dword [esp + 0x70], 0xaac56b
push 0x34
lea eax, [esp + 0x40]
mov dword [esp + 0x18], esi
mov edi, ecx
mov dword [esp + 0x20], esi
xorps xmm0, xmm0
mov dword [esp + 0x1c], edi
push esi
push eax
mov dword [esp + 0x80], 0x11d0cd44
mov dword [esp + 0x84], 0xc000c28c
mov dword [esp + 0x88], 0xee95c24f
movaps xmmword [esp + 0x2c], xmm0
call fcn.00587250
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x104
push edi
push 0x104
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00592b44
lea eax, [esp + 0xb4]
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], eax
add esp, 0x14
lea eax, [esp + 0x20]
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x34
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x4c], 2
push eax
push 0xffffffffffffffff
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], 0x200
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test eax, eax
jne 0x40c51f
push dword [esp + 0x5c]
call dword [sym.imp.WINTRUST.dll_WTHelperProvDataFromStateData]
test eax, eax
je 0x40c51f
push esi
push esi
push esi
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvSignerFromChain]
test eax, eax
je 0x40c51f
push esi
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
test eax, eax
je 0x40c51f
mov ecx, dword [eax + 4]
lea eax, [esp + 0x80]
push eax
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
call fcn.004ad180
mov edi, 0x5ed2e0
nop word [eax + eax]
mov edx, edi
lea eax, [esp + 0x80]
mov esi, 0x1c
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40c508
add edx, 4
add eax, 4
sub esi, 4
jae 0x40c4f0
mov esi, 1
jmp 0x40c50c
mov esi, dword [esp + 0x14]
add edi, 0x20
mov dword [esp + 0x14], esi
cmp edi, str.Microsoft_Platform_Crypto_Provider
jl 0x40c4e0
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], 2
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x5c], 2
push eax
push 0xffffffffffffffff
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test esi, esi
je 0x40c5ef
push 0x62d420
push 0x10000
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40c5bb
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x6050d8
push 0x62d420
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40c5bb
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0xa]
imul ecx, eax, 0x64
movzx eax, word [edx + 8]
add ecx, eax
movzx eax, word [edx + 0xe]
imul ecx, ecx, 0x64
add ecx, eax
cmp word [edx + 0xc], 3
jne 0x40c5bb
xor eax, eax
cmp ecx, 1
sete al
pop edi
pop esi
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0
push 0x7b
mov edx, str...meshcore_signcheck.c
mov ecx, 0x6050f4
call fcn.004b4f80
add esp, 0xc
call esi
push eax
push str.BAD_ARCH_CHECK
push 0x605114
call fcn.004010e0
add esp, 0xc
mov ecx, dword [esp + 0x2ac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret