Function at 0x46e7a3
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x2c
lea esi, [edi + 4]
push 0
push esi
mov dword [edi], vtable.CSysInfo.0
call fcn.00587a70
push 0x6c
lea ebx, [edi + 0x30]
push 0
push ebx
call fcn.00587a70
push 0x18
lea eax, [edi + 0x9c]
push 0
push eax
call fcn.00587a70
xor eax, eax
push 0x11c
push eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
lea eax, [ebp - 0x120]
push eax
call fcn.00587a70
add esp, 0x30
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46eb89
push dword [ebp - 0x118]
mov esi, str.CSysInfo::CSysInfo
push dword [ebp - 0x11c]
push str.Version___1_lu_._2_lu__n
push esi
push 5
call fcn.00423f75
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.SPVersion___1_lu_._2_lu__n
push esi
push 5
call fcn.00423f75
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x28
push str.ijinst.debug.ini
push dword [ebp - 0x11c]
push str.MajorVersion
push str.SysInfo
call esi
push str.ijinst.debug.ini
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push str.MinorVersion
push str.SysInfo
call esi
mov dword [ebp - 0x118], eax
movzx eax, word [ebp - 0xc]
push str.ijinst.debug.ini
push eax
push str.SPMajorVersion
push str.SysInfo
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 esi, str.CSysInfo::CSysInfo
push dword [ebp - 0x118]
mov word [ebp - 0xa], ax
push dword [ebp - 0x11c]
push str.Version_patched____1_lu_._2_lu__n
push esi
push 5
call fcn.00423f75
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.SPVersion_patched____1_lu_._2_lu__n
push esi
push 5
pop esi
push esi
call fcn.00423f75
mov eax, dword [ebp - 0x11c]
add esp, 0x28
push 0xa
pop ecx
cmp eax, ecx
jbe 0x46e9a5
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 [ebx], 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 0x46e977
mov dword [edi + 0x5c], edx
jmp 0x46e97a
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 0x46ec9f
jne 0x46ea45
mov dl, byte [ebp - 6]
mov dword [ebx], 1
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 + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x64], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
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 0x46ea2b
cmp dl, bl
jne 0x46ea20
mov dword [edi + 0x5c], ebx
jmp 0x46ea23
mov dword [edi + 0x60], ebx
mov dword [edi + 0x94], ebx
jmp 0x46ea3a
cmp dl, bl
jne 0x46ea37
mov dword [edi + 0x5c], ebx
jmp 0x46ec9f
mov dword [edi + 0x60], ebx
mov dword [edi + 0x90], ebx
jmp 0x46ec9f
push 6
pop ecx
cmp eax, ecx
jne 0x46eb2c
mov edx, dword [ebp - 0x118]
mov dword [ebx], 1
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 + 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 0x46eb15
cmp edx, ebx
je 0x46eaf5
lea eax, [edx - 2]
cmp eax, ebx
ja 0x46ead5
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp cl, bl
jne 0x46eac7
mov dword [edi + 0x54], ebx
jmp 0x46ec9f
mov dword [edi + 0x58], ebx
mov dword [edi + 0x88], ebx
jmp 0x46ec9f
cmp cl, bl
jne 0x46eade
mov dword [edi + 0x54], ebx
jmp 0x46eae1
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 0x46eaca
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
cmp cl, bl
jne 0x46eb07
mov dword [edi + 0x4c], ebx
jmp 0x46ec9f
mov dword [edi + 0x50], ebx
mov dword [edi + 0x80], ebx
jmp 0x46ec9f
cmp cl, bl
jne 0x46eb21
mov dword [edi + 0x44], ebx
jmp 0x46ec9f
mov dword [edi + 0x48], ebx
mov dword [edi + 0x78], ebx
jmp 0x46ec9f
cmp eax, esi
jne 0x46eb86
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 [ebx], edx
mov word [edi + 0x9a], ax
mov dword [edi + 0x68], edx
sub ecx, 0
je 0x46eb7b
mov dword [edi + 0x6c], edx
dec ecx
je 0x46eb76
mov dword [edi + 0x40], edx
mov dword [edi + 0x70], edx
jmp 0x46ec9f
mov dword [edi + 0x3c], edx
jmp 0x46eb7e
mov dword [edi + 0x38], edx
mov dword [edi + 0x64], edx
jmp 0x46ec9f
lea esi, [edi + 4]
push 0x114
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00587a70
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46ec9f
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 0x46ec35
dec eax
jne 0x46ec9f
inc eax
mov dword [ebx], eax
cmp edx, 4
jne 0x46ec9f
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x220]
push 0x80
push eax
call fcn.0058b10d
push 0x10
push str.Service_Pack_6a
mov esi, eax
call fcn.0058b10d
add esp, 0x10
cmp esi, eax
jb 0x46ec9f
lea eax, [ebp - 0x206]
push eax
call fcn.0058bd6d
pop ecx
mov word [edi + 0x98], ax
jmp 0x46ec9f
movzx eax, word [ebp - 0x21e]
xor edx, edx
inc edx
mov dword [esi], edx
sub eax, 0x41
je 0x46ec5b
dec eax
je 0x46ec56
dec eax
je 0x46ec51
mov dword [edi + 0x2c], edx
jmp 0x46ec5e
mov dword [edi + 0x28], edx
jmp 0x46ec5e
mov dword [edi + 0x24], edx
jmp 0x46ec5e
mov dword [edi + 0x20], edx
test ecx, ecx
je 0x46ec9c
cmp ecx, 0xa
je 0x46ec7a
cmp ecx, 0x5a
jne 0x46ec9f
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
jmp 0x46ec9f
mov eax, dword [ebp - 0x228]
shr eax, 0x10
cmp al, 0xa
je 0x46ec8b
cmp al, 0x5a
jmp 0x46ec6a
cmp dword [edi + 0x20], 0
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], edx
je 0x46ec9f
mov dword [edi + 0x18], edx
jmp 0x46ec9f
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 0x46ecea
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 0x46ecea
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 0x46ed3c
push 0x24
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00587a70
add esp, 0xc
test esi, esi
je 0x46ed3c
lea eax, [ebp - 0x28c]
push eax
call esi
movzx eax, word [ebp - 0x28c]
cmp eax, 6
je 0x46ed32
cmp eax, 9
jne 0x46ed3c
mov dword [edi + 0xac], 1
jmp 0x46ed3c
mov dword [edi + 0xb0], 1
push 0x24
lea eax, [ebp - 0x268]
push 0
push eax
mov dword [edi + 0xa0], 1
call fcn.00587a70
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 0x46ed8c
cmp eax, 9
je 0x46ed80
and dword [edi + 0xa0], 0
jmp 0x46ed96
mov dword [edi + 0xa4], 1
jmp 0x46ed96
mov dword [edi + 0xa8], 1
push 0x200
lea esi, [edi + 0xbc]
push 0
push esi
call fcn.00587a70
add esp, 0xc
cmp dword [edi + 4], 0
je 0x46edc7
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
jmp 0x46ede0
cmp dword [edi + 0x30], 0
je 0x46ee27
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 0x46ee27
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x5c0474
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 0x46ee35
cmp dword [ebx], 0
je 0x46ee5d
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x46ee5d
cmp dword [ebp - 0x11c], 5
jne 0x46ee5d
cmp dword [ebp - 0x118], 2
jne 0x46ee5d
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.00588a1c
leave
ret