Function at 0x4d578c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov eax, dword [0x5a05c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc8], ecx
mov ebx, dword [ecx]
cmp ebx, dword [ecx + 4]
je 0x4d5808
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, 0
mov edi, dword [ebx + 0x18]
sub ecx, eax
cmove eax, edx
movzx edx, byte [ebx + 0xb]
test dl, dl
js 0x4d57ce
mov esi, edx
jmp 0x4d57d1
mov esi, dword [ebx + 4]
test esi, esi
je 0x4d57df
test dl, dl
mov edx, ebx
jns 0x4d57e1
mov edx, dword [ebx]
jmp 0x4d57e1
xor edx, edx
push ecx
push eax
push edi
push 0
push edx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4d58a9
mov eax, dword [ebp - 0xc8]
add ebx, 0x1c
cmp ebx, dword [eax + 4]
jne 0x4d57af
lea ebx, [ebp - 0xc0]
mov ecx, ebx
call fcn.00451840
mov eax, dword [ebp - 0xc8]
mov cl, 1
mov dword [ebp - 0xc4], ecx
mov edi, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc8], eax
cmp eax, edi
je 0x4d5a2a
cmp byte [edi + 0x1b], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0xcc], eax
jns 0x4d5848
mov eax, dword [eax]
mov ecx, ebx
push 0x20006
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00456760
test eax, eax
jne 0x4d592c
lea ecx, [edi + 0x1c]
push ebx
call fcn.004d578c
test al, al
je 0x4d59a7
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4d5884
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4d587a
jmp 0x4d589a
mov eax, dword [edi + 8]
cmp dword [eax], edi
je 0x4d589a
add edi, 8
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
lea edi, [ecx + 8]
cmp dword [eax], ecx
jne 0x4d588e
cmp dword [ebp - 0xc8], eax
mov edi, eax
jne 0x4d5837
jmp 0x4d5a2a
mov edi, eax
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x4d591d
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0xf4
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0043e680
lea eax, [ebp - 0xb0]
push 0x16
push str.Failed_writing_value__
push eax
call fcn.004058b5
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x4d58f0
mov ebx, dword [ebx]
push ebx
push eax
call fcn.0043f290
add esp, 8
mov ecx, 0xb
push ecx
push str.___result:
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, eax
push edi
call fcn.00411310
mov ecx, esi
call fcn.0043ea30
mov dword [ebp - 0xc4], 0
jmp 0x4d5a35
mov esi, eax
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x4d5a20
lea edi, [ebp - 0xb4]
mov ecx, edi
push 2
push 0x102
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0043e680
lea eax, [ebp - 0xb0]
push 0x18
push str.Failed_creating_subkey__
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, dword [ebp - 0xcc]
cmp byte [ecx + 0xb], 0
jns 0x4d597d
mov ecx, dword [ecx]
push ecx
push eax
call fcn.0043f290
add esp, 8
mov ecx, 0xb
push ecx
push str.___result:
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, eax
push esi
call fcn.00411310
mov ecx, edi
jmp 0x4d5a1b
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x4d5a20
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0x107
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.0043e680
lea eax, [ebp - 0xb0]
push 0x17
push str.Failed_writing_subkey__
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, dword [ebp - 0xcc]
cmp byte [ecx + 0xb], 0
jns 0x4d59f2
mov ecx, dword [ecx]
push ecx
push eax
call fcn.0043f290
add esp, 8
mov ecx, 0xb
push ecx
push str.___result:
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, eax
push 0
call fcn.00411310
mov ecx, esi
call fcn.0043ea30
mov dword [ebp - 0xc4], 0
lea ecx, [ebp - 0xc0]
call fcn.004568a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, dword [ebp - 0xc4]
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret 4