Function at 0x461ea0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x48dc0c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x238]
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
call dword [0x497e20]
push 0x1fe
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
mov dword [esp + 0x238], ebx
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x34
cmp esi, ebx
je 0x462082
mov eax, esi
lea edx, [eax + 2]
jmp 0x461f30
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x461f30
sub eax, edx
sar eax, 1
je 0x462082
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x46204d
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
add esp, 4
mov ebp, eax
push ebp
push edi
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46200b
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4984d4
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x461ff2
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push str._d._d._d._d
lea edx, [esp + 0x38]
call fcn.0044b800
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push ebp
call sub.mfc90u.dll_delete
mov ebp, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
jmp 0x4620ad
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1c6
push str.CUseHelpDlg::GetFileVersion
push str._s__d__VerQueryValue_fail_:_ErrorCode__d:_FileName___s
jmp 0x462022
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1cb
push str.CUseHelpDlg::GetFileVersion
push str._s__d__GetFileVersionInfo_fail_:_ErrorCode__d:_FileName___s
push 1
mov ebx, str.Exception.log
call fcn.0045b510
add esp, 0x18
push ebp
call sub.mfc90u.dll_delete
mov ebp, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
jmp 0x4620ad
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1d1
push str.CUseHelpDlg::GetFileVersion
push str._s__d__GetFileVersionInfoSize_fail_:_ErrorCode__d:_FileName___s
push 1
mov ebx, str.Exception.log
call fcn.0045b510
add esp, 0x18
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
jmp 0x4620ad
push 0x1b3
push str.CUseHelpDlg::GetFileVersion
push str._s__d__GetFileVersion:_FileName_is_null
push 1
mov ebx, str.Exception.log
call fcn.0045b510
add esp, 0x10
push 0x4987c8
mov ecx, ebp
call dword [0x497c80]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebp
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x224
ret 4