Function at 0x42cf30
Capabilities:
Check if file exists
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [0x4e9688]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4ef36c
mov dword [0x4f24a4], edi
mov dword [0x4f24a8], edi
mov dword [0x4f24ac], edi
mov dword [0x4f24b0], 1
mov dword [0x4f24b4], edi
call edx
add eax, 0x10
mov dword [0x4f24b8], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov dword [0x4f24bc], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov dword [0x4f24c0], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov dword [0x4f24c4], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov dword [0x4f24c8], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
mov dword [0x4f24cc], 0x4ce030
call edx
add eax, 0x10
mov dword [0x4f24d4], eax
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov esi, 0x4f24dc
mov dword [0x4f24d8], eax
call fcn.0042de50
push 0x104
push 0x4f1b68
push edi
mov byte [0x4f2630], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7e
push 0x4f1b68
call fcn.00495cf4
add esp, 8
test eax, eax
je 0x42d06c
push 0x104
push 0x4f1b68
push 0x4f1b68
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x104
mov eax, 0x4f1d70
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d099
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x42d099
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d076
jmp 0x42d09d
cmp edx, edi
jne 0x42d0a0
sub eax, 2
xor edx, edx
push 0x4f1d70
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f1d70
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x206
lea edx, [esp + 0x226]
xor eax, eax
xor ecx, ecx
push edi
push edx
mov word [0x4f1f78], ax
mov word [esp + 0x22c], cx
call fcn.00497780
push 0x206
lea ecx, [esp + 0x43a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x440], ax
call fcn.00497780
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42d139
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x42d155
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
lea esi, [esp + 0x14]
call fcn.00423790
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x42d1bf
lea eax, [esp + 0x220]
mov esi, 0x4f1d70
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d192
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42d192
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d172
jmp 0x42d196
cmp edx, edi
jne 0x42d199
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x42d3bb
push str.Path
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x228]
call fcn.004237f0
test eax, eax
mov eax, esi
je 0x42d2cb
mov esi, 0x4f1d70
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d211
movzx ecx, word [eax + esi]
test cx, cx
je 0x42d211
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d1f1
jmp 0x42d215
test edx, edx
jne 0x42d218
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x224]
push ecx
push 1
push 0
push str.Path
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00497780
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22c]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x42d2a0
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42d375
movzx edx, word [eax + ecx]
test dx, dx
je 0x42d375
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42d2a0
jmp 0x42d379
push 0x7e
push eax
call fcn.00495cf4
add esp, 8
test eax, eax
je 0x42d3b2
push 0x104
lea ecx, [esp + 0x224]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x224]
push edx
push 1
push 0
push str.Path
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00497780
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22c]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42d375
movzx edx, word [eax + ecx]
test dx, dx
je 0x42d375
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42d355
jmp 0x42d379
test esi, esi
jne 0x42d37c
sub eax, 2
push str.safemonQHSafeTray.exe
lea edx, [esp + 0x1c]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0x4c4348
push ebx
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42d3f4
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x42d410
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea esi, [esp + 0x14]
call fcn.00423790
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x42d47d
lea eax, [esp + 0x428]
mov esi, 0x4f1d70
mov ecx, eax
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d450
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42d450
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d430
jmp 0x42d454
cmp edx, edi
jne 0x42d457
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x42d67b
push str.Path
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x430]
call fcn.004237f0
test eax, eax
mov eax, esi
je 0x42d58b
mov esi, 0x4f1d70
mov ecx, eax
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d4d0
movzx ecx, word [eax + esi]
test cx, cx
je 0x42d4d0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d4b0
jmp 0x42d4d4
test edx, edx
jne 0x42d4d7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x42c]
push ecx
push 1
push 0
push str.Path
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00497780
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x42d560
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42d635
movzx edx, word [eax + ecx]
test dx, dx
je 0x42d635
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42d560
jmp 0x42d639
push 0x7e
push eax
call fcn.00495cf4
add esp, 8
test eax, eax
je 0x42d672
push 0x104
lea ecx, [esp + 0x42c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x42c]
push edx
push 1
push 0
push str.Path
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00497780
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42d635
movzx edx, word [eax + ecx]
test dx, dx
je 0x42d635
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42d615
jmp 0x42d639
test esi, esi
jne 0x42d63c
sub eax, 2
push 0x4cdf84
lea edx, [esp + 0x1c]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0x4c4348
push ebx
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42d6ac
mov esi, dword [esp + 0xc]
jmp 0x42d6c8
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
lea esi, [esp + 0x14]
call fcn.00423790
mov esi, dword [esp + 0x10]
push 0x206
lea edx, [esp + 0x1e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x24], cx
call fcn.00497780
lea eax, [esp + 0x24]
mov ebx, 0x4f1d70
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub ebx, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d714
movzx ecx, word [eax + ebx]
cmp cx, di
je 0x42d714
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d6f4
jmp 0x42d718
cmp edx, edi
jne 0x42d71b
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push edi
push str.Path
push esi
call ebx
push str.QHSafeMain.exe
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push edi
push 0x4c4348
push esi
call ebx
cmp esi, edi
je 0x42d78c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.00491c26
add esp, 8
test eax, eax
jne 0x42d7fa
mov eax, 0x4f1f78
lea esi, [esp + 0x428]
mov edx, 0x104
sub esi, eax
jmp 0x42d7c0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d7e9
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42d7e9
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d7c0
sub eax, 2
mov word [eax], dx
jmp 0x42d88b
cmp edx, edi
jne 0x42d7f0
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x42d88b
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42d88b
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x224]
push eax
push 1
push edi
push str.Path
push esi
call ebx
push 0x4cdf84
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x224]
push ecx
push 1
push edi
push 0x4c4348
push esi
call ebx
cmp esi, edi
je 0x42d88b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x4f1f78], di
je 0x42d8b2
push 0x4f1f78
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d8b2
push 0x4f1f78
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42d8fa
mov edx, 0x104
mov eax, 0x4f1f78
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42d8e3
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x42d8e3
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42d8c0
jmp 0x42d8e7
cmp edx, edi
jne 0x42d8ea
sub eax, 2
xor edx, edx
push 0x4f1f78
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f1f78
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x4f1b68
call fcn.00491281
mov esp, ebp
pop ebp
ret