Function at 0x40a6e0
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430ce6
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x20]
mov eax, dword [eax - 8]
cmp eax, ebx
jle 0x40a718
cmp dword [esi + 0x1c], ebx
jne 0x40aa26
mov eax, dword [esp + 0x134]
push 0x104
cmp eax, ebx
jne 0x40a736
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40a745
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esi + 0x24]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x40a780
mov ecx, esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
call fcn.0040a610
jmp 0x40aa26
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40a793
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 8]
add esp, 4
lea edx, [esp + 0x20]
mov dword [esi + 4], eax
push eax
push ecx
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a83e
mov edx, dword [esi + 4]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x43f2ac
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a83e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov dword [esi + 0x14], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x138]
and eax, 0xffff
cmp ecx, ebx
mov dword [esi + 0x18], eax
je 0x40a823
mov eax, dword [esi + 0xc]
push edx
push eax
push str.__d._d
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x40a83e
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
push str.__d._d._d._d
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x18
cmp dword [esi + 8], ebx
je 0x40a9c4
cmp dword [esi + 4], ebx
je 0x40a9c4
push 0x4b0
push 0x409
push str.Comments
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x54]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.CompanyName
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x50]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.FileDescription
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x4c]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.FileVersion
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.InternalName
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.LegalCopyright
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x40]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.LegalTrademarks
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x3c]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.OriginalFilename
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.ProductName
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.ProductVersion
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.PrivateBuild
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::operator_1
push 0x4b0
push 0x409
push str.SpecialBuild
mov ecx, esi
call fcn.0040aa60
push eax
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x28]
add esi, 0x28
cmp dword [ecx - 8], ebx
je 0x40aa26
push 0x43f114
lea edx, [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_operator_1
push esi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x134], ebx
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, edi
mov byte [esp + 0x130], 1
call fcn.0042f37e
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8