Function at 0x48e740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
mov esi, ecx
push 0
push eax
call fcn.004a73c0
add esp, 0xc
mov dword [esi], 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48e7b9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48e7b9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_1
push eax
call fcn.004bba2f
add esp, 0xc
test eax, eax
jne 0x48e7db
or dword [esi], 1
jmp 0x48e83f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_2
push eax
call fcn.004bba2f
add esp, 0xc
test eax, eax
jne 0x48e7fd
or dword [esi], 2
jmp 0x48e83f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_3
push eax
call fcn.004bba2f
add esp, 0xc
test eax, eax
jne 0x48e81f
or dword [esi], 3
jmp 0x48e83f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_4
push eax
call fcn.004bba2f
add esp, 0xc
test eax, eax
jne 0x48e83f
or dword [esi], 4
shl dword [esi], 0x10
call fcn.0048e680
test eax, eax
je 0x48e862
or dword [esi], 0xb
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
call fcn.0048e5d0
test eax, eax
je 0x48e8cb
cmp dword [ebp - 0x110], 2
jne 0x48e7a8
cmp dword [ebp - 0x11c], 6
jne 0x48e7a8
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48e8a7
or dword [esi], 0xa
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x48e907
test eax, eax
jne 0x48e7a8
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x48ea5a
sub eax, 1
je 0x48ea0c
sub eax, 1
jne 0x48ea5a
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x48e93d
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x48e890
cmp eax, 1
jne 0x48e91e
or dword [esi], 9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x48ea5a
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x48e99a
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48e964
or dword [esi], 7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x48e97b
or dword [esi], 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x48ea5a
or dword [esi], 5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x48ea5a
or dword [esi], 4
cmp eax, 4
jne 0x48ea5a
lea eax, [ebp - 0x10c]
push str.Service_Pack_6
push eax
call fcn.004aa58e
add esp, 8
test eax, eax
jne 0x48ea5a
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x48ea5a
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x48ea36
or dword [esi], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x48ea52
or dword [esi], 2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x48ea5a
or dword [esi], 3
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret