Function at 0x40fd2c
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426f66
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 0x40fd48
cmp dword [esi + 0x1c], ebx
jne 0x410053
mov eax, dword [esp + 0x134]
cmp eax, ebx
jne 0x40fd66
lea ecx, [esp + 0x20]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40fd72
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.00425078
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 0x40fdad
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.0040fc40
jmp 0x410053
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40fdc0
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 0x40fe6b
mov edx, dword [esi + 4]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x43149c
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40fe6b
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 0x40fe50
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 0x40fe6b
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 0x40fff1
cmp dword [esi + 4], ebx
je 0x40fff1
push 0x4b0
push 0x409
push 0x431488
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x54]
call fcn.00425078
push 0x4b0
push 0x409
push 0x43147c
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x50]
call fcn.00425078
push 0x4b0
push 0x409
push 0x43146c
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x4c]
call fcn.00425078
push 0x4b0
push 0x409
push 0x431460
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x48]
call fcn.00425078
push 0x4b0
push 0x409
push 0x431450
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x44]
call fcn.00425078
push 0x4b0
push 0x409
push 0x431440
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x40]
call fcn.00425078
push 0x4b0
push 0x409
push str.LegalTrademarks
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x3c]
call fcn.00425078
push 0x4b0
push 0x409
push 0x43141c
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x38]
call fcn.00425078
push 0x4b0
push 0x409
push 0x431410
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x34]
call fcn.00425078
push 0x4b0
push 0x409
push 0x431400
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x30]
call fcn.00425078
push 0x4b0
push 0x409
push str.PrivateBuild
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x2c]
call fcn.00425078
push 0x4b0
push 0x409
push str.SpecialBuild
mov ecx, esi
call fcn.00410080
push eax
lea ecx, [esi + 0x28]
call fcn.00425078
mov ecx, dword [esi + 0x28]
add esi, 0x28
cmp dword [ecx - 8], ebx
je 0x410053
push 0x4312d0
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.00424f94
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00424f94
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8