Function at 0x40b5d0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x411c57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
push str.Help_Request
lea ecx, [esp + 8]
mov esi, eax
call fcn.004105a4
mov eax, dword [0x418b6c]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x40b664
push str._Help_request
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
test esi, esi
je 0x40b7bf
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40b7b4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.StringFileInfo040904b0ProductName
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x418a3c
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b7b4
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push 0x417d60
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b7b4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b7b4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], 3
test eax, eax
je 0x40b6ff
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
push edx
push eax
call fcn.0040b810
add esp, 8
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
xor edx, edx
mov byte [esp + 0x30], 4
mov dx, word [eax + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [esp + 0x20]
shr edx, 0x10
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_v_d._d_s__build__d_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b7a6
jge 0x40b785
push str._DEMO
lea ecx, [esp + 0xc]
call fcn.0041058c
jmp 0x40b7a6
push eax
lea eax, [esp + 0x10]
push str.___d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov esi, dword [esp + 0x34]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret