Function at 0x595a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx]
mov esi, ecx
cmp ebx, dword [ecx + 4]
je 0x595aaf
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 0x595aa1
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 0x595be0
add ebx, 0x1c
cmp ebx, dword [esi + 4]
mov edi, 0
jne 0x595a61
jmp 0x595aaf
cmp dword [ebx + 4], 0
je 0x595aab
mov edx, dword [ebx]
jmp 0x595a77
xor edx, edx
jmp 0x595a77
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.0045a3c0
mov eax, esi
mov edi, dword [esi + 0xc]
add eax, 0x10
mov bl, 1
cmp edi, eax
je 0x595bbc
mov esi, eax
lea eax, [edi + 0x10]
cmp byte [edi + 0x1b], 0
mov dword [ebp - 0xc4], eax
jns 0x595aea
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.0045ed10
test eax, eax
jne 0x595b4d
lea ecx, [edi + 0x1c]
push ebx
call fcn.00595a40
test al, al
je 0x595c4f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x595b33
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x595b1e
mov bl, 1
mov edi, eax
cmp eax, esi
jne 0x595ad9
jmp 0x595bbc
mov eax, dword [edi + 8]
cmp dword [eax], edi
mov bl, 1
je 0x595b28
add edi, 8
mov ecx, dword [edi]
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x595b3f
jmp 0x595b28
mov ebx, eax
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x595bba
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0x103
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.00454e90
lea eax, [ebp - 0xac]
push 0x18
push str.Failed_creating_subkey__
push eax
call fcn.004d4870
add esp, 0xc
push dword [ebp - 0xc4]
push eax
call fcn.00455670
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.004d4870
add esp, 0xc
mov ecx, eax
push ebx
call fcn.0042ab10
mov ecx, esi
call fcn.00455270
xor ebx, ebx
lea ecx, [ebp - 0xc0]
call fcn.0045ee00
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov edi, eax
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x595c48
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0xf5
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.00454e90
lea eax, [ebp - 0xac]
push 0x16
push str.Failed_writing_value__
push eax
call fcn.004d4870
add esp, 0xc
push ebx
push eax
call fcn.00455670
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.004d4870
add esp, 0xc
mov ecx, eax
push edi
call fcn.0042ab10
mov ecx, esi
call fcn.00455270
xor ebx, ebx
jmp 0x595bc7
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x595bba
lea esi, [ebp - 0xb4]
mov ecx, esi
push 2
push 0x108
push str..._.._chrome_installer_util_registry_key_backup.cc
call fcn.00454e90
lea eax, [ebp - 0xac]
push 0x17
push str.Failed_writing_subkey__
push eax
call fcn.004d4870
add esp, 0xc
push dword [ebp - 0xc4]
push eax
call fcn.00455670
add esp, 8
push 0xb
push str.___result:
push eax
call fcn.004d4870
add esp, 0xc
mov ecx, eax
push 0
jmp 0x595bae