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

Disassembly:
jmp 0x425c70
jmp 0x465d70
call fcn.00403139
jmp 0x402284
push 0xffffffffffffffff
push 0x529fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x734
push esi
push edi
xor esi, esi
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, eax
mov dword [esp + 0x18], edi
mov ecx, 0x5688a8
mov dword [esp + 0x744], esi
call fcn.00402243
mov ecx, dword [0x5688b0]
xor eax, eax
cmp ecx, esi
jle 0x465de8
cmp eax, ecx
jge 0x465dd8
cmp eax, esi
jl 0x465dd8
mov ecx, dword [0x5688ac]
mov ecx, dword [ecx + eax*4]
jmp 0x465dda
xor ecx, ecx
mov dword [ecx + 0x14], esi
mov ecx, dword [0x5688b0]
inc eax
cmp eax, ecx
jl 0x465dc9
mov ecx, 0x5688a8
call fcn.00401f5a
lea edx, [esp + 0x6c]
push 0x105
push edx
push esi
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x466104
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp byte [esp + 0x74], 0x2e
jne 0x465fa9
mov al, byte [0x5688a4]
mov ecx, 0x41
mov byte [esp + 0x324], al
xor eax, eax
lea edi, [esp + 0x325]
lea edx, [esp + 0x324]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x74]
push ecx
push edx
push eax
push SysReAllocString
mov dword [esp + 0x28], 0x105
call ebp
mov al, byte [esp + 0x324]
test al, al
je 0x4660d9
lea ecx, [esp + 0x10]
lea edx, [esp + 0x324]
push ecx
push edx
push SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4660d9
lea ecx, [esp + 0x18]
lea edx, [esp + 0x534]
push ecx
push edx
push str.shellopencommand
push eax
mov dword [esp + 0x28], 0x105
call ebp
test eax, eax
jne 0x465f99
lea eax, [esp + 0x534]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [esp + 0x534]
push str.fotocanvas2.exe
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
je 0x465f99
lea edx, [esp + 0x74]
lea eax, [esp + 0x42c]
push edx
push str._sUndoClass
push eax
call ebx
mov cl, byte [0x5688a4]
xor eax, eax
mov byte [esp + 0x228], cl
mov ecx, 0x41
lea edi, [esp + 0x229]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x21c]
push edx
lea ecx, [esp + 0x430]
push eax
push ecx
push SysReAllocString
mov dword [esp + 0x28], 0x105
call ebp
test eax, eax
jne 0x465f65
lea edx, [esp + 0x42c]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov al, byte [esp + 0x21c]
test al, al
je 0x465f99
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x21c]
push eax
push ecx
lea edx, [esp + 0x7c]
push 1
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4660d9
push 0xc
lea ecx, [esp + 0x78]
push str.FotoCanvas2.
push ecx
call dword [sym.imp.MSVCRT.dll__memicmp]
add esp, 0xc
test eax, eax
jne 0x465fda
lea edx, [esp + 0x74]
push edx
push SysReAllocString
call fcn.00478d20
add esp, 8
dec esi
jmp 0x4660d9
lea eax, [esp + 0x74]
lea ecx, [esp + 0x17c]
push eax
push str._s_shell
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x17c]
mov dword [esp + 0x14], 0
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4660d9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x24]
xor esi, esi
push 0x50
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4660ca
lea edx, [esp + 0x24]
lea eax, [esp + 0x1cc]
push edx
push str._scommand
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x63c]
lea eax, [esp + 0x1cc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x105
call ebp
test eax, eax
jne 0x4660b2
lea edx, [esp + 0x63c]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [esp + 0x63c]
push str.fotocanvas2.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
je 0x4660b2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00478d20
add esp, 8
dec esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
inc esi
push 0x50
push eax
push esi
push ecx
call edi
test eax, eax
je 0x466038
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x74]
inc esi
push 0x105
push eax
push esi
push SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x465e22
mov edi, dword [esp + 0x20]
pop ebp
xor esi, esi
pop ebx
cmp edi, esi
je 0x46610c
mov eax, edi
jmp 0x466118
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x73c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x740
ret