Function at 0x4409c0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a4eb6
mov eax, dword fs:[0]
push eax
mov eax, 0x2a28
call fcn.004e6bc0
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x2a24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x2a3c]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x242]
push ecx
mov word [esp + 0x244], ax
call fcn.004e5fc0
xor edx, edx
push 0x1ffe
push edx
lea eax, [esp + 0xa4e]
push eax
mov word [esp + 0xa50], dx
call fcn.004e5fc0
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x440bdc
lea ecx, [esp + 0x238]
push 0x5c
push ecx
call fcn.004e5d7c
add esp, 8
add eax, 2
xor edx, edx
mov word [eax], dx
push 0x1000
lea eax, [esp + 0xa3c]
push eax
lea ecx, [esp + 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x440bdc
push str.SoftMgr_somkernl.dll
lea ecx, [esp + 0x20]
call fcn.0040e080
push eax
lea edx, [esp + 0xa3c]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2a50], 0
call fcn.0040d230
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2a44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440b1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x440b6d
push 0x208
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004e5fc0
add esp, 0xc
push 0x104
lea eax, [esp + 0x34]
push eax
push 0
call esi
lea ecx, [esp + 0x30]
push ecx
call edi
push str.SoftMgr_somkernl.dll
lea edx, [esp + 0x34]
push edx
call ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040d680
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004887d0
add esp, 4
test eax, eax
je 0x440bb1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x61df5c], eax
test eax, eax
je 0x440bb1
push str.SomPlugin
push eax
call ebp
mov dword [0x61df54], eax
mov eax, dword [0x61df5c]
push str.SomInitWithFixedMod
push eax
call ebp
mov dword [0x61df58], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2a44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440bdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x61df54]
test eax, eax
jne 0x440c72
push 0x208
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004e5fc0
add esp, 0xc
push 0x104
lea edx, [esp + 0x34]
push edx
push 0
call esi
lea eax, [esp + 0x30]
push eax
call edi
push str.SoftMgr_somkernl.dll
lea ecx, [esp + 0x34]
push ecx
call ebx
lea edx, [esp + 0x30]
push edx
call fcn.004887d0
add esp, 4
test eax, eax
je 0x440c62
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x61df5c], eax
test eax, eax
je 0x440c62
push str.SomPlugin
push eax
call ebp
mov ecx, dword [0x61df5c]
push str.SomInitWithFixedMod
push ecx
mov dword [0x61df54], eax
call ebp
mov dword [0x61df58], eax
mov eax, dword [0x61df54]
test eax, eax
jne 0x440c72
mov eax, 0x80004005
jmp 0x440ca5
mov ecx, dword [0x61df58]
test ecx, ecx
je 0x440c9f
push 3
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], str.somkernl.dll
mov dword [esp + 0x2c], str.SomAdvUtils.dll
mov dword [esp + 0x30], str.somcore.dll
call ecx
jmp 0x440ca5
push 0
push 0xffffffffffffffff
call eax
mov ecx, dword [esp + 0x2a3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a24]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x2a34
ret