Function at 0x48f840
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.004a83c0
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 0x48f8b9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48f8b9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_1
push eax
call fcn.004bca93
add esp, 0xc
test eax, eax
jne 0x48f8db
or dword [esi], 1
jmp 0x48f93f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_2
push eax
call fcn.004bca93
add esp, 0xc
test eax, eax
jne 0x48f8fd
or dword [esi], 2
jmp 0x48f93f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_3
push eax
call fcn.004bca93
add esp, 0xc
test eax, eax
jne 0x48f91f
or dword [esi], 3
jmp 0x48f93f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_4
push eax
call fcn.004bca93
add esp, 0xc
test eax, eax
jne 0x48f93f
or dword [esi], 4
shl dword [esi], 0x10
call fcn.0048f780
test eax, eax
je 0x48f962
or dword [esi], 0xb
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
call fcn.0048f6d0
test eax, eax
je 0x48f9cb
cmp dword [ebp - 0x110], 2
jne 0x48f8a8
cmp dword [ebp - 0x11c], 6
jne 0x48f8a8
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48f9a7
or dword [esi], 0xa
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x48fa07
test eax, eax
jne 0x48f8a8
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x48fb5a
sub eax, 1
je 0x48fb0c
sub eax, 1
jne 0x48fb5a
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x48fa3d
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x48f990
cmp eax, 1
jne 0x48fa1e
or dword [esi], 9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x48fb5a
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x48fa9a
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48fa64
or dword [esi], 7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x48fa7b
or dword [esi], 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x48fb5a
or dword [esi], 5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x48fb5a
or dword [esi], 4
cmp eax, 4
jne 0x48fb5a
lea eax, [ebp - 0x10c]
push str.Service_Pack_6
push eax
call fcn.004ab57d
add esp, 8
test eax, eax
jne 0x48fb5a
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.004a578d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x48fb5a
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x48fb36
or dword [esi], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x48fb52
or dword [esi], 2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x48fb5a
or dword [esi], 3
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret