Function at 0x58894c99
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push esi
call fcn.5889e13d
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CString::CString_1
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
xor esi, esi
push esi
push esi
push 0x588917a0
push eax
call sub.MFC42u.DLL_AfxOleRegisterTypeLib
test eax, eax
jne 0x58894d06
mov esi, 0x80040200
jmp 0x5889515d
push 1
call sub.MFC42u.DLL_COleObjectFactory::UpdateRegistryAll
test eax, eax
jne 0x58894d1b
mov esi, 0x80040201
jmp 0x5889515d
push ebx
push edi
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 0x170], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x160], 2
jne 0x58894ef4
cmp dword [ebp - 0x16c], 5
jb 0x58894ef4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x58891d24
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5889515b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 4
push esi
mov ebx, 0x58893b70
push ebx
push esi
push 0x58891d08
push dword [ebp - 0x3c]
call edi
test eax, eax
jne 0x58894eec
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
push 4
push esi
push ebx
push esi
push 0x58891cf8
push dword [ebp - 0x34]
call edi
test eax, eax
jne 0x58894ee3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 4
push esi
push ebx
push esi
push 0x58891ce4
push dword [ebp - 0x40]
call edi
test eax, eax
jne 0x58894eda
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 2
push esi
push ebx
push esi
push 0x58891cd4
push dword [ebp - 0x38]
call edi
test eax, eax
jne 0x58894ed1
lea eax, [ebp - 0x44]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x58891c80
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x58894ec8
lea ecx, [ebp - 0x48]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0x58891c60
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x58894ebf
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [ebp - 4]
call fcn.5889e3be
push 0x588917d4
lea ecx, [ebp - 0x14]
call fcn.5889e3fa
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 4]
cmp word [eax], 0x22
jne 0x58894eac
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push edi
push esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
jmp 0x58895155
push 0x58891c10
lea ecx, [ebp - 0x18]
call fcn.5889e436
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.5889e3be
push 0x58891bf4
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::operator_1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
push eax
mov ebx, 0x20006
push ebx
push esi
push dword [ebp - 0x18]
push 0x80000002
call edi
test eax, eax
jne 0x5889507b
push 0x35
push 1
push 0x3ea
push 0x58891bd0
push dword [ebp - 0x28]
call fcn.58894a61
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x58891bd0
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x58895072
push 0x10
push 2
push 0x400
push 0x58891bb4
push dword [ebp - 8]
call fcn.58894a61
push 0x20
push 3
push 0x40a
push 0x58891b98
push dword [ebp - 8]
call fcn.58894a61
push 0x30
push 4
push 0x42e
push 0x58891b8c
push dword [ebp - 8]
call fcn.58894a61
lea eax, [ebp - 0x30]
push eax
push ebx
push esi
push 0x58891b8c
push dword [ebp - 8]
call edi
test eax, eax
jne 0x58894fde
push 0x10
push 5
push 0x43c
push 0x58891b74
push dword [ebp - 0x30]
call fcn.58894a61
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
push 6
push 0x442
push 0x58891b64
push dword [ebp - 8]
call fcn.58894a61
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push 0x58891b64
push dword [ebp - 8]
call edi
test eax, eax
jne 0x58895053
push 0x10
push 7
push 0x450
push 0x58891b38
push dword [ebp - 0x20]
call fcn.58894a61
push 0x20
push 8
push 0x45c
push 0x58891b08
push dword [ebp - 0x20]
call fcn.58894a61
push 0x30
push 9
push 0x464
push 0x58891af0
push dword [ebp - 0x20]
call fcn.58894a61
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x50
push 0xa
push 0x449
push 0x58891adc
push dword [ebp - 8]
call fcn.58894a61
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x58891c10
lea ecx, [ebp - 0x10]
call fcn.5889e436
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.5889e3be
push 0x58891ad0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.5889e3be
push 0x58891abc
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push 0x58893b70
push esi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5889515b
push 0x23
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::LoadStringW
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc ecx
inc ecx
push ecx
push eax
push 1
push esi
push esi
push dword [ebp - 0x1c]
call edi
lea eax, [ebp - 0x14]
push eax
call fcn.58894b37
push eax
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
inc ecx
inc ecx
push ecx
push eax
push 1
push esi
push 0x58891aac
push dword [ebp - 0x1c]
call edi
push 0x24
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::LoadStringW
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
inc ecx
inc ecx
push ecx
push eax
push 1
push esi
push 0x58891a94
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 4], ecx
mov eax, esi
pop esi
leave
ret