Function at 0x47fa40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7b28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4f4fa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x4d5da0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0xffffffffffffffff
push 0x400
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], 0
call sub.mfc140u.dll_CByteArray::SetSize
lea eax, [edi + 0x2c]
push 0x4d5da0
mov ecx, eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [eax + 8]
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
test esi, esi
jne 0x47fb1d
push str.FileNameIsEmpty
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 8]
push 0
push eax
mov dword [ebp - 4], 2
call fcn.00476c40
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
test esi, esi
jne 0x47fb8a
push str.FileIsNothing
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 3
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 8]
lea esi, [edi + 8]
push esi
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea ecx, [ebp - 0x10]
mov dword [edi + 0xc], eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x47fb09
push 0xffffffffffffffff
add eax, eax
lea ecx, [edi + 0x10]
push eax
call sub.mfc140u.dll_CByteArray::SetSize
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [eax + 8]
push dword [edi + 0x14]
push dword [edi + 0xc]
push dword [esi]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x47fc27
push str.GetFileVersionInfo_....._0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 4
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4da434
push dword [edi + 0x14]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x47fc7d
push str.VerQueryValue_..._VarFileInfoTranslation_...__....._0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 5
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
jne 0x47fcc0
push str.VerQueryValue_..._VarFileInfoTranslation_...___Length_Buffer_....._0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 4], 6
call dword [eax + 0x44]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
xor esi, esi
mov dword [ebp - 4], 7
test dword [ebp - 0x14], 0xfffffffe
jbe 0x47fd28
mov edi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__24]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
movzx eax, word [eax + esi*2]
push eax
lea eax, [ebp - 0x10]
push str._04X
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_3]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x14]
inc esi
shr eax, 1
cmp esi, eax
jb 0x47fce1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push str.StringFileInfo_
push eax
call fcn.00466510
push 0x4d6bf0
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call fcn.00466470
add esp, 0x18
mov ecx, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret