Function at 0x4331f7
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 [0x467750]
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.00438dc0
push 0x6c
lea ebx, [edi + 0x30]
push 0
push ebx
call fcn.00438dc0
push 0x18
lea eax, [edi + 0x9c]
push 0
push eax
call fcn.00438dc0
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.00438dc0
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 0x4335dd
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.00405a24
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.00405a24
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.00405a24
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.00405a24
mov eax, dword [ebp - 0x11c]
add esp, 0x28
push 0xa
pop ecx
cmp eax, ecx
jbe 0x4333f9
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 0x4333cb
mov dword [edi + 0x5c], edx
jmp 0x4333ce
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 0x4336f3
jne 0x433499
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 0x43347f
cmp dl, bl
jne 0x433474
mov dword [edi + 0x5c], ebx
jmp 0x433477
mov dword [edi + 0x60], ebx
mov dword [edi + 0x94], ebx
jmp 0x43348e
cmp dl, bl
jne 0x43348b
mov dword [edi + 0x5c], ebx
jmp 0x4336f3
mov dword [edi + 0x60], ebx
mov dword [edi + 0x90], ebx
jmp 0x4336f3
push 6
pop ecx
cmp eax, ecx
jne 0x433580
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 0x433569
cmp edx, ebx
je 0x433549
lea eax, [edx - 2]
cmp eax, ebx
ja 0x433529
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp cl, bl
jne 0x43351b
mov dword [edi + 0x54], ebx
jmp 0x4336f3
mov dword [edi + 0x58], ebx
mov dword [edi + 0x88], ebx
jmp 0x4336f3
cmp cl, bl
jne 0x433532
mov dword [edi + 0x54], ebx
jmp 0x433535
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 0x43351e
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
cmp cl, bl
jne 0x43355b
mov dword [edi + 0x4c], ebx
jmp 0x4336f3
mov dword [edi + 0x50], ebx
mov dword [edi + 0x80], ebx
jmp 0x4336f3
cmp cl, bl
jne 0x433575
mov dword [edi + 0x44], ebx
jmp 0x4336f3
mov dword [edi + 0x48], ebx
mov dword [edi + 0x78], ebx
jmp 0x4336f3
cmp eax, esi
jne 0x4335da
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 0x4335cf
mov dword [edi + 0x6c], edx
dec ecx
je 0x4335ca
mov dword [edi + 0x40], edx
mov dword [edi + 0x70], edx
jmp 0x4336f3
mov dword [edi + 0x3c], edx
jmp 0x4335d2
mov dword [edi + 0x38], edx
mov dword [edi + 0x64], edx
jmp 0x4336f3
lea esi, [edi + 4]
push 0x114
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00438dc0
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 0x4336f3
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 0x433689
dec eax
jne 0x4336f3
inc eax
mov dword [ebx], eax
cmp edx, 4
jne 0x4336f3
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x220]
push 0x80
push eax
call fcn.0043965b
push 0x10
push str.Service_Pack_6a
mov esi, eax
call fcn.0043965b
add esp, 0x10
cmp esi, eax
jb 0x4336f3
lea eax, [ebp - 0x206]
push eax
call fcn.0043a813
pop ecx
mov word [edi + 0x98], ax
jmp 0x4336f3
movzx eax, word [ebp - 0x21e]
xor edx, edx
inc edx
mov dword [esi], edx
sub eax, 0x41
je 0x4336af
dec eax
je 0x4336aa
dec eax
je 0x4336a5
mov dword [edi + 0x2c], edx
jmp 0x4336b2
mov dword [edi + 0x28], edx
jmp 0x4336b2
mov dword [edi + 0x24], edx
jmp 0x4336b2
mov dword [edi + 0x20], edx
test ecx, ecx
je 0x4336f0
cmp ecx, 0xa
je 0x4336ce
cmp ecx, 0x5a
jne 0x4336f3
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
jmp 0x4336f3
mov eax, dword [ebp - 0x228]
shr eax, 0x10
cmp al, 0xa
je 0x4336df
cmp al, 0x5a
jmp 0x4336be
cmp dword [edi + 0x20], 0
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], edx
je 0x4336f3
mov dword [edi + 0x18], edx
jmp 0x4336f3
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 0x43373e
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 0x43373e
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 0x433790
push 0x24
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00438dc0
add esp, 0xc
test esi, esi
je 0x433790
lea eax, [ebp - 0x28c]
push eax
call esi
movzx eax, word [ebp - 0x28c]
cmp eax, 6
je 0x433786
cmp eax, 9
jne 0x433790
mov dword [edi + 0xac], 1
jmp 0x433790
mov dword [edi + 0xb0], 1
push 0x24
lea eax, [ebp - 0x268]
push 0
push eax
mov dword [edi + 0xa0], 1
call fcn.00438dc0
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 0x4337e0
cmp eax, 9
je 0x4337d4
and dword [edi + 0xa0], 0
jmp 0x4337ea
mov dword [edi + 0xa4], 1
jmp 0x4337ea
mov dword [edi + 0xa8], 1
push 0x200
lea esi, [edi + 0xbc]
push 0
push esi
call fcn.00438dc0
add esp, 0xc
cmp dword [edi + 4], 0
je 0x43381b
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
jmp 0x433834
cmp dword [edi + 0x30], 0
je 0x43387b
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43387b
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x44f160
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 0x433889
cmp dword [ebx], 0
je 0x4338b1
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x4338b1
cmp dword [ebp - 0x11c], 5
jne 0x4338b1
cmp dword [ebp - 0x118], 2
jne 0x4338b1
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.00438628
leave
ret