Function at 0x45cebe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push 0x1c
pop edi
cdq
mov ecx, edi
idiv ecx
and dword [ebp - 4], 0
test eax, eax
je 0x45d228
push 0
mov ecx, esi
call fcn.0045c1d2
push 8
pop ebx
cmp dword [eax + 0x18], ebx
jb 0x45cefa
mov eax, dword [eax + 4]
jmp 0x45cefd
add eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.00404be0
push str.deletekey
lea ecx, [ebp + 8]
call fcn.0040a320
test eax, eax
jne 0x45cf80
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, edi
cdq
idiv ecx
cmp eax, 3
jne 0x45cf80
push 2
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45cf3a
mov edi, dword [eax + 4]
jmp 0x45cf3d
lea edi, [eax + 4]
push 1
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45cf50
mov esi, dword [eax + 4]
jmp 0x45cf53
lea esi, [eax + 4]
push 0
push ecx
mov ecx, esp
push 0x4991c8
call fcn.00404be0
push ecx
mov ecx, esp
push edi
call fcn.00404be0
push esi
lea ecx, [ebp - 0x14]
call fcn.0045c92d
push eax
call fcn.0045c5b5
pop ecx
jmp 0x45d212
push str.deleteemptykey
lea ecx, [ebp + 8]
call fcn.0040a320
test eax, eax
jne 0x45cff6
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, edi
cdq
idiv ecx
cmp eax, 3
jne 0x45cff6
push 2
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45cfb4
mov edi, dword [eax + 4]
jmp 0x45cfb7
lea edi, [eax + 4]
push 1
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45cfca
mov esi, dword [eax + 4]
jmp 0x45cfcd
lea esi, [eax + 4]
push 0
push ecx
mov ecx, esp
push 0x4991c8
call fcn.00404be0
push ecx
mov ecx, esp
push edi
call fcn.00404be0
push esi
lea ecx, [ebp - 0x14]
call fcn.0045c92d
push eax
call fcn.0045c600
jmp 0x45cf7a
push str.deleteval
lea ecx, [ebp + 8]
call fcn.0040a320
test eax, eax
jne 0x45d083
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, edi
cdq
idiv ecx
cmp eax, 4
jne 0x45d083
push 3
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d02a
mov ebx, dword [eax + 4]
jmp 0x45d02d
lea ebx, [eax + 4]
push 2
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d041
mov edi, dword [eax + 4]
jmp 0x45d044
lea edi, [eax + 4]
push 1
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d058
mov esi, dword [eax + 4]
jmp 0x45d05b
lea esi, [eax + 4]
push 0
push ecx
mov ecx, esp
push ebx
call fcn.00404be0
push ecx
mov ecx, esp
push edi
call fcn.00404be0
push esi
lea ecx, [ebp - 0x14]
call fcn.0045c92d
push eax
call fcn.0045c567
jmp 0x45cf7a
push str.writevalue
lea ecx, [ebp + 8]
call fcn.0040a320
test eax, eax
jne 0x45d21d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cdq
idiv edi
cmp eax, 6
jne 0x45d21d
push 4
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d0bd
mov eax, dword [eax + 4]
jmp 0x45d0c0
add eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.REG_DWORD
push eax
call edi
mov ecx, esi
test eax, eax
jne 0x45d166
push 5
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d0e9
mov eax, dword [eax + 4]
jmp 0x45d0ec
add eax, 4
push 3
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d102
mov ebx, dword [eax + 4]
jmp 0x45d105
lea ebx, [eax + 4]
push 2
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d119
mov edi, dword [eax + 4]
jmp 0x45d11c
lea edi, [eax + 4]
push 1
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d130
mov esi, dword [eax + 4]
jmp 0x45d133
lea esi, [eax + 4]
push dword [ebp - 4]
call fcn.00466c57
pop ecx
push eax
push 0
push ecx
mov ecx, esp
push ebx
call fcn.00404be0
push ecx
mov ecx, esp
push edi
call fcn.00404be0
push esi
lea ecx, [ebp - 0x14]
call fcn.0045c92d
push eax
call fcn.00443ea4
pop ecx
jmp 0x45cf7a
push 4
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d177
mov eax, dword [eax + 4]
jmp 0x45d17a
add eax, 4
push str.REG_SZ
push eax
call edi
test eax, eax
jne 0x45d21d
push 5
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d19d
mov eax, dword [eax + 4]
jmp 0x45d1a0
add eax, 4
push 3
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0045c1d2
cmp dword [eax + 0x18], ebx
jb 0x45d1b6
mov ebx, dword [eax + 4]
jmp 0x45d1b9
lea ebx, [eax + 4]
push 2
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d1cd
mov edi, dword [eax + 4]
jmp 0x45d1d0
lea edi, [eax + 4]
push 1
mov ecx, esi
call fcn.0045c1d2
cmp dword [eax + 0x18], 8
jb 0x45d1e4
mov esi, dword [eax + 4]
jmp 0x45d1e7
lea esi, [eax + 4]
push 0
push dword [ebp - 4]
push 0
push ecx
mov ecx, esp
push ebx
call fcn.00404be0
push ecx
mov ecx, esp
push edi
call fcn.00404be0
push esi
lea ecx, [ebp - 0x14]
call fcn.0045c92d
push eax
call fcn.00456902
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00406980
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004016d0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4