Function at 0x10052cd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcb33
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x100f51d4]
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 - 0x62c], 0
cmp dword [0x100f9f98], 0
jne 0x10053035
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push eax
push dword [0x100f8d04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1005302b
cmp eax, 0x208
jae 0x1005302b
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push 0x100e5bd4
push eax
call edi
mov dword [ebp - 4], 0
call fcn.10012770
mov ecx, eax
test ecx, ecx
je 0x10053056
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x10053060
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x634], esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x62c], 1
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x640]
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10010e10
mov ebx, dword [ebp - 0x640]
test eax, eax
jne 0x10052ea8
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10097030
add esp, 0xc
mov dword [ebp - 0x630], 0x208
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x644]
push eax
push 0
push str.Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10052ea8
mov eax, dword [ebp - 0x644]
cmp eax, 1
je 0x10052e4c
cmp eax, 2
jne 0x10052ea8
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x10052e69
test al, 1
jne 0x10052ea8
shr eax, 1
cmp word [ebp + eax*2 - 0x62a], 0
je 0x10052e72
jmp 0x10052ea8
xor eax, eax
mov word [ebp - 0x628], ax
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
jmp 0x10052e80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052e80
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.10016cf0
mov esi, dword [ebp - 0x634]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10052ec1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x640], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x63c], 0
push eax
push esi
call fcn.100a62ba
add esp, 8
test eax, eax
lea eax, [ebp - 0x420]
jne 0x10052f8a
push str.safemon360Cactus.tpi
push eax
call edi
mov ecx, 0x21
call fcn.10012b40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052f10
lea ecx, [ebp - 0x420]
push ecx
call eax
jmp 0x10052f19
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
je 0x10052f45
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
call fcn.1008ae24
add esp, 4
test eax, eax
je 0x10052f37
mov ebx, 1
test ebx, ebx
jne 0x10052fd9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push str...FreeSaaS.tpi
lea eax, [ebp - 0x420]
push eax
call edi
mov ecx, 0x21
call fcn.10012b40
test eax, eax
je 0x10052f6c
lea ecx, [ebp - 0x420]
push ecx
call eax
jmp 0x10052f75
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
je 0x10052fe3
lea ecx, [ebp - 0x420]
call fcn.100163d0
test eax, eax
je 0x10052fe3
jmp 0x10052fd9
push str.360sd.exe
push eax
call edi
mov ecx, 0x21
call fcn.10012b40
test eax, eax
je 0x10052fab
lea ecx, [ebp - 0x420]
push ecx
call eax
jmp 0x10052fb8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052fe3
push str...360SkinMgr.exe
lea eax, [ebp - 0x420]
push eax
call edi
lea ecx, [ebp - 0x420]
call fcn.100549d0
test eax, eax
jne 0x10052fe3
mov dword [0x100f9f94], 1
mov eax, 1
mov dword [ebp - 0x62c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005302b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x10053067
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x100f9f98], 1
mov eax, dword [0x100f9f94]
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.10071699
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10010ca0
call edx
jmp 0x10052d97
call edx
jmp 0x1005302b