Function at 0x4019b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b959
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.004023e0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401a27
push 0x40d4c0
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x74]
or ecx, 1
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x401b9d
mov edx, dword [ebp - 0x18]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.004023e0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401a9a
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x40d4bc
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x74]
or al, 1
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x401b9d
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0x40d4b8
mov eax, dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401af4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x40d4bc
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x74]
or al, 1
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x401b9d
push 0x34
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x5c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x50]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x50]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x54]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x54]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
push edx
push str._u._u._u._u
lea eax, [ebp - 0x60]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040af78
mov edx, dword [ebp - 0x74]
or edx, 1
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
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