Function at 0x45a0d2
Capabilities:
Delete registry key
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0044c71e
mov eax, dword [0x496330]
pop ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
pop ecx
jl 0x45a107
mov dword [ebp - 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45a119
mov ecx, dword [0x481530]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
call fcn.004080f7
mov eax, dword [0x48c0b4]
mov dword [ebp - 0xc], ebx
cmp eax, 1
jne 0x45a150
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push ebx
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a1b2
lea ecx, [ebp - 0xc]
call fcn.0040372d
mov eax, dword [ebp - 0x1c]
jmp 0x45a1af
cmp eax, 2
jne 0x45a183
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareClasses
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a1b2
lea ecx, [ebp - 0xc]
call fcn.0040372d
mov eax, dword [ebp - 0x1c]
jmp 0x45a1af
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareClasses
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a1b2
lea ecx, [ebp - 0xc]
call fcn.0040372d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0x20019
push ebx
push str.qdirdoc_shellopencommand
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov esi, str.___1_
jne 0x45a2ce
lea ecx, [ebp - 8]
call fcn.0040372d
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x45a2ce
mov eax, dword [0x481530]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, 0x400
push eax
mov dword [ebp - 0x24], eax
call fcn.004016d3
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040173b
push esi
lea ecx, [ebp - 0x20]
call fcn.004013c7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b5
push dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call fcn.0046ded5
neg eax
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], al
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
cmp byte [ebp - 1], bl
je 0x45a2c6
cmp dword [ebp + 8], ebx
jne 0x45a28e
push dword [0x496334]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00403744
lea ecx, [ebp - 0x1c]
call fcn.0040139b
lea ecx, [ebp - 0xc]
call fcn.0040372d
lea ecx, [ebp - 0x10]
call fcn.0040139b
lea ecx, [ebp - 0x14]
call fcn.0040372d
lea ecx, [ebp - 8]
call fcn.0040372d
lea ecx, [ebp - 0x18]
call fcn.0040139b
push 1
pop eax
jmp 0x45a499
lea ecx, [ebp - 0x1c]
call fcn.0040139b
cmp dword [ebp + 8], 0xffffffff
je 0x45a46f
cmp dword [ebp + 8], 1
jne 0x45a46f
cmp dword [ebp - 8], ebx
je 0x45a2f3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea edx, [ebp - 0x28]
mov ecx, dword [0x496334]
mov eax, dword [ebp - 0xc]
push edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x45a32a
lea ecx, [ebp - 8]
call fcn.0040372d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x481530]
push 2
pop edi
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
push dword [ebp - 0x18]
push str._s__d
push eax
call fcn.004017cb
add esp, 0x10
lea ecx, [ebp - 0x20]
push str._shellopencommand
call fcn.004013c7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b5
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
lea ecx, [ebp - 8]
push dword [ebp - 0x14]
call fcn.004057cd
lea ecx, [ebp - 0x28]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
push esi
lea ecx, [ebp - 0x20]
call fcn.004013c7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b5
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 8]
call fcn.00405824
lea ecx, [ebp - 0x28]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
lea ecx, [ebp - 8]
call fcn.0040372d
push ebx
push ebx
push edi
push ebx
push ebx
lea ecx, [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004057cd
push ebx
lea ecx, [ebp - 8]
push dword [0x496338]
call fcn.00405824
lea ecx, [ebp - 8]
call fcn.0040372d
push str.DefaultIcon
lea ecx, [ebp - 0x20]
call fcn.004013c7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b5
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
lea ecx, [ebp - 8]
push dword [ebp - 0x14]
call fcn.004057cd
lea ecx, [ebp - 0x28]
call fcn.0040139b
lea ecx, [ebp - 0x20]
call fcn.0040139b
push ebx
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.00405824
lea ecx, [ebp - 8]
call fcn.0040372d
lea ecx, [ebp + 8]
call fcn.0040139b
pop edi
lea ecx, [ebp - 0xc]
call fcn.0040372d
lea ecx, [ebp - 0x10]
call fcn.0040139b
lea ecx, [ebp - 0x14]
call fcn.0040372d
lea ecx, [ebp - 8]
call fcn.0040372d
lea ecx, [ebp - 0x18]
call fcn.0040139b
xor eax, eax
pop esi
pop ebx
leave
ret