Function at 0x405210
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e7d6
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 0x405248
cmp dword [esi + 0x1c], ebx
jne 0x405556
mov eax, dword [esp + 0x134]
push 0x104
cmp eax, ebx
jne 0x405266
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x405275
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 fcn.0041d8a2
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 0x4052b0
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.00405140
jmp 0x405556
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4052c3
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 0x40536e
mov edx, dword [esi + 4]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4282a4
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40536e
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 0x405353
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 0x40536e
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 0x4054f4
cmp dword [esi + 4], ebx
je 0x4054f4
push 0x4b0
push 0x409
push str.Comments
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x54]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.CompanyName
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x50]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.FileDescription
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x4c]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.FileVersion
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x48]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.InternalName
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x44]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.LegalCopyright
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x40]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.LegalTrademarks
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x3c]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.OriginalFilename
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x38]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.ProductName
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x34]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.ProductVersion
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x30]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.PrivateBuild
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x2c]
call fcn.0041d8a2
push 0x4b0
push 0x409
push str.SpecialBuild
mov ecx, esi
call fcn.00405580
push eax
lea ecx, [esi + 0x28]
call fcn.0041d8a2
mov ecx, dword [esi + 0x28]
add esi, 0x28
cmp dword [ecx - 8], ebx
je 0x405556
push 0x428118
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 sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call fcn.0041d8b4
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8