Function at 0x496fe9
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4f9213
call fcn.004a920c
sub esp, 0x1ac
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
mov ebx, str.softwareclassesCLSID.HRInfo4
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov edi, ecx
push esi
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4977c0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4977a9
lea eax, [ebp - 0x3c]
push eax
call fcn.004ac0a0
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push str._lx__x__x
push eax
call fcn.004aca9c
add esp, 0x14
cmp eax, 3
jne 0x49709b
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x14]
jl 0x497092
cmp dword [ebp - 0x14], 0xffffffff
je 0x497092
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
push 1
pop esi
jmp 0x4970ff
mov dword [ebp - 0x20], 0x3d0900
jmp 0x49708d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push 0x53001c
push eax
call fcn.004aca9c
add esp, 0xc
push 1
pop esi
cmp eax, esi
jne 0x4970d4
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x14]
jl 0x4970cd
cmp dword [ebp - 0x14], 0xffffffff
je 0x4970cd
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x4970d4
mov dword [ebp - 0x20], 0x3d0900
lea eax, [ebp - 0x1c]
push eax
push str.lsek
push dword [ebp - 0x18]
call fcn.0042b411
add esp, 0xc
test eax, eax
jne 0x4970fb
lea eax, [ebp - 0x14]
push eax
call fcn.004ac0a0
pop ecx
mov dword [ebp - 0x28], esi
jmp 0x4970ff
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x49710c
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
dec eax
je 0x497268
dec eax
je 0x497253
dec eax
je 0x49713b
mov eax, dword [ebp - 0x3c]
push 0x1e
add eax, 0xffd87300
and dword [ebp - 0x1c], 0
pop ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x3d0900
jmp 0x49714e
cmp dword [ebp - 0x20], 0x13c680
push 0xf
pop ebx
mov dword [ebp - 0x24], ebx
jle 0x49727b
push dword [ebp - 0x1c]
inc dword [ebp - 0x2c]
lea eax, [ebp - 0x74]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push str._lx__x__x
push eax
call fcn.004a9b8d
lea eax, [ebp - 0x74]
push eax
call fcn.004a9710
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 2
mov dword [edi + 0xc], esi
pop edi
push edi
push ebx
lea ecx, [ebp - 0x1b8]
call fcn.004998fb
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.004a1fc9
imul ebx, ebx, 0x15180
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
call fcn.004a1fc9
mov esi, 0x400
lea eax, [ebp - 0x28]
push esi
push edi
push eax
lea ecx, [ebp - 0x48]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 1
call fcn.004d3904
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004d37cb
push esi
lea eax, [ebp - 0x28]
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.004d3904
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004d37cb
lea ecx, [ebp - 0x1b8]
call fcn.004d4cec
cmp eax, edi
jne 0x497277
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
call fcn.00497980
mov eax, esi
jmp 0x497971
cmp dword [ebp - 0x20], 0x278d00
push 0x1e
pop ebx
mov dword [ebp - 0x24], ebx
jg 0x49714e
jmp 0x49727b
cmp dword [ebp - 0x20], 0x3b5380
push 0x2d
pop ebx
mov dword [ebp - 0x24], ebx
jmp 0x497260
xor esi, esi
jmp 0x49723d
push dword [ebp - 0x1c]
inc dword [ebp - 0x2c]
lea eax, [ebp - 0x74]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push str._lx__x__x
push eax
call fcn.004a9b8d
lea eax, [ebp - 0x74]
push eax
call fcn.004a9710
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi + 8]
xor eax, eax
lea edx, [ebp - 0x18]
push eax
push edx
push eax
push 0x2001f
push eax
push eax
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
test eax, eax
mov dword [ebp - 0x60], eax
mov esi, 0x400
jne 0x49731f
lea eax, [ebp - 0x58]
push eax
push str.ShowTrial15
push dword [ebp - 0x18]
call fcn.0042b411
lea eax, [ebp - 0x5c]
push eax
push str.ShowTrial5
push dword [ebp - 0x18]
call fcn.0042b411
add esp, 0x18
cmp dword [ebp - 0x5c], 0
je 0x4974b4
cmp dword [ebp - 0x1c], 1
jne 0x49732e
cmp dword [ebp - 0x20], 0x34bc00
jg 0x497354
cmp dword [ebp - 0x1c], 2
jne 0x49733d
cmp dword [ebp - 0x20], 0x20f580
jg 0x497354
cmp dword [ebp - 0x1c], 3
jne 0x4974b4
cmp dword [ebp - 0x20], 0xd2f00
jle 0x4974b4
push 0
push 1
push ebx
lea ecx, [ebp - 0x1b8]
call fcn.004998fb
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 3
call fcn.004a1fc9
imul ebx, ebx, 0x15180
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], ebx
call fcn.004a1fc9
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x48]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 4
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004d37cb
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 5
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004d37cb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004a1fa7
mov ecx, eax
call fcn.004a207c
fld qword [ebp - 0x38]
call fcn.004aa098
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x154], eax
call fcn.004d4cec
lea ecx, [ebp - 0x38]
call fcn.004a2211
fld qword [ebp - 0x38]
mov ebx, eax
imul ebx, ebx, 0x3c
call fcn.004aa098
imul eax, eax, 0x5a0
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x24]
imul ebx, ebx, 0x5a0
sub ebx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
sub ebx, eax
call fcn.004a2243
sub ebx, eax
xor edx, edx
mov eax, ebx
push 0x3c
pop ecx
div ecx
push 0x3c
xor edx, edx
mov ecx, eax
mov eax, ebx
pop ebx
div ebx
push 0x18
mov eax, ecx
pop ebx
push ebx
mov dword [edi + 0x10], edx
xor edx, edx
div ebx
xor edx, edx
mov dword [edi + 0x18], eax
mov eax, ecx
pop ecx
div ecx
mov dword [edi + 0x14], edx
xor edi, edi
cmp dword [ebp - 0x60], edi
jne 0x4974a0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push str.ShowTrial5
push dword [ebp - 0x18]
call fcn.0042b28e
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
call fcn.00497980
jmp 0x4976e0
cmp dword [ebp - 0x58], 0
je 0x49764e
cmp dword [ebp - 0x1c], 1
jne 0x4974cd
cmp dword [ebp - 0x20], 0x1da9c0
jg 0x4974f3
cmp dword [ebp - 0x1c], 2
jne 0x4974dc
cmp dword [ebp - 0x20], 0x13c680
jg 0x4974f3
cmp dword [ebp - 0x1c], 3
jne 0x49764e
cmp dword [ebp - 0x20], 0x9e340
jle 0x49764e
push 0
push 1
push ebx
lea ecx, [ebp - 0x1b8]
call fcn.004998fb
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 6
call fcn.004a1fc9
imul ebx, ebx, 0x15180
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], ebx
call fcn.004a1fc9
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x48]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 7
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004d37cb
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 8
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004d37cb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004a1fa7
mov ecx, eax
call fcn.004a207c
fld qword [ebp - 0x38]
call fcn.004aa098
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x154], eax
call fcn.004d4cec
lea ecx, [ebp - 0x38]
call fcn.004a2211
fld qword [ebp - 0x38]
mov ebx, eax
imul ebx, ebx, 0x3c
call fcn.004aa098
imul eax, eax, 0x5a0
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x24]
imul ebx, ebx, 0x5a0
sub ebx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
sub ebx, eax
call fcn.004a2243
sub ebx, eax
xor edx, edx
mov eax, ebx
push 0x3c
pop ecx
div ecx
push 0x3c
xor edx, edx
mov ecx, eax
mov eax, ebx
pop ebx
div ebx
push 0x18
mov eax, ecx
pop ebx
push ebx
mov dword [edi + 0x10], edx
xor edx, edx
div ebx
xor edx, edx
mov dword [edi + 0x18], eax
mov eax, ecx
pop ecx
div ecx
mov dword [edi + 0x14], edx
xor edi, edi
cmp dword [ebp - 0x60], edi
jne 0x49763f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push str.ShowTrial15
push dword [ebp - 0x18]
call fcn.0042b28e
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
jmp 0x4974aa
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004a1fc9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004a1fa7
mov ecx, eax
call fcn.004a207c
lea ecx, [ebp - 0x38]
call fcn.004a2211
fld qword [ebp - 0x38]
mov ebx, eax
imul ebx, ebx, 0x3c
call fcn.004aa098
imul eax, eax, 0x5a0
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x24]
imul ebx, ebx, 0x5a0
sub ebx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
sub ebx, eax
call fcn.004a2243
sub ebx, eax
push 0x3c
mov eax, ebx
xor edx, edx
pop ecx
div ecx
push 0x3c
xor edx, edx
mov ecx, eax
mov eax, ebx
pop ebx
div ebx
push 0x18
mov eax, ecx
pop ebx
push ebx
mov dword [edi + 0x10], edx
xor edx, edx
div ebx
xor edx, edx
mov dword [edi + 0x18], eax
mov eax, ecx
pop ecx
div ecx
mov dword [edi + 0x14], edx
xor edi, edi
cmp dword [ebp - 0x28], edi
je 0x49779b
push edi
push edi
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1b8]
push edi
call fcn.004998fb
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 9
call fcn.004a1fc9
imul edi, edi, 0x15180
add edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], edi
call fcn.004a1fc9
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.004d37cb
push esi
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x48]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xb
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.004d37cb
lea ecx, [ebp - 0x1b8]
call fcn.004d4cec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
call fcn.00497980
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49796e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 0xc], 1
xor eax, eax
jmp 0x497971
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x497924
lea eax, [ebp - 0x14]
push eax
call fcn.004ac0a0
pop ecx
push 0
push 0
push 0x1e
lea ecx, [ebp - 0x1b8]
call fcn.004998fb
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0xc
call fcn.004a1fc9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
add eax, 0x278d00
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004a1fc9
mov esi, 0x400
lea eax, [ebp - 0x10]
push esi
push 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xd
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.004d37cb
push esi
push 2
pop esi
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.004a2106
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xe
call fcn.004d3904
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.004d37cb
lea ecx, [ebp - 0x1b8]
call fcn.004d4cec
cmp eax, esi
jne 0x4978bb
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
mov dword [edi + 0xc], 1
call fcn.00497980
jmp 0x4977b9
push 1
lea eax, [ebp - 0x74]
pop ebx
mov dword [ebp - 0x1c], esi
push esi
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
push str._lx__x__x
push eax
call fcn.004a9b8d
lea eax, [ebp - 0x74]
push eax
call fcn.004a9710
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
mov dword [edi + 0x10], 0x3b
mov dword [edi + 0x18], 0x1d
mov dword [edi + 0x14], 0x17
call fcn.00497980
jmp 0x49796a
mov eax, dword [0x530a90]
mov dword [ebp - 0x24], eax
push 0xf057
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xf
call fcn.004d46c7
push 0x52ffec
push str._ProgramName_
lea ecx, [ebp - 0x24]
call fcn.004cc1f2
push 0
push 0
push dword [ebp - 0x24]
call fcn.004df32b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004d37cb
and dword [edi + 0xc], 0
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret