Function at 0x40c570
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8f4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x44fcc8]
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 - 0x34], 0
call dword [sym.imp.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__]
add esp, 4
test al, al
jne 0x40c5d3
push 0
push 0x4343f8
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 0x40c8dc
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 0x40c5f7
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 0x40c642
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c638
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042b5f2
add esp, 8
push edi
call fcn.0042bbd0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
mov ecx, esi
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 0x40c664
mov eax, dword [eax]
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x48]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x40c6af
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c6a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c6a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042b5f2
add esp, 8
test esi, esi
je 0x40c8be
push 1
push 0x4360e8
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 0x40c6ea
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 0x40c737
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c72d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c72d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042b5f2
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 0x40c8be
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 0x435970
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
call fcn.00402860
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 - 0x34], 2
call esi
push 0x435970
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00402860
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], 6
call esi
push 0x435970
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00402860
add esp, 0xc
push eax
lea ecx, [ebp - 0x38]
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 - 0x38]
mov dword [ebp - 0x34], 0xe
call esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
lea ecx, [ebp - 0x38]
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 - 0x3c]
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.0042bbd9
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.0042b600
mov esp, ebp
pop ebp
ret