Function at 0x40e372
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push edi
mov ebx, str.X360StartFrame
mov edi, ecx
push 0
push ebx
mov dword [ebp - 0x10], edi
call esi
test eax, eax
je 0x40e3fd
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 1
push 0x401
push eax
call edi
and dword [ebp - 8], 0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
call esi
test eax, eax
je 0x40e3d5
push 0
push 1
push 0x401
push eax
call edi
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0xa
jle 0x40e3aa
mov eax, dword [ebp - 0x10]
push 0x428218
add eax, 0x18
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411c85
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc]
call fcn.00403e55
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 4]
cmp dword [eax + 4], 9
jge 0x40e595
push 3
push ecx
mov ecx, esp
push str.360Start.exe
call fcn.00407334
mov ecx, edi
call fcn.0040f740
mov eax, dword [0x425504]
push dword [edi + 0x18]
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
mov ebx, str._sShield
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00403a7b
add esp, 0xc
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x425504]
push dword [edi + 0x1c]
add edi, 0x1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00403a7b
add esp, 0xc
lea eax, [ebp - 4]
push str.Sandboxie.ini
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00411c85
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea ecx, [ebp - 0x14]
neg ebx
sbb bl, bl
inc bl
call fcn.00403e55
test bl, bl
je 0x40e4d8
mov ebx, str.Sandboxie.ini
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00411c85
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.00403e55
lea ecx, [ebp - 0x1c]
call fcn.00403e55
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SYSTEMCurrentControlSetServicesSbieDrv
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push str.SYSTEMCurrentControlSetServicesSbieSvc
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov eax, dword [0x425504]
push dword [esi]
mov dword [ebp - 8], eax
mov ebx, str._sShieldInstall360SafeModuleSkin
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00403a7b
push dword [ebp - 8]
call fcn.00415a35
mov eax, dword [0x425504]
add esp, 0x10
push dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00403a7b
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00415cd8
add esp, 0x14
mov ebx, str.ShieldInstall360sandbox.exe
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.00411c85
mov esi, dword [eax]
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x1c]
call fcn.00403e55
lea ecx, [ebp - 0x18]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea ecx, [ebp - 8]
call fcn.00403e55
lea ecx, [ebp - 0x10]
call fcn.00403e55
lea ecx, [ebp - 4]
call fcn.00403e55
pop edi
pop esi
pop ebx
leave
ret