Function at 0x413050
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4256bd
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4132e0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x410]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4132d6
lea eax, [ebp - 0x428]
mov dword [ebp - 0x42c], 0
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x428], 0
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x428], 0
jbe 0x4132d6
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x41c]
mov esi, dword [eax]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
movzx eax, si
push eax
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 3
push str.000_x
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
add esp, 0xc
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x414]
push 4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
shr esi, 0x10
lea eax, [ebp - 0x414]
push esi
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
push str.000_x
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x414]
push 4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 5
call dword [0x42798c]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x434], 0
push str.StringFileInfo_sFileVersion
push eax
mov dword [ebp - 0x430], 0
call esi
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
cmp dword [ebp - 0x430], 0
jbe 0x4132ae
push dword [ebp - 0x434]
lea eax, [ebp - 0x420]
push str.Unisoc_MES__s
push eax
call esi
add esp, 0xc
mov ecx, ebx
push dword [ebp - 0x420]
call dword [sym.imp.mfc140u.dll_CWnd::SetWindowTextW]
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x4132ed
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push str.Unisoc_MES
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CWnd::SetWindowTextW]
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret