Function at 0x413170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bed4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4498ec]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], 0
call dword [sym.imp.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__]
add esp, 4
test al, al
jne 0x4131d3
push 0
push 0x4306c0
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebx], eax
jmp 0x4134e2
lea ecx, [ebp - 0x40]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x4131f7
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edx, 8
jb 0x413242
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413238
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00427b27
add esp, 8
push edi
call fcn.00427fba
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x48]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x41326a
mov eax, dword [eax]
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x4132b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4132ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4132ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00427b27
add esp, 8
test esi, esi
je 0x4134c4
push 1
push 0x435034
mov dword [ebp - 0x30], 0
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x4132f0
mov eax, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x41333d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413333
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413333
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00427b27
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
test esi, esi
je 0x4134c4
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::number_unsigned_long_int__int_]
push 0xa
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
call edi
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x64]
push 0xa
mov byte [ebp - 4], 2
movzx ecx, word [ecx + 0xe]
push ecx
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x60]
push 0xa
mov byte [ebp - 4], 3
movzx ecx, word [ecx + 8]
push ecx
push eax
call edi
mov esi, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x5c]
push 0xa
mov byte [ebp - 4], 4
movzx ecx, word [ecx + 0xa]
push ecx
push eax
call edi
push 0x435038
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
call fcn.00405320
add esp, 0x3c
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push esi
mov esi, dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_class_QString_const__]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], 2
call esi
push 0x435038
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00405320
add esp, 0xc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 6
call esi
push 0x435038
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405320
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], 0xe
call esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x50]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x34]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x64]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x44]
push edi
call fcn.00427fc3
add esp, 4
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString__]
lea ecx, [ebp - 0x40]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, ebx
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.00427b35
mov esp, ebp
pop ebp
ret