Function at 0x402b70
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, 0x190
mov eax, dword [0x40e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x2c
xor ebx, ebx
lea eax, [esi + 4]
push ebx
push eax
mov dword [esi], vtable.CSysInfo.0
call fcn.004031e0
push 0x38
lea edi, [esi + 0x30]
push ebx
push edi
call fcn.004031e0
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
push 0x9c
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [ebp - 0x138], ebx
call fcn.004031e0
add esp, 0x24
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, 1
test eax, eax
je 0x402ded
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
push edx
push eax
push str.CSysInfo::CSysInfo_Version___1_lu_._2_lu__n
push 0
push 5
call fcn.00402500
movzx ecx, word [ebp - 0xa]
movzx edx, word [ebp - 0xc]
push ecx
push edx
push str.CSysInfo::CSysInfo_SPVersion___1_lu_._2_lu__n
push 0
push 5
call fcn.00402500
mov eax, dword [ebp - 0x9c]
add esp, 0x28
push str.ijinst.debug.ini
push eax
push str.MajorVersion
push str.SysInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x98]
push str.ijinst.debug.ini
push ecx
push str.MinorVersion
push str.SysInfo
mov dword [ebp - 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movzx edx, word [ebp - 0xc]
push str.ijinst.debug.ini
push edx
push str.SPMajorVersion
push str.SysInfo
mov dword [ebp - 0x98], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xa]
push str.ijinst.debug.ini
push eax
push str.SPMinorVersion
push str.SysInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
push ecx
push edx
push str.CSysInfo::CSysInfo_Version_patched____1_lu_._2_lu__n
push 0
push 5
mov word [ebp - 0xa], ax
call fcn.00402500
movzx eax, word [ebp - 0xa]
movzx ecx, word [ebp - 0xc]
push eax
push ecx
push str.CSysInfo::CSysInfo_SPVersion_patched____1_lu_._2_lu__n
push 0
push 5
call fcn.00402500
mov eax, dword [ebp - 0x9c]
add esp, 0x28
cmp eax, 6
jbe 0x402d3e
mov edx, dword [ebp - 0x98]
mov cx, word [ebp - 0xa]
mov dword [esi + 0x80], eax
mov ax, word [ebp - 0xc]
mov dword [esi + 0x84], edx
mov dword [edi], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x60], ebx
mov word [esi + 0x64], ax
mov word [esi + 0x66], cx
jmp 0x402efd
jne 0x402d9a
mov eax, dword [ebp - 0x98]
mov dx, word [ebp - 0xc]
mov cx, word [ebp - 0xa]
mov dword [esi + 0x80], 6
mov dword [esi + 0x84], eax
mov dword [edi], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov word [esi + 0x64], dx
mov word [esi + 0x66], cx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x44], ebx
test eax, eax
je 0x402d86
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
jmp 0x402efd
cmp byte [ebp - 6], bl
je 0x402efd
mov dword [esi + 0x48], ebx
mov dword [esi + 0x5c], ebx
jmp 0x402efd
cmp eax, 5
jne 0x402ded
mov dx, word [ebp - 0xc]
mov cx, word [ebp - 0xa]
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0x98]
mov dword [esi + 0x84], eax
sub eax, 0
mov dword [edi], ebx
mov word [esi + 0x64], dx
mov word [esi + 0x66], cx
mov dword [esi + 0x4c], ebx
je 0x402de5
sub eax, ebx
mov dword [esi + 0x50], ebx
je 0x402ddd
mov dword [esi + 0x40], ebx
mov dword [esi + 0x54], ebx
jmp 0x402efd
mov dword [esi + 0x3c], ebx
jmp 0x402efd
mov dword [esi + 0x38], ebx
jmp 0x402efd
push 0x94
lea edx, [ebp - 0x134]
push 0
push edx
call fcn.004031e0
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x134], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402efd
mov eax, dword [ebp - 0x124]
sub eax, ebx
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
je 0x402e93
sub eax, ebx
jne 0x402efd
mov dword [edi], ebx
cmp ecx, 4
jne 0x402efd
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Service_Pack_6a
mov dword [esi + 0x34], ebx
call edi
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x13c], eax
call edi
cmp eax, dword [ebp - 0x13c]
jl 0x402efd
lea edx, [ebp - 0x113]
push edx
call fcn.00404750
add esp, 4
mov word [esi + 0x64], ax
jmp 0x402efd
movsx eax, byte [ebp - 0x11f]
sub eax, 0x41
mov dword [esi + 4], ebx
je 0x402eb9
sub eax, ebx
je 0x402eb4
sub eax, ebx
je 0x402eaf
mov dword [esi + 0x2c], ebx
jmp 0x402ebc
mov dword [esi + 0x28], ebx
jmp 0x402ebc
mov dword [esi + 0x24], ebx
jmp 0x402ebc
mov dword [esi + 0x20], ebx
test edx, edx
je 0x402efa
cmp edx, 0xa
je 0x402eca
cmp edx, 0x5a
jmp 0x402ed9
mov eax, dword [ebp - 0x128]
shr eax, 0x10
cmp al, 0xa
je 0x402ee9
cmp al, 0x5a
jne 0x402efd
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x402efd
cmp dword [esi + 0x20], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
je 0x402efd
mov dword [esi + 0x18], ebx
jmp 0x402efd
mov dword [esi + 8], ebx
push str.kernel32
mov dword [ebp - 0x13c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x402f53
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push edi
mov dword [ebp - 0x148], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x148]
mov dword [ebp - 0x13c], eax
test edi, edi
je 0x402f53
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esi + 0x68], 0
je 0x402fbd
xor eax, eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x402fbd
lea ecx, [ebp - 0x190]
push ecx
call eax
movzx eax, word [ebp - 0x190]
cmp eax, 6
je 0x402fba
cmp eax, 9
jne 0x402fbd
mov dword [esi + 0x78], ebx
jmp 0x402fbd
mov dword [esi + 0x7c], ebx
xor eax, eax
lea edx, [ebp - 0x16c]
push edx
mov dword [esi + 0x6c], ebx
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x16c]
cmp eax, 6
je 0x403024
cmp eax, 9
je 0x40301f
mov dword [esi + 0x6c], 0
jmp 0x403027
mov dword [esi + 0x70], ebx
jmp 0x403027
mov dword [esi + 0x74], ebx
push 0x100
lea edi, [esi + 0x88]
push 0
push edi
call fcn.004031e0
add esp, 0xc
cmp dword [esi + 4], 0
je 0x40309e
lea eax, [ebp - 0x138]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403100
lea ecx, [ebp - 0x140]
push ecx
push edi
lea edx, [ebp - 0x144]
push edx
push eax
mov eax, dword [ebp - 0x138]
push 0x40aac4
push eax
mov dword [ebp - 0x140], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x138]
push ecx
jmp 0x4030fa
cmp dword [esi + 0x30], 0
je 0x403100
lea edx, [ebp - 0x138]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403100
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x140]
push eax
push edi
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0x40aac4
push edx
mov dword [ebp - 0x140], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esi + 0x6c], eax
jne 0x40310c
cmp dword [esi + 0x68], eax
je 0x40312c
cmp byte [ebp - 6], bl
jne 0x40312c
cmp dword [ebp - 0x9c], 5
jne 0x40312c
cmp dword [ebp - 0x98], 2
jne 0x40312c
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x54], eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403171
mov esp, ebp
pop ebp
ret