Function at 0x402540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f7de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ea08
push 0x410658
lea ecx, [ebp - 0x20]
call fcn.0040e9d2
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], 0x34
push 0
lea ecx, [ebp - 0x14]
call fcn.00401a60
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4028d9
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.00401a60
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4028c7
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x410b24
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4028c7
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
push 0x410b20
lea ecx, [ebp - 0x2c]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0x410b20
lea ecx, [ebp - 0x30]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
push 0x410b20
lea ecx, [ebp - 0x34]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0xc]
push eax
push 0x410b20
lea ecx, [ebp - 0x38]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x410b1c
lea edx, [ebp - 0x30]
push edx
call fcn.00403040
and eax, 0xff
test eax, eax
je 0x402756
push 0x410b1c
lea eax, [ebp - 0x34]
push eax
call fcn.00403040
and eax, 0xff
test eax, eax
je 0x402756
lea ecx, [ebp - 0x38]
push ecx
push 0x410b18
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x40]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x44]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x74]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040ea08
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
jmp 0x402897
lea eax, [ebp - 0x38]
push eax
push 0x410b18
lea ecx, [ebp - 0x34]
push ecx
push 0x410b18
lea edx, [ebp - 0x30]
push edx
push 0x410b18
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x50]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x54]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x58]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ea08
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8