Function at 0x4d5040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x500010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
call fcn.004cf990
xor ebp, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x84]
lea edx, [esp + 0x14]
push edx
push str.InstalledAppInfo
mov ecx, ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], 0x10
call eax
cmp eax, ebp
jl 0x4d5166
cmp dword [esp + 0x38], ebp
jbe 0x4d5166
mov edx, dword [ebx]
mov edx, dword [edx + 0x84]
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push str.InstalledAppData
mov ecx, ebx
mov dword [esp + 0x1c], esi
call edx
cmp eax, esi
jge 0x4d5115
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jbe 0x4d5111
push ecx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x84]
push ebp
lea ecx, [esp + 0x14]
push ecx
push str.InstalledAppData
mov ecx, ebx
call edx
cmp eax, esi
jl 0x4d5159
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
xor edx, edx
div ecx
mov edx, dword [esp + 0x38]
cmp edx, eax
jne 0x4d5159
cmp ecx, 0x414
jne 0x4d5159
cmp edx, esi
jbe 0x4d5159
mov edi, ebp
jmp 0x4d5140
push edi
lea ecx, [esp + 0x30]
call fcn.004cc000
add esi, 1
add edi, 0x414
cmp esi, dword [esp + 0x38]
jb 0x4d5140
test ebp, ebp
je 0x4d5166
push ebp
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
lea eax, [ebx + 0xd4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00447b00
mov eax, dword [ebx + 0x118]
mov esi, dword [eax]
lea edi, [ebx + 0x114]
mov byte [esp + 0x54], 1
lea esp, [esp]
cmp edi, edi
mov ebp, dword [edi + 4]
je 0x4d519d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x4d51cb
cmp esi, dword [edi + 4]
jne 0x4d51ac
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 8]
cmp dword [eax + 0x64], 2
jne 0x4d51bc
mov dword [eax + 0x64], 0
cmp esi, dword [edi + 4]
jne 0x4d51c7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
jmp 0x4d5190
cmp dword [esp + 0x34], 0
jbe 0x4d53ea
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx]
lea esp, [esp]
cmp edi, dword [esp + 0x30]
je 0x4d53ea
lea esi, [edi + 0x214]
push esi
call fcn.004f6840
add esp, 4
test eax, eax
je 0x4d52ce
cmp edi, dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x4d520f
call esi
cmp edi, dword [esp + 0x30]
lea ebp, [edi + 8]
jne 0x4d521a
call esi
mov eax, dword [ebp]
lea edx, [ebp + 0x20c]
push edx
push eax
push str.TEST_QMIsFileExist_existed__id___d___s
call fcn.004acb00
add esp, 0xc
cmp edi, dword [esp + 0x30]
jne 0x4d523a
call esi
push ebp
lea ecx, [esp + 0x20]
lea esi, [ebx + 0x168]
push ecx
mov ecx, esi
call fcn.004e0090
mov ebp, dword [esp + 0x1c]
test ebp, ebp
mov ebx, dword [esi + 4]
je 0x4d525c
cmp ebp, esi
je 0x4d5262
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4d53d3
test ebp, ebp
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x4d527a
call ebx
cmp esi, dword [ebp + 4]
jne 0x4d5281
call ebx
mov esi, dword [esi + 0x10]
mov dword [esi + 0x64], 2
cmp edi, dword [esp + 0x30]
jne 0x4d5293
call ebx
lea eax, [edi + 0x214]
push eax
lea ecx, [esi + 0x68]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esi + 0xa8], 0
je 0x4d53d3
cmp edi, dword [esp + 0x30]
jne 0x4d52bc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [edi + 0xc]
push edx
lea ecx, [esi + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x4d53d3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x4d53d3
call fcn.004ddf80
cmp edi, dword [esp + 0x30]
jne 0x4d52f0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
call fcn.004f6840
add esp, 4
test eax, eax
je 0x4d53ce
cmp edi, dword [esp + 0x30]
jne 0x4d530d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x30]
lea ebp, [edi + 8]
jne 0x4d531c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp]
lea eax, [ebp + 0x20c]
push eax
push ecx
call ebx
push eax
push str.TEST_AuthorityAPI__success:_d__id___d___s
call fcn.004acb00
add esp, 0x10
cmp edi, dword [esp + 0x30]
jne 0x4d5343
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x28]
add esi, 0x168
push edx
mov ecx, esi
call fcn.004e0090
mov ebp, dword [esp + 0x24]
test ebp, ebp
mov ebx, dword [esi + 4]
je 0x4d5369
cmp ebp, esi
je 0x4d536f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x4d53ce
test ebp, ebp
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x4d5383
call ebx
cmp esi, dword [ebp + 4]
jne 0x4d538a
call ebx
mov esi, dword [esi + 0x10]
mov dword [esi + 0x64], 2
cmp edi, dword [esp + 0x30]
jne 0x4d539c
call ebx
lea eax, [edi + 0x214]
push eax
lea ecx, [esi + 0x68]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esi + 0xa8], 0
je 0x4d53ce
cmp edi, dword [esp + 0x30]
jne 0x4d53c1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
call sub.ADVAPI32.dll_RevertToSelf
cmp edi, dword [esp + 0x30]
jne 0x4d53df
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
mov ebx, dword [esp + 0x14]
jmp 0x4d51e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call fcn.00447b20
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov dword [esp + 0x34], 0
je 0x4d542c
mov esi, dword [eax]
push eax
call sub.MFC80U.DLL_Ordinal_764
mov ecx, dword [esp + 0x34]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4d5417
push ecx
call sub.MFC80U.DLL_Ordinal_764
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret