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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f256
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
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.0047c020
mov edi, dword [esp + 0x1c]
add esp, 0xc
add edi, 0x44
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x34]
push ecx
mov dword [esp + 0x38], edi
call fcn.00409620
mov esi, eax
cmp ebx, 1
jne 0x4354db
test esi, esi
jne 0x4354db
push ebx
lea edx, [esp + 0x40]
push edx
push eax
push edi
xor ecx, ecx
call fcn.00409b60
mov esi, eax
test esi, esi
je 0x4354db
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 0x43565d
cmp dword [edi + 0x7c], eax
jne 0x4356a8
mov dword [esp + 0x34], 0x4c9470
mov dword [esp + 0x38], eax
mov dword [esp + 0x140], eax
lea eax, [esp + 0x14]
push eax
call fcn.00436940
lea ecx, [esp + 0x14]
push ecx
push 0x416
add edi, 0x34
push edi
mov byte [esp + 0x14c], 2
call fcn.00409080
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
jbe 0x43553f
call fcn.00477ad6
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ebx, eax
cmp dword [esp + 0x20], eax
jbe 0x435550
call fcn.00477ad6
test edi, edi
je 0x43555a
cmp edi, dword [esp + 0x14]
je 0x43555f
call fcn.00477ad6
cmp esi, ebx
je 0x43562f
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x7c], 0
jne 0x4355d2
test edi, edi
jne 0x4355ca
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x435586
call fcn.00477ad6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x30]
push edx
push 0x140
push 0x416
call eax
xor ebx, ebx
cmp eax, ebx
jne 0x435603
cmp edi, ebx
jne 0x4355ce
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4355be
call fcn.00477ad6
mov eax, dword [esp + 0x24]
add esi, 4
jmp 0x435543
mov eax, dword [edi]
jmp 0x43557c
mov eax, dword [edi]
jmp 0x4355b4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4355e3
push eax
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00476df2
add esp, 4
jmp 0x4356a8
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x435614
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00476df2
add esp, 4
jmp 0x4356a8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x435640
push eax
call fcn.00476df2
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.00476df2
add esp, 4
jmp 0x4356a8
lea ecx, [esp + 0x3c]
push ecx
lea ebx, [esp + 0x38]
call fcn.004094a0
mov eax, dword [eax]
add esp, 4
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 0x43569c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4356a8
mov dword [esp + 0x10], 0x80060009
cmp dword [esp + 0x2c], 0
je 0x4356cd
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.00476dfd
mov esp, ebp
pop ebp
ret 4