Function at 0x427eb0
Capabilities:
Delete registry key
Get file system object information
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xa68
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0xf7
mov eax, dword [ebp + 0x12c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
mov esi, eax
push 0xffffffffffffffff
push 0x100c
push esi
call edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 4
push ecx
push 0
push 0x1005
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
call edi
test eax, eax
je 0x428348
mov eax, dword [ebp + 0x12c]
lea edx, [esp + 0x58]
push 0x1f
push edx
push 0x101
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, dword [ebp + 0x13c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1d0]
push ecx
push edx
push eax
push 0x80000000
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x427f6c
mov al, byte [esp + 0x1d0]
test al, al
jne 0x42805f
mov edx, dword [ebp + 0x13c]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov eax, dword [ebp + 0x13c]
jne 0x427fa8
lea ecx, [esp + 0x1d0]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42805f
inc eax
lea ecx, [esp + 0x5e4]
push eax
push ecx
call edi
lea edx, [esp + 0x5e4]
push edx
call fcn.004a7db0
add esp, 4
lea eax, [esp + 0x5e4]
lea ecx, [esp + 0x4e0]
push eax
push str._s_auto_file
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x5e4]
lea eax, [esp + 0xc8]
push edx
push str._s_File
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x4e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
lea edx, [esp + 0x4e0]
push eax
mov eax, dword [ebp + 0x13c]
push edx
push 1
push eax
push 0x80000000
call ebx
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0xc8]
push eax
push edx
lea eax, [esp + 0x4e8]
push 1
push eax
push 0x80000000
call ebx
lea ecx, [esp + 0x4e0]
lea edx, [esp + 0x1d0]
push ecx
push edx
call edi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x42806b
mov ebx, dword [eax]
jmp 0x428071
mov ebx, dword [ebp + 0x134]
lea eax, [esp + 0x3d8]
push 0x105
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [ebp + 0x138]
lea edx, [esp + 0x1d0]
push ecx
push edx
lea eax, [esp + 0x2dc]
push str._s_shell_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2d4]
push ecx
push 0x20006
push 0
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4280fe
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x4caf4c
lea edx, [esp + 0x2ec]
push 0
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x428348
lea eax, [esp + 0x3d8]
lea ecx, [esp + 0x6e8]
push eax
push ecx
call edi
lea edx, [esp + 0x6e8]
push edx
call fcn.004a7f30
mov eax, dword [str.ACDSee32.exe]
add esp, 4
lea ecx, [esp + 0x78]
push eax
push ecx
call edi
lea edx, [esp + 0x78]
push edx
call fcn.004a7f30
add esp, 4
lea eax, [esp + 0x918]
push 0x2000
push 0x160
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp ax, 0x4550
jne 0x428167
lea ecx, [esp + 0x1c]
push str.___1_
push ecx
jmp 0x428171
lea edx, [esp + 0x1c]
push 0x4bed20
push edx
call esi
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x6e8]
push eax
push ecx
call fcn.00498650
add esp, 8
test eax, eax
je 0x4281f5
lea edx, [esp + 0x58]
push 0x4be07c
push edx
call edi
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0xc
push str._open___1___
push 1
push str.DDEExec
push eax
call ebx
mov ecx, dword [str.ACDSee_32]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [str.ACDSee_32]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push str.DDEExecApplication
push eax
call ebx
mov ecx, dword [esp + 0x10]
push 6
push str.System
push 1
push str.DDEExecTopic
push ecx
call ebx
mov byte [esp + 0x1c], 0
jmp 0x42820b
mov edx, dword [esp + 0x10]
push str.DDEExec
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x3dc]
push ecx
push edx
lea eax, [esp + 0x7f8]
push str._s__s__s
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x7ec]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x7ec]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push str.command
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x138]
push str.open
push edx
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x428341
mov eax, dword [ebp + 0x138]
lea ecx, [esp + 0x1d0]
push eax
push ecx
lea edx, [esp + 0x2dc]
push str._sDefaultIcon
push edx
call esi
mov al, byte [0x4caf4c]
mov ecx, 0x41
mov byte [esp + 0xd8], al
xor eax, eax
lea edi, [esp + 0xd9]
add esp, 0x10
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc8]
push ecx
lea eax, [esp + 0x2d8]
push edx
push eax
push 0x80000000
mov dword [esp + 0x24], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, 0x4becd8
lea eax, [esp + 0xc8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x428310
test cl, cl
je 0x42830c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x428310
add eax, 2
add esi, 2
test cl, cl
jne 0x4282ec
xor eax, eax
jmp 0x428315
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x428341
lea eax, [esp + 0x3d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x3d8]
push eax
push ecx
lea edx, [esp + 0x2dc]
push 1
push edx
push 0x80000000
call ebx
mov dword [ebp], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa68
ret