Function at 0x1006c80c
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x2c
xor ebx, ebx
lea eax, [edi + 4]
push ebx
push eax
mov dword [edi], vtable.CSysInfo.0
call fcn.10074510
push 0x6c
lea esi, [edi + 0x30]
push ebx
push esi
call fcn.10074510
push 0x18
lea eax, [edi + 0x9c]
push ebx
push eax
call fcn.10074510
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov ebx, 0x11c
push ebx
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.10074510
add esp, 0x30
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call ebx
test eax, eax
je 0x1006cbf0
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.Version___1_lu_._2_lu__n
push 0x100cf6ac
push 5
call fcn.10009c3c
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.SPVersion___1_lu_._2_lu__n
push 0x100cf6dc
push 5
call fcn.10009c3c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x28
push 0x100cf6f0
push dword [ebp - 0x11c]
push str.MajorVersion
push 0x100cf730
call esi
push 0x100cf740
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push str.MinorVersion
push 0x100cf780
call esi
mov dword [ebp - 0x118], eax
movzx eax, word [ebp - 0xc]
push 0x100cf790
push eax
push str.SPMajorVersion
push 0x100cf7d4
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xa]
push str.ijinst.debug.ini
push eax
push str.SPMinorVersion
push str.SysInfo
call esi
mov word [ebp - 0xa], ax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.Version_patched____1_lu_._2_lu__n
push 0x100cf85c
push 5
pop esi
push esi
call fcn.10009c3c
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.SPVersion_patched____1_lu_._2_lu__n
push str.CSysInfo::CSysInfo
push esi
call fcn.10009c3c
mov eax, dword [ebp - 0x11c]
add esp, 0x28
push 0xa
pop ecx
cmp eax, ecx
jbe 0x1006ca11
mov cl, byte [ebp - 6]
xor edx, edx
inc edx
mov dword [edi + 0xb4], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 0xb8], eax
mov dword [edi + 0x30], edx
mov dword [edi + 0x68], edx
mov dword [edi + 0x6c], edx
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], edx
mov dword [edi + 0x78], edx
mov dword [edi + 0x7c], edx
mov dword [edi + 0x80], edx
mov dword [edi + 0x84], edx
mov dword [edi + 0x88], edx
mov dword [edi + 0x8c], edx
mov dword [edi + 0x90], edx
cmp cl, dl
jne 0x1006c9e3
mov dword [edi + 0x5c], edx
jmp 0x1006c9e6
mov dword [edi + 0x60], edx
xor eax, eax
cmp cl, dl
sete al
mov dword [edi + 0x94], edx
mov dword [edi + 0x64], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
mov word [edi + 0x9a], ax
jmp 0x1006cd03
jne 0x1006caae
mov dl, byte [ebp - 6]
xor ebx, ebx
inc ebx
xor eax, eax
cmp dl, bl
sete al
mov dword [edi + 0xb4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edi + 0xb8], ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x64], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov word [edi + 0x9a], ax
test ecx, ecx
je 0x1006ca94
cmp dl, bl
jne 0x1006ca89
mov dword [edi + 0x5c], ebx
jmp 0x1006ca8c
mov dword [edi + 0x60], ebx
mov dword [edi + 0x94], ebx
jmp 0x1006caa3
cmp dl, bl
jne 0x1006caa0
mov dword [edi + 0x5c], ebx
jmp 0x1006cd03
mov dword [edi + 0x60], ebx
mov dword [edi + 0x90], ebx
jmp 0x1006cd03
push 6
pop ecx
cmp eax, ecx
jne 0x1006cb92
mov edx, dword [ebp - 0x118]
xor ebx, ebx
inc ebx
xor eax, eax
mov dword [edi + 0xb4], ecx
mov cl, byte [ebp - 6]
cmp cl, bl
sete al
mov dword [edi + 0xb8], edx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x64], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
mov word [edi + 0x9a], ax
test edx, edx
je 0x1006cb7b
cmp edx, ebx
je 0x1006cb5b
lea eax, [edx - 2]
cmp eax, ebx
ja 0x1006cb3b
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp cl, bl
jne 0x1006cb2d
mov dword [edi + 0x54], ebx
jmp 0x1006cd03
mov dword [edi + 0x58], ebx
mov dword [edi + 0x88], ebx
jmp 0x1006cd03
cmp cl, bl
jne 0x1006cb44
mov dword [edi + 0x54], ebx
jmp 0x1006cb47
mov dword [edi + 0x58], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
jmp 0x1006cb30
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
cmp cl, bl
jne 0x1006cb6d
mov dword [edi + 0x4c], ebx
jmp 0x1006cd03
mov dword [edi + 0x50], ebx
mov dword [edi + 0x80], ebx
jmp 0x1006cd03
cmp cl, bl
jne 0x1006cb87
mov dword [edi + 0x44], ebx
jmp 0x1006cd03
mov dword [edi + 0x48], ebx
mov dword [edi + 0x78], ebx
jmp 0x1006cd03
cmp eax, esi
jne 0x1006cbed
mov ax, word [ebp - 0xc]
mov ecx, dword [ebp - 0x118]
xor edx, edx
inc edx
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
mov dword [edi + 0xb8], ecx
mov dword [edi + 0xb4], esi
mov dword [edi + 0x30], edx
mov word [edi + 0x9a], ax
mov dword [edi + 0x68], edx
sub ecx, 0
je 0x1006cbe2
mov dword [edi + 0x6c], edx
dec ecx
je 0x1006cbdd
mov dword [edi + 0x40], edx
mov dword [edi + 0x70], edx
jmp 0x1006cd03
mov dword [edi + 0x3c], edx
jmp 0x1006cbe5
mov dword [edi + 0x38], edx
mov dword [edi + 0x64], edx
jmp 0x1006cd03
lea esi, [edi + 0x30]
push 0x114
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.10074510
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], 0x114
call ebx
test eax, eax
je 0x1006cd03
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
mov dword [edi + 0xb4], edx
mov dword [edi + 0xb8], ecx
dec eax
je 0x1006cc98
dec eax
jne 0x1006cd03
inc eax
mov dword [esi], eax
cmp edx, 4
jne 0x1006cd03
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x220]
push 0x80
push eax
call fcn.100779cf
push 0x10
push str.Service_Pack_6a
mov esi, eax
call fcn.100779cf
add esp, 0x10
cmp esi, eax
jb 0x1006cd03
lea eax, [ebp - 0x206]
push eax
call fcn.10078bfd
pop ecx
mov word [edi + 0x98], ax
jmp 0x1006cd03
movzx eax, word [ebp - 0x21e]
xor edx, edx
inc edx
mov dword [edi + 4], edx
sub eax, 0x41
je 0x1006ccbf
dec eax
je 0x1006ccba
dec eax
je 0x1006ccb5
mov dword [edi + 0x2c], edx
jmp 0x1006ccc2
mov dword [edi + 0x28], edx
jmp 0x1006ccc2
mov dword [edi + 0x24], edx
jmp 0x1006ccc2
mov dword [edi + 0x20], edx
test ecx, ecx
je 0x1006cd00
cmp ecx, 0xa
je 0x1006ccde
cmp ecx, 0x5a
jne 0x1006cd03
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
jmp 0x1006cd03
mov eax, dword [ebp - 0x228]
shr eax, 0x10
cmp al, 0xa
je 0x1006ccef
cmp al, 0x5a
jmp 0x1006ccce
cmp dword [edi + 0x20], 0
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], edx
je 0x1006cd03
mov dword [edi + 0x18], edx
jmp 0x1006cd03
mov dword [edi + 8], edx
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x1006cd4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsWow64Process
push ebx
call esi
push str.GetNativeSystemInfo
push ebx
mov dword [ebp - 0x244], eax
call esi
mov ebx, dword [ebp - 0x244]
mov esi, eax
test ebx, ebx
je 0x1006cd4e
lea eax, [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
lea ebx, [edi + 0x9c]
cmp dword [ebx], 0
je 0x1006cda0
push 0x24
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.10074510
add esp, 0xc
test esi, esi
je 0x1006cda0
lea eax, [ebp - 0x28c]
push eax
call esi
movzx eax, word [ebp - 0x28c]
cmp eax, 6
je 0x1006cd96
cmp eax, 9
jne 0x1006cda0
mov dword [edi + 0xac], 1
jmp 0x1006cda0
mov dword [edi + 0xb0], 1
push 0x24
lea eax, [ebp - 0x268]
push 0
push eax
mov dword [edi + 0xa0], 1
call fcn.10074510
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x268]
cmp eax, 6
je 0x1006cdf0
cmp eax, 9
je 0x1006cde4
and dword [edi + 0xa0], 0
jmp 0x1006cdfa
mov dword [edi + 0xa4], 1
jmp 0x1006cdfa
mov dword [edi + 0xa8], 1
push 0x200
lea esi, [edi + 0xbc]
push 0
push esi
call fcn.10074510
add esp, 0xc
cmp dword [edi + 4], 0
je 0x1006ce50
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006ceb0
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x100cf954
jmp 0x1006ce8e
cmp dword [edi + 0x30], 0
je 0x1006ceb0
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006ceb0
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x100cf9d4
push dword [ebp - 0x238]
mov dword [ebp - 0x23c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0xa0], 0
jne 0x1006cebe
cmp dword [ebx], 0
je 0x1006cee6
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x1006cee6
cmp dword [ebp - 0x11c], 5
jne 0x1006cee6
cmp dword [ebp - 0x118], 2
jne 0x1006cee6
and dword [edi + 0x40], 0
and dword [edi + 0x70], 0
mov dword [edi + 0x3c], eax
mov dword [edi + 0x64], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret