Function at 0x461060
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51c6
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x4c9614]
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 ebx, dword [ebp + 8]
cmp dword [ebx + 0x1cc], 0
sete al
test al, al
jne 0x461afd
cmp byte [ebp + 0xc], 1
mov esi, 1
jne 0x46156d
push 4
lea eax, [ebp - 0x864]
push eax
push 4
push str.SB_State
push 0x4b3ff4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x864], esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.ipc_sbmon.dll
push 0x4cfd70
lea ecx, [ebp - 0x420]
push ecx
call edi
test byte [0x4d21d4], 1
jne 0x461112
or dword [0x4d21d4], esi
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
lea eax, [ebp - 0x420]
mov esi, 0x4d21d8
call fcn.00454ca0
test byte [0x4d21d4], 1
jne 0x461144
or dword [0x4d21d4], 1
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
mov eax, dword [0x4d21f4]
test eax, eax
je 0x461158
push 1
call eax
add esp, 4
mov esi, eax
jmp 0x46115d
mov esi, 1
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004845b0
add esp, 0xc
cmp dword [0x4d06d8], 0
je 0x4611cc
mov eax, str._error_
cmp esi, 1
je 0x461193
mov eax, 0x4aa7ac
push eax
call fcn.00436e70
call fcn.00454f40
push eax
push str._pipc__csbx__sbenable1__userconfirm1__activeprocess_d__s
lea ecx, [ebp - 0x218]
push 0x208
push ecx
call fcn.0040bdc0
mov eax, dword [0x4d06d8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
push eax
call edx
cmp esi, 1
jne 0x46140a
mov dword [ebp - 0x864], esi
call fcn.004554b0
test eax, eax
je 0x461200
push str.ipc360box64.sys
push 0x4cfd70
lea eax, [ebp - 0x628]
push eax
call edi
lea ecx, [ebp - 0x628]
push ecx
jmp 0x46121a
push str.ipc360box.sys
push 0x4cfd70
lea edx, [ebp - 0x628]
push edx
call edi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46122a
mov dword [ebp - 0x864], eax
lea ecx, [ebp - 0x858]
push ecx
call fcn.0040fa10
push ecx
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x868], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x868], esp
push edx
lea esi, [ebp - 0x82c]
call fcn.00412210
test eax, eax
je 0x4613f2
or ecx, 0xffffffff
mov eax, str.IDS_WINDOW_TITLE
lea esi, [ebp - 0x884]
call fcn.0042ecd0
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x461294
mov eax, dword [eax + 4]
jmp 0x461297
add eax, 4
mov ecx, eax
lea edi, [ebp - 0x858]
call fcn.004117e0
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0
call fcn.00401420
cmp dword [ebp - 0x864], 0
mov eax, dword [ebx + 0x5c]
lea esi, [ebp - 0x884]
je 0x461314
mov edi, str.IDS_OPEN_FAIL_NEED_REBOOT
call fcn.00404810
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], 8
jb 0x4612de
mov eax, dword [eax + 4]
jmp 0x4612e1
add eax, 4
push 0
push 0
push eax
push 0
lea ecx, [ebp - 0x858]
call fcn.00411960
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0
call fcn.00401420
push 1
lea esi, [ebp - 0x858]
call fcn.004116c0
jmp 0x4613f2
mov edi, str.IDS_RESTORE_TOTALSECURITY
call fcn.00404810
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x46132d
mov eax, dword [eax + 4]
jmp 0x461330
add eax, 4
push 0
push 0
push eax
push 0
lea ecx, [ebp - 0x858]
call fcn.00411960
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0
call fcn.00401420
mov eax, dword [ebx + 0x5c]
mov edi, str.IDS_RESTORE_DOWNLOAD
lea esi, [ebp - 0x884]
call fcn.00404810
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x461373
mov eax, dword [eax + 4]
jmp 0x461376
add eax, 4
push 1
push eax
push 1
lea ecx, [ebp - 0x858]
call fcn.00411e10
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0
call fcn.00401420
mov ebx, dword [ebx + 0x5c]
mov edi, str.IDS_RESTORE_CANCEL
mov eax, ebx
lea esi, [ebp - 0x884]
call fcn.00404810
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 8
jb 0x4613b9
mov eax, dword [eax + 4]
jmp 0x4613bc
add eax, 4
push 1
push eax
push 2
lea ecx, [ebp - 0x858]
call fcn.00411e10
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0
call fcn.00401420
push 0
lea esi, [ebp - 0x858]
call fcn.004116c0
cmp eax, 1
jne 0x4613f2
call fcn.0040aca0
lea eax, [ebp - 0x858]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040fbb0
jmp 0x461afd
push 0x168
push 0xa3
push 0x41c
push ecx
call fcn.00455850
add esp, 4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00436e70
mov dword [eax + 0xc], 1
mov eax, dword [ebx + 0x5c]
push 0
mov edi, str.IDS_SANDBOX_STATE_ON
lea esi, [ebp - 0x884]
mov byte [ebx + 0x1d4], 1
call fcn.00404810
mov dword [ebp - 4], 6
cmp dword [eax + 0x18], 8
jb 0x461463
mov eax, dword [eax + 4]
jmp 0x461466
add eax, 4
push eax
mov eax, dword [ebx + 0x1cc]
push ecx
mov ecx, esp
mov esi, 0x7dc
mov dword [ebp - 0x868], esp
mov dword [ecx], eax
test eax, eax
je 0x461489
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.00414e90
add esp, 0xc
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 0xffffffff
call fcn.00401420
mov eax, dword [ebx + 0x5c]
push 0
mov edi, str.IDS_SANDBOX_DESC
lea esi, [ebp - 0x884]
call fcn.00404810
mov dword [ebp - 4], 7
cmp dword [eax + 0x18], 8
jb 0x4614cc
mov eax, dword [eax + 4]
jmp 0x4614cf
add eax, 4
push eax
mov eax, dword [ebx + 0x1cc]
push ecx
mov ecx, esp
mov esi, 0x7dd
mov dword [ebp - 0x868], esp
mov dword [ecx], eax
test eax, eax
je 0x4614f2
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.00414e90
add esp, 0xc
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 0xffffffff
call fcn.00401420
mov eax, dword [ebx + 0x1cc]
push 1
xor edi, edi
push 2
push edi
push ecx
mov dword [ebp - 0x864], esp
mov dword [ebp - 0x868], esp
push edi
test eax, eax
jne 0x461537
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x860], esp
push 0
push 0x7de
call fcn.00414520
mov eax, dword [ebp - 0x864]
push eax
lea ecx, [ebx + 0x54]
push ecx
call fcn.00430460
mov ecx, edi
xor edx, edx
call fcn.004250d0
add esp, 0x10
jmp 0x46199d
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x859], 1
mov dword [ebp - 0x864], 0
je 0x46171d
call fcn.00460930
test al, al
je 0x461607
lea edx, [ebp - 0x1e8]
push edx
call fcn.00443f00
push ecx
mov dword [ebp - 4], 8
mov eax, esp
mov dword [ebp - 0x860], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x860], esp
push eax
lea esi, [ebp - 0x1bc]
call fcn.00462240
test eax, eax
je 0x4615ef
push 1
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.004450e0
cmp eax, 1
je 0x4615ef
mov byte [ebp - 0x859], 0
lea edx, [ebp - 0x1e8]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00444010
jmp 0x461710
lea eax, [ebp - 0x858]
push eax
call fcn.0040fa10
push ecx
mov dword [ebp - 4], 9
mov eax, esp
mov dword [ebp - 0x860], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x860], esp
push ecx
lea esi, [ebp - 0x82c]
call fcn.00412210
test eax, eax
je 0x4616fd
or ecx, 0xffffffff
mov eax, str.IDS_WINDOW_TITLE
lea esi, [ebp - 0x884]
call fcn.0042ecd0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], 8
jb 0x461671
mov ecx, dword [eax + 4]
jmp 0x461674
lea ecx, [eax + 4]
lea edi, [ebp - 0x858]
call fcn.004117e0
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 9
call fcn.00401420
mov eax, dword [ebx + 0x5c]
mov edi, str.IDS_CLOSE_PROMPT_MSG
lea esi, [ebp - 0x884]
call fcn.00404810
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 8
jb 0x4616b0
mov eax, dword [eax + 4]
jmp 0x4616b3
add eax, 4
push 0
push 0
push eax
push 0
lea ecx, [ebp - 0x858]
call fcn.00411960
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 9
call fcn.00401420
mov eax, 2
lea ecx, [ebp - 0x858]
call fcn.00411ef0
push 0
lea esi, [ebp - 0x858]
call fcn.004116c0
cmp eax, 1
je 0x4616fd
mov byte [ebp - 0x859], 0
lea edx, [ebp - 0x858]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0040fbb0
cmp byte [ebp - 0x859], 0
je 0x46191e
call fcn.00436e70
mov eax, dword [eax + 0x18]
test eax, eax
je 0x46172b
call eax
push str.SB_Mark_Proc
mov al, 1
call fcn.00455000
add esp, 4
push 0x168
test al, al
je 0x46174a
push 0xaa
jmp 0x46174f
push 0xab
push 0x41c
push ecx
call fcn.00455850
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
call esi
push str.SB_State
mov al, 1
call fcn.00455000
add esp, 4
cmp al, 1
jne 0x4617ea
cmp byte [ebp + 0x14], 0
jne 0x4617ea
mov eax, dword [ebp + 0xc]
push eax
mov ecx, str.SB_State
call fcn.0045edf0
add esp, 4
call fcn.00436e70
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4617ab
push 0
call eax
add esp, 4
mov dword [ebp - 0x864], eax
jmp 0x4617b5
mov dword [ebp - 0x864], 1
call fcn.00436e70
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4617c3
call eax
push 0x168
push 0xa4
push 0x41c
push ecx
call fcn.00455850
add esp, 4
push eax
call esi
call fcn.00436e70
mov dword [eax + 0xc], 2
mov eax, dword [ebx + 0x5c]
push 0
mov edi, str.IDS_SANDBOX_STATE_OFF
lea esi, [ebp - 0x884]
mov byte [ebx + 0x1d4], 0
call fcn.00404810
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x461818
mov eax, dword [eax + 4]
jmp 0x46181b
add eax, 4
push eax
mov eax, dword [ebx + 0x1cc]
push ecx
mov ecx, esp
mov esi, 0x7dc
mov dword [ebp - 0x860], esp
mov dword [ecx], eax
test eax, eax
je 0x46183e
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.00414e90
add esp, 0xc
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 0xffffffff
call fcn.00401420
mov eax, dword [ebx + 0x5c]
push 0
mov edi, str.IDS_SANDBOX_OFF_DESC
lea esi, [ebp - 0x884]
call fcn.00404810
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x461881
mov eax, dword [eax + 4]
jmp 0x461884
add eax, 4
push eax
mov eax, dword [ebx + 0x1cc]
push ecx
mov ecx, esp
mov esi, 0x7dd
mov dword [ebp - 0x860], esp
mov dword [ecx], eax
test eax, eax
je 0x4618a7
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.00414e90
add esp, 0xc
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 0xffffffff
call fcn.00401420
mov eax, dword [ebx + 0x1cc]
push 1
push 2
push 2
push ecx
xor edi, edi
mov dword [ebp - 0x868], esp
mov dword [ebp - 0x860], esp
push edi
test eax, eax
jne 0x4618ed
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x860], esp
push 0
push 0x7de
call fcn.00414520
mov eax, dword [ebp - 0x868]
push eax
lea ecx, [ebx + 0x54]
push ecx
call fcn.00430460
mov ecx, edi
xor edx, edx
call fcn.004250d0
add esp, 0x10
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.004845b0
add esp, 0xc
cmp dword [0x4d06d8], 0
je 0x46199d
cmp dword [ebp - 0x864], 1
mov eax, str._error_
je 0x461958
mov eax, 0x4aa7ac
push eax
call fcn.00436e70
call fcn.00454f40
xor ecx, ecx
cmp byte [ebp - 0x859], cl
push eax
setne cl
lea edx, [ebp - 0x420]
push ecx
push str._pipc__csbx__sbenable0__userconfirm_d__activeprocess_d__s
push 0x208
push edx
call fcn.0040bdc0
mov eax, dword [0x4d06d8]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x420]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebx + 0x1cc]
push 1
test eax, eax
jne 0x4619b3
push 0x80004003
call fcn.0047e430
push 0
push 0x7dc
lea esi, [ebp - 0x868]
call fcn.00414520
push ecx
mov dword [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x860], esp
call fcn.004136b0
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.004184f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x868]
add esp, 0xc
test eax, eax
je 0x4619ff
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebx + 0x1cc]
push 0
push 0
push 1
push 1
xor edi, edi
push 2
push 0x14
test eax, eax
jne 0x461a21
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x860], esp
push 0
push 0x7de
call fcn.00414520
mov dword [ebp - 4], 0xf
mov eax, dword [ebx + 0x1cc]
test eax, eax
jne 0x461a51
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x864], esp
push 0
push 0x7dc
call fcn.00414520
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
add esp, 0x20
push ebx
call fcn.00461b20
cmp byte [ebx + 0x1d4], 0
mov eax, dword [ebx + 0x1cc]
sete cl
movzx edx, cl
push edx
test eax, eax
jne 0x461a9f
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x860], esp
push 0
push 0x7df
call fcn.00414520
call fcn.00415ba0
add esp, 8
cmp byte [ebx + 0x1d4], 0
mov ebx, dword [ebx + 0x1cc]
sete al
movzx ecx, al
push ecx
test ebx, ebx
jne 0x461ade
push 0x80004003
call fcn.0047e430
push ecx
mov esi, esp
mov dword [ebp - 0x860], esp
push 0
push 0x7e0
mov eax, ebx
call fcn.00414520
call fcn.00415ba0
add esp, 8
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.0047e6eb
mov esp, ebp
pop ebp
ret 0x10