Function at 0x409510
Capabilities:
Delete registry key
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c1fc
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2a4]
mov ebx, ecx
push 0x206
xor edi, edi
lea ecx, [esp + 0x8e]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x94], ax
call fcn.00452c80
lea edx, [esp + 0x94]
push edx
push ebp
call fcn.00409420
lea eax, [esp + 0x9c]
add esp, 0x14
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x409592
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [esp + 0x8c]
push eax
push 1
push str.previous.zxm
push str.SoftwareClassesZHIXI.MIND.1.0
push ebp
call esi
push 0x1a
push str.ZXM_Document
push 1
push edi
push str.SoftwareClassesZHIXI.MIND.1.0
push ebp
call esi
xor ecx, ecx
push edi
mov eax, 0x477e5c
lea esi, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], cx
call fcn.00403ee0
mov dword [esp + 0x29c], edi
xor edx, edx
mov eax, ebx
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409620
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x1c]
call fcn.00403ee0
mov edi, esi
lea ebx, [esp + 0x50]
mov byte [esp + 0x29c], 1
call fcn.0042d100
mov esi, 8
mov byte [esp + 0x29c], 3
cmp dword [esp + 0x30], esi
jb 0x40966e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044caf8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0x64], ecx
jbe 0x4096da
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x409699
lea eax, [esp + 0x54]
mov edi, dword [esp + 0x14]
push eax
push edi
mov edx, str.icon_files_zxm.ico
lea ecx, [esp + 0x3c]
call fcn.0042eed0
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x2a4], 4
call fcn.004042a0
cmp dword [esp + 0x4c], esi
jb 0x4096de
mov edx, dword [esp + 0x38]
push edx
call fcn.0044caf8
add esp, 4
jmp 0x4096de
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
cmp dword [esp + 0x84], esi
jae 0x4096ef
lea edx, [esp + 0x70]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4096f4
sub eax, esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.SoftwareClassesZHIXI.MIND.1.0DefaultIcon
push ebp
call esi
push 0xa
push 0x47812c
push 1
push 0
push str.SoftwareClassesZHIXI.MIND.1.0_shell
push ebp
call esi
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea ecx, [esp + 0x8c]
push str._s____1____
push ecx
call ebx
lea eax, [esp + 0x94]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409751
sub eax, ecx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x8c]
push eax
push 1
push 0
push str.SoftwareClassesZHIXI.MIND.1.0_shellopencommand
push ebp
call esi
push edi
lea ecx, [esp + 0x8c]
push str.__s___print_to_default____1_
push ecx
mov dword [esp + 0x20], eax
call ebx
lea eax, [esp + 0x94]
add esp, 0xc
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4097a0
sub eax, ecx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x8c]
push eax
push 1
push 0
push str.SoftwareClassesZHIXI.MIND.1.0_shellprintcommand
push ebp
call esi
push edi
lea ecx, [esp + 0x8c]
push str.__s___print_to____2_____1_
push ecx
call ebx
lea eax, [esp + 0x94]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097e5
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x8c]
push eax
push 1
xor edi, edi
push edi
push str.SoftwareClassesZHIXI.MIND.1.0_shellprinttocommand
push ebp
call esi
cmp dword [esp + 0x14], edi
jne 0x40987e
push 0x1e
push str.ZHIXI.MIND.1.0
push 1
push edi
push str.SoftwareClasses.zxm
push ebp
call esi
push 2
push 0x477e5c
push 1
push str.ZHIXI.MIND.1.0
push str.SoftwareClasses.zxmOpenWithProgids
push ebp
call esi
cmp ebp, 0x80000001
jne 0x40987e
push 0x1e
push str.ZHIXI.MIND.1.0
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.zxm
push ebp
call esi
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.zxm
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, ebp
call fcn.004094b0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.zxmUserChoice
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x409896
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0044caf8
add esp, 4
xor edx, edx
mov word [esp + 0x54], dx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 7
cmp dword [esp + 0x84], esi
jb 0x4098bf
mov eax, dword [esp + 0x70]
push eax
call fcn.0044caf8
add esp, 4
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.0044c790
add esp, 0x28c
ret