Function at 0x413f41
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 0x413fcc
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 0x413fa4
push 0
push 1
push 0x401
push eax
call edi
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0xa
jle 0x413f79
mov eax, dword [ebp - 0x10]
push 0x431ef4
add eax, 0x1c
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418da8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc]
call fcn.00404c0d
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 4]
cmp dword [eax + 4], 9
jge 0x414164
push 3
push ecx
mov ecx, esp
push str.360Start.exe
call fcn.00404729
mov ecx, edi
call fcn.00418760
mov eax, dword [0x42e50c]
push dword [edi + 0x1c]
lea esi, [edi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, str._sShield
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0040959f
add esp, 0xc
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x42e50c]
push dword [edi + 0x20]
add edi, 0x20
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040959f
add esp, 0xc
lea eax, [ebp - 4]
push str.Sandboxie.ini
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418da8
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.00404c0d
test bl, bl
je 0x4140a7
mov ebx, str.Sandboxie.ini
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418da8
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.00418da8
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.00404c0d
lea ecx, [ebp - 0x1c]
call fcn.00404c0d
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 [0x42e50c]
push dword [esi]
mov dword [ebp - 8], eax
mov ebx, str._sShieldInstall360SafeModuleSkin
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0040959f
push dword [ebp - 8]
call fcn.0041d105
mov eax, dword [0x42e50c]
add esp, 0x10
push dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040959f
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041d3a8
add esp, 0x14
mov ebx, str.ShieldInstall360sandbox.exe
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.00418da8
mov esi, dword [eax]
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x1c]
call fcn.00404c0d
lea ecx, [ebp - 0x18]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp - 8]
call fcn.00404c0d
lea ecx, [ebp - 0x10]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret