Function at 0x542a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx]
mov esi, ecx
cmp ebx, dword [ecx + 4]
je 0x542aef
xor edi, edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
sub eax, ecx
cmove ecx, edi
cmp byte [ebx + 0xb], 0
js 0x542ae1
mov edx, ebx
cmove edx, edi
push eax
push ecx
push dword [ebx + 0x18]
push 0
push edx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x542bc4
add ebx, 0x1c
cmp ebx, dword [esi + 4]
mov edi, 0
jne 0x542aa1
jmp 0x542aef
cmp dword [ebx + 4], 0
je 0x542aeb
mov edx, dword [ebx]
jmp 0x542ab7
xor edx, edx
jmp 0x542ab7
xor eax, eax
dec eax
lea ecx, [ebp - 0xc0]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
call fcn.00463100
mov eax, esi
mov edi, dword [esi + 0xc]
add eax, 0x10
mov bl, 1
cmp edi, eax
je 0x542ba0
mov esi, eax
lea eax, [edi + 0x10]
cmp byte [edi + 0x1b], 0
mov dword [ebp - 0xc4], eax
jns 0x542b2a
mov eax, dword [eax]
lea ebx, [ebp - 0xc0]
mov ecx, ebx
push 0x20006
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00467e70
test eax, eax
jne 0x542b8a
lea ecx, [edi + 0x1c]
push ebx
call fcn.00542a80
test al, al
je 0x542bdc
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x542b70
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x542b5e
mov bl, 1
mov edi, eax
cmp eax, esi
jne 0x542b19
jmp 0x542ba0
mov eax, dword [edi + 8]
cmp dword [eax], edi
mov bl, 1
je 0x542b68
add edi, 8
mov ecx, dword [edi]
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x542b7c
jmp 0x542b68
mov ebx, eax
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x542c3e
xor ebx, ebx
lea ecx, [ebp - 0xc0]
call fcn.00467f60
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov edi, eax
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x542ca0
xor ebx, ebx
jmp 0x542bab
push 2
call fcn.004e0f90
add esp, 4
test al, al
je 0x542b9e
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0x108
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0045d3f0
lea eax, [ebp - 0xac]
push 0x17
push str.Failed_writing_subkey__
push eax
call fcn.005364d0
add esp, 0xc
push dword [ebp - 0xc4]
push eax
call fcn.0045dbd0
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, eax
push 0
jmp 0x542c8f
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0x103
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0045d3f0
lea eax, [ebp - 0xac]
push 0x18
push str.Failed_creating_subkey__
push eax
call fcn.005364d0
add esp, 0xc
push dword [ebp - 0xc4]
push eax
call fcn.0045dbd0
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, eax
push ebx
call fcn.0042a980
mov ecx, esi
call fcn.0045d7d0
jmp 0x542b9e
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0xf5
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0045d3f0
lea eax, [ebp - 0xac]
push 0x16
push str.Failed_writing_value__
push eax
call fcn.005364d0
add esp, 0xc
push ebx
push eax
call fcn.0045dbd0
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, eax
push edi
call fcn.0042a980
mov ecx, esi
call fcn.0045d7d0
jmp 0x542bd8