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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4ea688]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
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.004982c0
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.004289f0
mov esi, eax
cmp ebx, 1
jne 0x45242c
test esi, esi
jne 0x45242c
push ebx
lea edx, [esp + 0x40]
push edx
push eax
push edi
xor ecx, ecx
call fcn.00429170
mov esi, eax
test esi, esi
je 0x45242c
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 0x4525b0
cmp dword [edi + 0x7c], eax
jne 0x4525fc
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.004439c0
lea eax, [esp + 0x14]
push eax
push 0x416
add edi, 0x34
push edi
mov byte [esp + 0x14c], 2
call fcn.00428440
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
jbe 0x452492
call fcn.00493a81
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ebx, eax
cmp dword [esp + 0x20], eax
jbe 0x4524a3
call fcn.00493a81
test edi, edi
je 0x4524ad
cmp edi, dword [esp + 0x14]
je 0x4524b2
call fcn.00493a81
cmp esi, ebx
je 0x452582
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x7c], 0
jne 0x452525
test edi, edi
jne 0x45251d
call fcn.00493a81
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4524d9
call fcn.00493a81
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 0x452556
cmp edi, ebx
jne 0x452521
call fcn.00493a81
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x452511
call fcn.00493a81
mov eax, dword [esp + 0x24]
add esi, 4
jmp 0x452496
mov eax, dword [edi]
jmp 0x4524cf
mov eax, dword [edi]
jmp 0x452507
mov eax, dword [esp + 0x20]
test eax, eax
je 0x452536
push eax
call fcn.00491da6
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.00491da6
add esp, 4
jmp 0x4525fc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x452567
push eax
call fcn.00491da6
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.00491da6
add esp, 4
jmp 0x4525fc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x452593
push eax
call fcn.00491da6
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.00491da6
add esp, 4
jmp 0x4525fc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00428870
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 0x4525f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4525fc
mov dword [esp + 0x10], 0x80060009
cmp dword [esp + 0x2c], 0
je 0x452621
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.00491db1
mov esp, ebp
pop ebp
ret 8