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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bee56
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4e9688]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp ebx, 1
sete cl
push 0xd4
lea edx, [esp + 0x5c]
push 0
mov esi, str.360SafeCamera
lea edi, [esp + 0x44]
push edx
mov dword [esp + 0x38], ecx
mov ecx, 7
mov dword [esp + 0x1c], eax
rep movsd dword es:[edi], dword [esi]
call fcn.00497780
mov edi, dword [esp + 0x1c]
add esp, 0xc
add edi, 0x40
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x34]
push ecx
mov dword [esp + 0x38], edi
call fcn.004280e0
mov esi, eax
cmp ebx, 1
jne 0x45178c
test esi, esi
jne 0x45178c
push ebx
lea edx, [esp + 0x40]
push edx
push eax
push edi
xor ecx, ecx
call fcn.00428670
mov esi, eax
test esi, esi
je 0x45178c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
xor eax, eax
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x451910
cmp dword [edi + 0x7c], eax
jne 0x45195c
lea ecx, [edi + 0x88]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x144], eax
call fcn.00432fb0
lea eax, [esp + 0x14]
push eax
push 0x416
add edi, 0x34
push edi
mov byte [esp + 0x14c], 2
call fcn.00427b30
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
jbe 0x4517f2
call fcn.00492f40
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ebx, eax
cmp dword [esp + 0x20], eax
jbe 0x451803
call fcn.00492f40
test edi, edi
je 0x45180d
cmp edi, dword [esp + 0x14]
je 0x451812
call fcn.00492f40
cmp esi, ebx
je 0x4518e2
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x7c], 0
jne 0x451885
test edi, edi
jne 0x45187d
call fcn.00492f40
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x451839
call fcn.00492f40
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
push eax
push 0x140
push 0x416
call edx
xor ebx, ebx
cmp eax, ebx
jne 0x4518b6
cmp edi, ebx
jne 0x451881
call fcn.00492f40
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x451871
call fcn.00492f40
mov eax, dword [esp + 0x24]
add esi, 4
jmp 0x4517f6
mov eax, dword [edi]
jmp 0x45182f
mov eax, dword [edi]
jmp 0x451867
mov eax, dword [esp + 0x20]
test eax, eax
je 0x451896
push eax
call fcn.00491276
add esp, 4
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00491276
add esp, 4
jmp 0x45195c
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4518c7
push eax
call fcn.00491276
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00491276
add esp, 4
jmp 0x45195c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4518f3
push eax
call fcn.00491276
add esp, 4
mov edx, dword [esp + 0x14]
xor eax, eax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00491276
add esp, 4
jmp 0x45195c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00427f60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x34]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x45195c
mov dword [esp + 0x10], 0x80060009
cmp dword [esp + 0x2c], 0
je 0x451981
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push str.status
push str.SOFTWARE360Safe_safemon_safecamera
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00491281
mov esp, ebp
pop ebp
ret 8