Function at 0x431cb0
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
push esi
mov esi, ecx
push edi
push 0xf7
mov eax, dword [esi + 0x12c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 2
mov edi, eax
push 0xffffffffffffffff
push 0x100c
push edi
call ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 4
push ecx
push 0
push 0x1005
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
call ebp
test eax, eax
je 0x432141
mov eax, dword [esi + 0x12c]
lea edx, [esp + 0x58]
push 0x1f
push edx
push 0x101
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, dword [esi + 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 edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x431d6c
mov al, byte [esp + 0x1d0]
test al, al
jne 0x431e59
mov edx, dword [esi + 0x13c]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov eax, dword [esi + 0x13c]
jne 0x431da8
lea ecx, [esp + 0x1d0]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x431e59
inc eax
lea ecx, [esp + 0x5e4]
push eax
push ecx
call ebp
lea edx, [esp + 0x5e4]
push edx
call fcn.004bef76
lea eax, [esp + 0x5e8]
lea ecx, [esp + 0x4e4]
push eax
push str._s_auto_file
push ecx
call edi
lea edx, [esp + 0x5f4]
lea eax, [esp + 0xd8]
push edx
push str._s_File
push eax
call edi
add esp, 0x1c
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 [esi + 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 ebp
mov eax, dword [esp + 0x50]
test eax, eax
je 0x431e65
mov ebx, dword [eax]
jmp 0x431e6b
mov ebx, dword [esi + 0x134]
lea eax, [esp + 0x3d8]
push 0x105
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [esi + 0x138]
lea edx, [esp + 0x1d0]
push ecx
push edx
lea eax, [esp + 0x2dc]
push str._s_shell_s
push eax
call edi
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 0x431ef8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x4eb858
lea edx, [esp + 0x2ec]
push 0
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x432141
lea eax, [esp + 0x3d8]
lea ecx, [esp + 0x6e8]
push eax
push ecx
call ebp
lea edx, [esp + 0x6e8]
push edx
call fcn.004cb052
mov eax, dword [str.ACDSee32.exe]
add esp, 4
lea ecx, [esp + 0x78]
push eax
push ecx
call ebp
lea edx, [esp + 0x78]
push edx
call fcn.004cb052
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 0x431f61
lea ecx, [esp + 0x1c]
push str.___1_
push ecx
jmp 0x431f6b
lea edx, [esp + 0x1c]
push 0x4e0d30
push edx
call edi
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x6e8]
push eax
push ecx
call fcn.004be9b0
add esp, 8
test eax, eax
je 0x431ff1
lea edx, [esp + 0x58]
push 0x4e006c
push edx
call ebp
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0xc
push str._open___1___
push 1
push str.DDEExec
push eax
call ebp
mov ecx, dword [str.ACDSee_32]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call ebx
mov edx, dword [str.ACDSee_32]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push str.DDEExecApplication
push eax
call ebp
mov ecx, dword [esp + 0x10]
push 6
push str.System
push 1
push str.DDEExecTopic
push ecx
call ebp
mov byte [esp + 0x1c], 0
jmp 0x43200d
mov edx, dword [esp + 0x10]
push str.DDEExec
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
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 edi
add esp, 0x14
lea ecx, [esp + 0x7ec]
push ecx
call ebx
lea edx, [esp + 0x7ec]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push str.command
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esi + 0x138]
push str.open
push edx
call fcn.004cab10
add esp, 8
test eax, eax
jne 0x43213b
mov eax, dword [esi + 0x138]
lea ecx, [esp + 0x1d0]
push eax
push ecx
lea edx, [esp + 0x2dc]
push str._sDefaultIcon
push edx
call edi
mov al, byte [0x4eb858]
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 edi, 0x4e0ce8
lea eax, [esp + 0xc8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x43210e
test cl, cl
je 0x43210a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x43210e
add eax, 2
add edi, 2
test cl, cl
jne 0x4320ea
xor eax, eax
jmp 0x432113
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43213b
lea eax, [esp + 0x3d8]
push eax
call ebx
lea ecx, [esp + 0x3d8]
push eax
push ecx
lea edx, [esp + 0x2dc]
push 1
push edx
push 0x80000000
call ebp
mov dword [esi], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa68
ret