Function at 0x46f9cd
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 [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x2c
push 0
lea esi, [edi + 4]
mov dword [edi], vtable.CSysInfo.0
push esi
call fcn.0058e700
push 0x6c
lea ebx, [edi + 0x30]
push 0
push ebx
call fcn.0058e700
push 0x18
lea eax, [edi + 0x9c]
push 0
push eax
call fcn.0058e700
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.0058e700
add esp, 0x30
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46fdb3
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.00424dad
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.00424dad
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
push str.ijinst.debug.ini
mov dword [ebp - 0x118], eax
movzx eax, word [ebp - 0xc]
push eax
push str.SPMajorVersion
push str.SysInfo
call esi
push str.ijinst.debug.ini
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xa]
push eax
push str.SPMinorVersion
push str.SysInfo
call esi
push dword [ebp - 0x118]
mov esi, str.CSysInfo::CSysInfo
mov word [ebp - 0xa], ax
push dword [ebp - 0x11c]
push str.Version_patched____1_lu_._2_lu__n
push esi
push 5
call fcn.00424dad
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.00424dad
mov eax, dword [ebp - 0x11c]
add esp, 0x28
push 0xa
pop ecx
cmp eax, ecx
jbe 0x46fbcf
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 0x46fba1
mov dword [edi + 0x5c], edx
jmp 0x46fba4
mov dword [edi + 0x60], edx
xor eax, eax
mov dword [edi + 0x94], edx
cmp cl, dl
sete al
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 0x46fec9
jne 0x46fc6f
mov dl, byte [ebp - 6]
xor eax, eax
mov dword [ebx], 1
xor ebx, ebx
inc ebx
mov dword [edi + 0xb4], ecx
mov ecx, dword [ebp - 0x118]
cmp dl, bl
mov dword [edi + 0xb8], ecx
sete al
mov dword [edi + 0x68], ebx
mov dword [edi + 0x64], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x98], ax
mov ax, word [ebp - 0xa]
mov dword [edi + 0x6c], ebx
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 0x46fc55
cmp dl, bl
jne 0x46fc4a
mov dword [edi + 0x5c], ebx
jmp 0x46fc4d
mov dword [edi + 0x60], ebx
mov dword [edi + 0x94], ebx
jmp 0x46fc64
cmp dl, bl
jne 0x46fc61
mov dword [edi + 0x5c], ebx
jmp 0x46fec9
mov dword [edi + 0x60], ebx
mov dword [edi + 0x90], ebx
jmp 0x46fec9
push 6
pop ecx
cmp eax, ecx
jne 0x46fd56
mov edx, dword [ebp - 0x118]
xor eax, eax
mov dword [ebx], 1
xor ebx, ebx
inc ebx
mov dword [edi + 0xb4], ecx
mov cl, byte [ebp - 6]
cmp cl, bl
mov dword [edi + 0xb8], edx
mov dword [edi + 0x68], ebx
sete al
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 word [edi + 0x9a], ax
test edx, edx
je 0x46fd3f
cmp edx, ebx
je 0x46fd1f
lea eax, [edx - 2]
cmp eax, ebx
ja 0x46fcff
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp cl, bl
jne 0x46fcf1
mov dword [edi + 0x54], ebx
jmp 0x46fec9
mov dword [edi + 0x58], ebx
mov dword [edi + 0x88], ebx
jmp 0x46fec9
cmp cl, bl
jne 0x46fd08
mov dword [edi + 0x54], ebx
jmp 0x46fd0b
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 0x46fcf4
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
cmp cl, bl
jne 0x46fd31
mov dword [edi + 0x4c], ebx
jmp 0x46fec9
mov dword [edi + 0x50], ebx
mov dword [edi + 0x80], ebx
jmp 0x46fec9
cmp cl, bl
jne 0x46fd4b
mov dword [edi + 0x44], ebx
jmp 0x46fec9
mov dword [edi + 0x48], ebx
mov dword [edi + 0x78], ebx
jmp 0x46fec9
cmp eax, esi
jne 0x46fdb0
mov ax, word [ebp - 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x118]
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 0x46fda5
mov dword [edi + 0x6c], edx
dec ecx
je 0x46fda0
mov dword [edi + 0x40], edx
mov dword [edi + 0x70], edx
jmp 0x46fec9
mov dword [edi + 0x3c], edx
jmp 0x46fda8
mov dword [edi + 0x38], edx
mov dword [edi + 0x64], edx
jmp 0x46fec9
lea esi, [edi + 4]
push 0x114
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0058e700
add esp, 0xc
mov dword [ebp - 0x234], 0x114
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46fec9
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 0x46fe5f
dec eax
jne 0x46fec9
inc eax
mov dword [ebx], eax
cmp edx, 4
jne 0x46fec9
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x220]
push 0x80
push eax
call fcn.00591dbe
push 0x10
push str.Service_Pack_6a
mov esi, eax
call fcn.00591dbe
add esp, 0x10
cmp esi, eax
jb 0x46fec9
lea eax, [ebp - 0x206]
push eax
call fcn.00592a29
pop ecx
mov word [edi + 0x98], ax
jmp 0x46fec9
movzx eax, word [ebp - 0x21e]
xor edx, edx
inc edx
mov dword [esi], edx
sub eax, 0x41
je 0x46fe85
dec eax
je 0x46fe80
dec eax
je 0x46fe7b
mov dword [edi + 0x2c], edx
jmp 0x46fe88
mov dword [edi + 0x28], edx
jmp 0x46fe88
mov dword [edi + 0x24], edx
jmp 0x46fe88
mov dword [edi + 0x20], edx
test ecx, ecx
je 0x46fec6
cmp ecx, 0xa
je 0x46fea4
cmp ecx, 0x5a
jne 0x46fec9
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
jmp 0x46fec9
mov eax, dword [ebp - 0x228]
shr eax, 0x10
cmp al, 0xa
je 0x46feb5
cmp al, 0x5a
jmp 0x46fe94
cmp dword [edi + 0x20], 0
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], edx
je 0x46fec9
mov dword [edi + 0x18], edx
jmp 0x46fec9
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 0x46ff14
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 0x46ff14
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 0x46ff66
push 0x24
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.0058e700
add esp, 0xc
test esi, esi
je 0x46ff66
lea eax, [ebp - 0x28c]
push eax
call esi
movzx eax, word [ebp - 0x28c]
cmp eax, 6
je 0x46ff5c
cmp eax, 9
jne 0x46ff66
mov dword [edi + 0xac], 1
jmp 0x46ff66
mov dword [edi + 0xb0], 1
push 0x24
lea eax, [ebp - 0x268]
mov dword [edi + 0xa0], 1
push 0
push eax
call fcn.0058e700
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 0x46ffb6
cmp eax, 9
je 0x46ffaa
and dword [edi + 0xa0], 0
jmp 0x46ffc0
mov dword [edi + 0xa4], 1
jmp 0x46ffc0
mov dword [edi + 0xa8], 1
push 0x200
lea esi, [edi + 0xbc]
push 0
push esi
call fcn.0058e700
add esp, 0xc
cmp dword [edi + 4], 0
je 0x46fff1
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
jmp 0x47000a
cmp dword [edi + 0x30], 0
je 0x470051
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 0x470051
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x200
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x5c6568
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0xa0], 0
jne 0x47005f
cmp dword [ebx], 0
je 0x470087
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x470087
cmp dword [ebp - 0x11c], 5
jne 0x470087
cmp dword [ebp - 0x118], 2
jne 0x470087
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.0058f6bb
mov esp, ebp
pop ebp
ret