Function at 0x42bc7e
Capabilities:
Check if file exists
Check os version
Delete registry key
Delete registry value
Persist via contextmenuhandlers registry key
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab754
mov eax, dword fs:[0]
push eax
mov eax, 0x1b1c
call fcn.0042cd60
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b28], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b00], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1b18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1b14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1b08], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1b24], eax
call fcn.00404e60
mov ecx, eax
call fcn.0042e8ba
push eax
lea ecx, [ebp - 0x19e8]
call fcn.00402d70
mov esi, 0x5b21cc
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00459845
pop ecx
push eax
push esi
lea ecx, [ebp - 0x19e8]
call fcn.00406130
push str.HPPAssist.dll
call fcn.00459860
pop ecx
test eax, eax
je 0x42c769
cmp dword [ebp - 0x19d4], 8
lea eax, [ebp - 0x19e8]
cmovae eax, dword [ebp - 0x19e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c769
push 0x1e
pop ecx
mov esi, 0x5b1ae8
lea edi, [ebp - 0x1f8]
rep movsd dword es:[edi], dword [esi]
push 0x4e
lea eax, [ebp - 0x17e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.0044b370
mov esi, 0xc8
lea eax, [ebp - 0x3c8]
push esi
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0x2c0]
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.0044b370
mov esi, 0x190
lea eax, [ebp - 0x9b8]
push esi
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0xcd8]
push ebx
push eax
call fcn.0044b370
add esp, 0x48
lea eax, [ebp - 0x19d0]
push 0x7d0
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0xe68]
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0xb48]
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0xff8]
push ebx
push eax
call fcn.0044b370
push 0x100
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0044b370
push esi
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.0044b370
mov edi, dword [ebp - 0x1b00]
lea eax, [ebp - 0x130]
add esp, 0x48
push edi
push dword [ebp - 0x1b1c]
push str._s_s
push eax
call fcn.004065c0
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00459823
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.004599c4
lea eax, [ebp - 0x3c8]
push str.OpenWithProgids
push eax
call fcn.004599c4
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00459823
lea eax, [ebp - 0x2c0]
push edi
push eax
call fcn.004599c4
lea eax, [ebp - 0x2c0]
push str.UserChoice
push eax
call fcn.004599c4
add esp, 0x40
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00459823
lea eax, [ebp - 0x490]
push edi
push eax
call fcn.004599c4
lea eax, [ebp - 0x490]
push str.OpenWithList
push eax
call fcn.004599c4
lea eax, [ebp - 0x1f8]
push edi
push eax
call fcn.004599c4
mov esi, dword [ebp - 0x1b28]
lea eax, [ebp - 0x9b8]
push dword [esi]
push eax
call fcn.00459823
lea eax, [ebp - 0x9b8]
push str.SoftwareClasses_
push eax
call fcn.004599c4
lea eax, [ebp - 0x9b8]
push edi
push eax
call fcn.004599c4
lea eax, [ebp - 0x9b8]
push eax
lea eax, [ebp - 0xcd8]
push eax
call fcn.00459823
add esp, 0x40
lea eax, [ebp - 0xcd8]
push str.OpenWithProgids
push eax
call fcn.004599c4
push dword [esi]
lea eax, [ebp - 0x828]
push eax
call fcn.00459823
lea eax, [ebp - 0x828]
push str.SoftwareClasses_
push eax
call fcn.004599c4
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004599c4
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x19d0]
push eax
call fcn.00459823
lea eax, [ebp - 0x19d0]
push str.DefaultIcon
push eax
call fcn.004599c4
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00459823
lea eax, [ebp - 0xe68]
push str._shellopencommand
push eax
call fcn.004599c4
add esp, 0x40
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xb48]
push eax
call fcn.00459823
lea eax, [ebp - 0xb48]
push str._shellexContextMenuHandlers_
push eax
call fcn.004599c4
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xff8]
push eax
call fcn.00459823
lea eax, [ebp - 0xff8]
push str._shellexDropHandler
push eax
call fcn.004599c4
add esp, 0x20
cmp byte [ebp + 0x24], bl
je 0x42c5bc
push dword [ebp - 0x1b08]
lea eax, [ebp - 0xb48]
push eax
call fcn.004599c4
and dword [esi + 4], ebx
lea eax, [ebp - 0x130]
pop ecx
pop ecx
push eax
push str.ProgId
lea eax, [ebp - 0x2c0]
mov edi, reloc.WS2_32.dll_accept
push eax
push edi
mov ecx, esi
call fcn.0042b548
test al, al
je 0x42c15c
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call fcn.0042b50c
test al, al
je 0x42c15c
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
push 0x62be94
lea eax, [ebp - 0x9b8]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b548
test al, al
je 0x42c15c
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0xcd8]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b50c
test al, al
je 0x42c15c
push dword [ebp - 0x1b14]
lea eax, [ebp - 0x19d0]
mov ecx, esi
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b548
test al, al
je 0x42c15c
push dword [ebp - 0x1b18]
lea eax, [ebp - 0xe68]
mov ecx, esi
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b548
test al, al
je 0x42c15c
push ebx
push ebx
lea eax, [ebp - 0xb48]
mov ecx, esi
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b50c
test al, al
je 0x42c15c
push dword [ebp - 0x1b08]
lea eax, [ebp - 0xff8]
mov ecx, esi
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0042b548
test al, al
je 0x42c15c
mov eax, dword [ebp - 0x1b24]
mov dword [esi + 4], 1
push str.check_failed
mov byte [eax], bl
call fcn.004309f9
pop ecx
jmp 0x42c769
mov eax, dword [ebp - 0x1b24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [eax], 1
lea eax, [ebp - 0x2c0]
push eax
push edi
call esi
lea eax, [ebp - 0x3c8]
push eax
push edi
call esi
lea eax, [ebp - 0x490]
push eax
push edi
call esi
lea eax, [ebp - 0x1f8]
push eax
push edi
call esi
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and dword [ebp - 0x1b04], ebx
lea eax, [ebp - 0x1b04]
push eax
push 0
lea eax, [ebp - 0x1b10]
mov dword [ebp - 0x1b10], 1
push eax
push 0x62be94
push dword [ebp - 0x1b00]
mov esi, connect
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42c2a1
push dword [ebp - 0x1b04]
call fcn.00459818
push dword [ebp - 0x1b04]
mov ebx, eax
push 0
push ebx
call fcn.0044b370
add esp, 0x10
mov dword [ebp - 0x1b10], 1
lea eax, [ebp - 0x1b04]
push eax
push ebx
lea eax, [ebp - 0x1b10]
push eax
push 0x62be94
push dword [ebp - 0x1b00]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x42c2a1
push ebx
call fcn.00459845
pop ecx
test eax, eax
je 0x42c2a1
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.0045a161
pop ecx
pop ecx
test eax, eax
je 0x42c2a1
push 0x208
lea eax, [ebp - 0x698]
push 0
push eax
call fcn.0044b370
push dword [ebp - 0x1b1c]
lea eax, [ebp - 0x698]
push str._sBackup
push eax
call fcn.004065c0
push ebx
call fcn.00459845
add esp, 0x1c
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x1b00]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call esi
jmp 0x42c2a7
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x130]
push eax
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push 1
push 0x62be94
lea eax, [ebp - 0x9b8]
push eax
push reloc.WS2_32.dll_closesocket
call esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xcd8]
push eax
push reloc.WS2_32.dll_closesocket
call esi
push dword [ebp - 0x1b14]
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b14]
lea eax, [ebp - 0x19d0]
push 1
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call esi
push dword [ebp - 0x1b18]
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b18]
lea eax, [ebp - 0xe68]
push 1
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call esi
xor eax, eax
push eax
push eax
push 1
push eax
lea eax, [ebp - 0xb48]
push eax
push reloc.WS2_32.dll_closesocket
call esi
push dword [ebp - 0x1b08]
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b08]
lea eax, [ebp - 0xff8]
push 1
push 0x62be94
push eax
push reloc.WS2_32.dll_closesocket
call esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call esi
lea eax, [ebp - 0x130]
push eax
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push 1
push str.ProgId
lea eax, [ebp - 0x2c0]
push eax
push edi
call esi
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x2c0]
push eax
push str.SHSetValue_HKEY_CURRENT_USER__s
call fcn.004309f9
push 0x110
lea eax, [ebp - 0x1af8]
push 0
push eax
call fcn.0044b370
add esp, 0x18
mov dword [ebp - 0x1afc], 0x114
lea eax, [ebp - 0x1afc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1af8], 6
jb 0x42c586
cmp dword [ebp - 0x1af4], 2
jb 0x42c730
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
push 0x40
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x300]
push eax
call fcn.0044b370
push 0x208
xor edi, edi
lea eax, [ebp - 0x1200]
push edi
push eax
call fcn.0044b370
push 0x208
lea eax, [ebp - 0x698]
push edi
push eax
call fcn.0044b370
add esp, 0x24
lea eax, [ebp - 0x698]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x698]
push eax
call fcn.00459845
pop ecx
test eax, eax
jne 0x42c4bf
call fcn.00404e60
mov ecx, eax
call fcn.0042e8ba
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.00459823
pop ecx
pop ecx
lea eax, [ebp - 0x698]
push 0x5c
push eax
call fcn.0044d16b
pop ecx
pop ecx
test eax, eax
je 0x42c4d9
xor ecx, ecx
mov word [eax + 2], cx
push 0x5b21cc
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x1200]
push str._s_s
push eax
call fcn.004065c0
add esp, 0x10
lea eax, [ebp - 0x1200]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x42c530
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c530
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push dword [ebp - 0x1b00]
call eax
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.00459860
pop ecx
test eax, eax
je 0x42c72b
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004348a4
lea eax, [ebp - 0x130]
push eax
call fcn.00459845
add esp, 0xc
mov edi, reloc.WS2_32.dll_accept
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x300]
push eax
push 1
push str.Hash
lea eax, [ebp - 0x2c0]
push eax
push edi
jmp 0x42c5b5
lea eax, [ebp - 0x130]
push eax
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push 1
push 0x62be94
lea eax, [ebp - 0x1f8]
push eax
push reloc.WS2_32.dll_closesocket
call esi
jmp 0x42c730
push 0x5b239c
call fcn.004309f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x2c0]
pop ecx
push eax
mov edi, reloc.WS2_32.dll_accept
push edi
call esi
lea eax, [ebp - 0x3c8]
push eax
push edi
call esi
lea eax, [ebp - 0x490]
push eax
push edi
call esi
lea eax, [ebp - 0x1f8]
push eax
push edi
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [ebp - 0x1f8]
push eax
push edi
call esi
lea eax, [ebp - 0x130]
push eax
push connect
call esi
and dword [ebp - 0x1b0c], ebx
lea eax, [ebp - 0x698]
push 0x208
push 0
push eax
mov dword [ebp - 0x1b20], 1
call fcn.0044b370
push dword [ebp - 0x1b1c]
lea eax, [ebp - 0x698]
push str._sBackup
push eax
call fcn.004065c0
add esp, 0x18
lea eax, [ebp - 0x1b0c]
lea esi, [edi - 1]
push eax
push 0
lea eax, [ebp - 0x1b20]
push eax
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x1b00]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42c730
push dword [ebp - 0x1b0c]
call fcn.00459818
push dword [ebp - 0x1b0c]
mov ebx, eax
push 0
push ebx
call fcn.0044b370
add esp, 0x10
mov dword [ebp - 0x1b20], 1
lea eax, [ebp - 0x1b0c]
push eax
push ebx
lea eax, [ebp - 0x1b20]
push eax
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x1b00]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x42c730
push ebx
call fcn.00459845
pop ecx
test eax, eax
je 0x42c730
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.0045a161
pop ecx
pop ecx
test eax, eax
je 0x42c715
push ebx
call fcn.00459845
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x62be94
push dword [ebp - 0x1b00]
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x1b00]
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x42c730
mov edi, reloc.WS2_32.dll_accept
mov esi, dword [ebp - 0x1b28]
lea eax, [ebp - 0x130]
push eax
push str.ProgId
lea eax, [ebp - 0x2c0]
mov ecx, esi
push eax
push edi
call fcn.0042b548
test al, al
je 0x42c75c
mov dword [esi + 4], 1
test ebx, ebx
je 0x42c767
push ebx
call fcn.00457a44
pop ecx
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x19e8]
call fcn.00402fd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 0x24