Function at 0x411020
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b126
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 0x411058
cmp dword [esi + 0x1c], ebx
jne 0x411363
mov eax, dword [esp + 0x134]
cmp eax, ebx
jne 0x411076
lea ecx, [esp + 0x20]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x411082
lea edx, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x20]
lea ecx, [esi + 0x24]
push eax
call fcn.00428fc8
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 0x4110bd
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.00410f50
jmp 0x411363
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4110d0
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 0x41117b
mov edx, dword [esi + 4]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4376dc
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41117b
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 0x411160
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 0x41117b
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 0x411301
cmp dword [esi + 4], ebx
je 0x411301
push 0x4b0
push 0x409
push str.Comments
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x54]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.CompanyName
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x50]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.FileDescription
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x4c]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.FileVersion
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x48]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.InternalName
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x44]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.LegalCopyright
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x40]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.LegalTrademarks
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x3c]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.OriginalFilename
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x38]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.ProductName
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x34]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.ProductVersion
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x30]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.PrivateBuild
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x2c]
call fcn.00428fc8
push 0x4b0
push 0x409
push str.SpecialBuild
mov ecx, esi
call fcn.00411390
push eax
lea ecx, [esi + 0x28]
call fcn.00428fc8
mov ecx, dword [esi + 0x28]
add esi, 0x28
cmp dword [ecx - 8], ebx
je 0x411363
push 0x437510
lea edx, [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x134], ebx
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call fcn.00428ee4
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00428ee4
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8