Function at 0x40ba8a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0x60], 0xaac56b
lea edi, [esp + 0x18]
mov dword [esp + 0x64], 0x11d0cd44
stosd dword es:[edi], eax
mov ebx, ecx
push 0x34
xor ecx, ecx
mov dword [esp + 0x6c], 0xc000c28c
mov esi, ecx
mov dword [esp + 0x14], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x70], 0xee95c24f
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x30]
pop edi
push edi
push ecx
push eax
call fcn.0059de40
mov eax, 0x104
push eax
push ebx
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005e2710
and dword [esp + 0x40], esi
lea eax, [esp + 0xb0]
and dword [esp + 0x5c], esi
add esp, 0x20
mov dword [esp + 0x1c], eax
xor ecx, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
inc ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], 0x10
push eax
push 0xffffffffffffffff
mov dword [esp + 0x44], 2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], 0x200
call edi
test eax, eax
jne 0x40bbcb
push dword [esp + 0x4c]
call dword [sym.imp.WINTRUST.dll_WTHelperProvDataFromStateData]
test eax, eax
je 0x40bbcb
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvSignerFromChain]
test eax, eax
je 0x40bbcb
push esi
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
test eax, eax
je 0x40bbcb
mov ecx, dword [eax + 4]
lea eax, [esp + 0x70]
push eax
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
call fcn.0046a73f
mov edx, 0x69a120
xor ecx, ecx
mov eax, dword [edx + ecx*4]
lea edi, [esp + 0x70]
cmp eax, dword [edi + ecx*4]
mov edi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
jne 0x40bbc0
inc ecx
cmp ecx, 8
jne 0x40bba5
xor esi, esi
inc esi
add edx, 0x20
cmp edx, str.Microsoft_Platform_Crypto_Provider
jl 0x40bba3
push 2
pop eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
push 0xffffffffffffffff
call edi
test esi, esi
je 0x40bc7d
mov esi, 0x76d080
push esi
push 0x10000
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40bc49
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0x6b5078
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40bc49
mov edx, dword [esp + 0x14]
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 0x40bc49
xor eax, eax
cmp ecx, 1
sete al
jmp 0x40bc7f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0
push 0x7b
mov edx, str...meshcore_signcheck.c
mov ecx, 0x6b5094
call fcn.0047145c
add esp, 0xc
call esi
push eax
push str.BAD_ARCH_CHECK
push 0x6b50b4
call fcn.004010b4
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret