Function at 0x48fd70
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.004a8960
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 0x48fde9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48fde9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_1
push eax
call fcn.004bd093
add esp, 0xc
test eax, eax
jne 0x48fe0b
or dword [esi], 1
jmp 0x48fe6f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_2
push eax
call fcn.004bd093
add esp, 0xc
test eax, eax
jne 0x48fe2d
or dword [esi], 2
jmp 0x48fe6f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_3
push eax
call fcn.004bd093
add esp, 0xc
test eax, eax
jne 0x48fe4f
or dword [esi], 3
jmp 0x48fe6f
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_4
push eax
call fcn.004bd093
add esp, 0xc
test eax, eax
jne 0x48fe6f
or dword [esi], 4
shl dword [esi], 0x10
call fcn.0048fca0
test eax, eax
je 0x48fe92
or dword [esi], 0xb
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
call fcn.0048fbf0
test eax, eax
je 0x48fefb
cmp dword [ebp - 0x110], 2
jne 0x48fdd8
cmp dword [ebp - 0x11c], 6
jne 0x48fdd8
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48fed7
or dword [esi], 0xa
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x48ff37
test eax, eax
jne 0x48fdd8
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x49008a
sub eax, 1
je 0x49003c
sub eax, 1
jne 0x49008a
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x48ff6d
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x48fec0
cmp eax, 1
jne 0x48ff4e
or dword [esi], 9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x49008a
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x48ffca
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x48ff94
or dword [esi], 7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x48ffab
or dword [esi], 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x49008a
or dword [esi], 5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x49008a
or dword [esi], 4
cmp eax, 4
jne 0x49008a
lea eax, [ebp - 0x10c]
push str.Service_Pack_6
push eax
call fcn.004abafd
add esp, 8
test eax, eax
jne 0x49008a
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.004a5d13
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x49008a
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x490066
or dword [esi], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x490082
or dword [esi], 2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x49008a
or dword [esi], 3
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a5d13
mov esp, ebp
pop ebp
ret