Function at 0x405454
Capabilities:
Check if file exists
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [0x41e738]
push str.cdn_mutex_cdnuninswin
call fcn.00404651
pop ecx
test eax, eax
pop ecx
je 0x40565b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x4053df
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2a3]
mov byte [ebp - 0x2a4], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x19f]
mov byte [ebp - 0x1a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2a4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp - 0x2a4]
push str.:Program_Files360safe360safe.exe
mov byte [ebp - 0x1a0], al
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040c780
pop ecx
lea eax, [ebp - 0x1a0]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.SOFTWARE360Safe
push 0x80000002
mov dword [ebp - 8], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405533
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
cmp dword [ebp - 0xc], ebx
jne 0x40565b
cmp edi, ebx
je 0x405548
cmp esi, ebx
jne 0x40565b
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
push 8
lea eax, [ebp - 0x18]
pop esi
mov dword [ebp - 0x14], 0x404
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
mov ecx, 0x41e740
push dword [ebp + 8]
push ebx
call fcn.004058a0
call fcn.00409ebe
cmp dword [0x416ea0], 2
jne 0x40562a
lea eax, [ebp - 0x20]
push eax
call fcn.0040be74
test eax, eax
pop ecx
jne 0x40562a
mov ecx, esi
mov esi, 0x416a14
lea edi, [ebp - 0x9c]
push 7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x4169f4
lea edi, [ebp - 0x78]
push 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, str.User_Privilege_Limited_
lea edi, [ebp - 0x58]
mov ax, word [0x41e7d4]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4169cc
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4169bc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.User_Privilege
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp ax, bx
movsb byte es:[edi], byte [esi]
jne 0x405608
lea eax, [ebp - 0x1c]
push 0x40
push eax
lea eax, [ebp - 0x9c]
jmp 0x405617
cmp ax, 1
push 0x40
jne 0x405621
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40563a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
jmp 0x405617
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004046a1
pop ecx
mov dword [ebp - 4], eax
pop ecx
mov ecx, 0x41e740
call fcn.004059b2
push dword [0x41e738]
call fcn.00404679
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x40565d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10