Function at 0x4380e6
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x170], eax
push 0x4f
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.00499970
add esp, 8
test eax, eax
jle 0x43815e
lea edi, [esp + 0x6c]
mov ecx, edi
push 0xffffffffffffffff
push 0x26
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x19
push str.DeleteAndSaveRecursive_:
push eax
call fcn.0040280c
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov ecx, ebx
jns 0x43814d
mov ecx, dword [ebx]
push ecx
push eax
call fcn.0049a650
add esp, 8
mov ecx, edi
call fcn.00499dc0
xor eax, eax
dec eax
lea edi, [esp + 0x60]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004bace0
mov dword [esp + 0x5c], 0
push 0x20
call fcn.0064173e
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [esp + 0x58], eax
mov ecx, eax
push ebx
call fcn.0048ead0
mov eax, 0x3001f
or eax, dword [esi + 0x20]
cmp byte [ebx + 0xb], 0
mov edx, ebx
jns 0x4381ae
mov edx, dword [ebx]
mov ecx, edi
push eax
push edx
push dword [esi + 0x10]
call fcn.004badd0
cmp eax, 5
je 0x438206
test eax, eax
jne 0x4382b5
mov ecx, dword [0x703564]
test ecx, ecx
jne 0x4381dd
call fcn.00441150
mov ecx, eax
mov dword [0x703564], eax
xor eax, eax
cmp dword [esi + 0x20], 0x200
sete al
lea eax, [eax*8 + 4]
mov edx, dword [ecx]
push 0x30019
push eax
push dword [ebp + 0xc]
call dword [edx + 8]
test al, al
jne 0x4382eb
push 0x4f
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.00499970
add esp, 8
test eax, eax
jle 0x438248
lea edi, [esp + 0x6c]
mov ecx, edi
push 0xffffffffffffffff
push 0x3a
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x23
push str.Insufficient_permissions_on_the_key
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, edi
call fcn.00499dc0
mov ecx, dword [0x703564]
test ecx, ecx
jne 0x43825e
call fcn.00441150
mov ecx, eax
mov dword [0x703564], eax
mov eax, dword [esp + 0x58]
add eax, 0x10
xor edx, edx
cmp dword [esi + 0x20], 0x200
sete dl
lea edx, [edx*8 + 4]
mov edi, dword [ecx]
push eax
push 1
push 0x3001f
push edx
push dword [ebp + 0xc]
call dword [edi + 0x10]
test al, al
je 0x4383b3
mov eax, 0x3001f
or eax, dword [esi + 0x20]
cmp byte [ebx + 0xb], 0
mov edx, ebx
jns 0x4382a3
mov edx, dword [ebx]
lea ecx, [esp + 0x60]
push eax
push edx
push dword [esi + 0x10]
call fcn.004badd0
test eax, eax
je 0x4382eb
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x4384c4
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x4a
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x13
push str.Failed_to_open_key
jmp 0x43849f
lea edi, [esp + 0x5c]
push edi
push 0
push 0x16
push dword [esp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
je 0x43830b
cmp eax, 0x7a
jne 0x4383e9
mov dword [esp + 8], esi
mov esi, dword [esp + 0x58]
push dword [esp + 0x5c]
call fcn.006417f3
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x438339
push ecx
call fcn.00641805
add esp, 4
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
push edi
push eax
push 0x16
push dword [esp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
je 0x43841f
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x4384c4
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x64
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x29
push str.Failed_to_obtain_security_descriptor_for
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xb], 0
jns 0x438394
mov ecx, dword [ecx]
push ecx
push eax
call fcn.0049a650
add esp, 8
push 0x1a
push str._but_we_succeeded_earlier_
push eax
call fcn.0040280c
add esp, 0xc
jmp 0x4384bd
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x4384c4
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x41
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x2e
push str.Unable_to_obtain_sufficient_permissions_on_key
jmp 0x43849f
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x4384c4
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x54
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x29
push str.Failed_to_obtain_security_descriptor_for
jmp 0x43849f
lea eax, [esp + 0x54]
xor esi, esi
dec esi
mov dword [eax], esi
lea ecx, [esp + 0x50]
mov dword [ecx], esi
lea edx, [esp + 0x4c]
mov dword [edx], esi
mov esi, dword [esp + 0x60]
sub esp, 0x30
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x438509
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x4384c4
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x72
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x1e
push str.Failed_to_obtain_key_info_for
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xb], 0
jns 0x4384b3
mov ecx, dword [ecx]
push ecx
push eax
call fcn.0049a650
add esp, 8
mov ecx, esi
call fcn.00499dc0
xor ebx, ebx
mov esi, dword [esp + 0x58]
mov dword [esp + 0x58], 0
test esi, esi
je 0x4384e6
mov ecx, esi
call fcn.00438d54
push esi
call fcn.006417be
add esp, 4
lea ecx, [esp + 0x60]
call fcn.004bae80
mov ecx, dword [esp + 0x170]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0x4f
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.00499970
add esp, 8
test eax, eax
jle 0x438554
lea edi, [esp + 0x6c]
mov ecx, edi
push 0xffffffffffffffff
push 0x75
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea ecx, [esp + 0x74]
push dword [esp + 0x54]
call fcn.004779d0
push 7
push str._values
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, edi
call fcn.00499dc0
mov edi, dword [esp + 0x50]
inc edi
mov dword [esp + 0x50], edi
mov eax, edi
add eax, edi
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.006417f3
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
push eax
call fcn.006417f3
add esp, 4
cmp dword [esp + 0x54], 0
mov edx, dword [esp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
jle 0x43871e
lea ecx, [esp + 0x40]
mov dword [ecx], edi
lea edx, [esp + 0x34]
mov edi, dword [esp]
mov dword [edx], edi
lea edi, [esp + 0x20]
mov dword [edi], 0xffffffff
push edx
push eax
push edi
xor eax, eax
push eax
push ecx
push esi
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
mov edi, esi
jne 0x4386cd
mov dword [esp], 0
mov esi, dword [esp + 4]
push 0x18
call fcn.0064173e
add esp, 4
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, eax
push edi
call fcn.0048f136
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 4], ecx
mov dword [eax + 0x10], esi
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x18]
cmp edx, dword [ecx + 0x1c]
jae 0x438641
mov dword [esp + 0x6c], 0
mov dword [edx], eax
add edx, 4
mov dword [ecx + 0x18], edx
jmp 0x43864e
add ecx, 0x14
lea eax, [esp + 0x6c]
push eax
call fcn.00438e76
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x6c], 0
test edi, edi
mov edx, dword [esp + 8]
je 0x438676
mov ecx, edi
mov esi, edx
call fcn.00438d96
push edi
call fcn.006417be
mov edx, esi
add esp, 4
mov esi, dword [esp]
inc esi
cmp esi, dword [esp + 0x54]
jge 0x43871e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0xffffffff
lea eax, [esp + 0x34]
push eax
push dword [esp + 8]
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x50]
push eax
mov edi, dword [esp + 0x20]
push edi
mov dword [esp + 0x18], esi
push esi
push dword [esp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4385e0
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x438717
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0x84
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
lea eax, [esp + 0x74]
push 0x1a
push str.Failed_to_obtain_value_nr
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, eax
push dword [esp]
call fcn.004777f0
mov ecx, esi
call fcn.00499dc0
xor ebx, ebx
jmp 0x438a2f
mov eax, dword [edx + 0x18]
cmp eax, dword [edx + 0x1c]
jae 0x43873c
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], 0
mov dword [eax], ecx
add eax, 4
mov dword [edx + 0x18], eax
jmp 0x438749
lea ecx, [edx + 0x14]
lea eax, [esp + 0x58]
push eax
call fcn.00438fec
lea edi, [esp + 0x40]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push ebx
call fcn.0048e960
movzx eax, byte [edi + 0xb]
test al, al
js 0x438773
test al, al
mov ecx, 0xffffffff
jne 0x438784
jmp 0x43879a
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, 0xffffffff
je 0x43879a
mov edi, dword [esp + 0x40]
cmp word [edi + eax*2 - 2], 0x5c
je 0x43879a
lea ecx, [esp + 0x40]
push 0x5c
call fcn.0048f0c2
xor ecx, ecx
dec ecx
lea edi, [esp + 0x34]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov ecx, edi
push dword [ebp + 0xc]
call fcn.0048e960
mov al, byte [edi + 0xb]
test al, al
js 0x4387c0
test al, al
je 0x4387e6
movzx ecx, al
jmp 0x4387cc
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4387e8
mov edi, dword [esp + 0x34]
cmp word [edi + ecx*2 - 2], 0x5c
je 0x4387e8
lea edi, [esp + 0x34]
mov ecx, edi
push 0x5c
call fcn.0048f0c2
mov al, byte [edi + 0xb]
jmp 0x4387e8
xor eax, eax
movzx ecx, byte [esp + 0x4b]
mov dword [esp], ecx
test cl, cl
jns 0x4387fb
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
test al, al
jns 0x438805
mov eax, dword [esp + 0x38]
jmp 0x438808
movzx eax, al
mov dword [esp + 0x10], eax
mov eax, 0x104
mov dword [esp + 0x30], eax
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004a8250
add esp, 8
mov ecx, dword [esp + 0x60]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x50]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4388bc
mov edi, 5
cmp eax, 0x103
je 0x4389b5
push 2
call fcn.00499940
add esp, 4
xor edi, edi
inc edi
test al, al
je 0x4389b5
lea esi, [esp + 0x6c]
mov ecx, esi
push 2
push 0xa7
push str..._.._opera_desktop_windows_installer_transactions_delete_reg_key_operation.cc
call fcn.004999e0
push 0x17
push str.Failed_to_read_a_subkey
lea eax, [esp + 0x7c]
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, esi
call fcn.00499dc0
xor edi, edi
inc edi
jmp 0x4389b5
lea ecx, [esp + 0x20]
xor esi, esi
push esi
push dword [esp + 0x34]
call fcn.0048eb74
lea edi, [esp + 0x40]
mov ecx, edi
push esi
push dword [esp + 4]
call fcn.0048eb74
lea ecx, [esp + 0x34]
push esi
push dword [esp + 0x14]
call fcn.0048eb74
mov eax, 0x104
push eax
push 0xff
lea eax, [esp + 0x74]
push eax
call fcn.00645dd0
add esp, 0xc
movzx eax, byte [esp + 0x4b]
test al, al
jns 0x438913
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push eax
push edi
lea esi, [esp + 0x1c]
push esi
call fcn.004a9e70
add esp, 0xc
cmp byte [esp + 0x1f], 0
mov eax, esi
jns 0x43892f
mov eax, dword [esp + 0x14]
mov ecx, 0x104
push ecx
push eax
lea esi, [esp + 0x74]
push esi
call fcn.004a8840
add esp, 0xc
cmp byte [esp + 0x1f], 0
jns 0x438956
push dword [esp + 0x14]
call fcn.006417be
add esp, 4
push esi
call fcn.00402f50
add esp, 4
movzx eax, byte [esp + 0x2b]
test al, al
cmovs eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x20]
cmovns edx, esi
lea ecx, [esp + 0x40]
push eax
push edx
call fcn.0048edf2
movzx eax, byte [esp + 0x2b]
mov edx, esi
test al, al
jns 0x438994
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x34]
mov ecx, esi
push eax
push edx
call fcn.0048edf2
mov ecx, dword [esp + 8]
push esi
lea eax, [esp + 0x44]
push eax
call fcn.004380e6
xor al, 1
movzx edi, al
cmp byte [esp + 0x2b], 0
jns 0x4389c8
push dword [esp + 0x20]
call fcn.006417be
add esp, 4
test edi, edi
je 0x43880c
cmp edi, 5
jne 0x438a03
lea ecx, [esp + 0x60]
call fcn.004bae50
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x20]
cmp byte [ebx + 0xb], 0
mov edi, dword [esp + 0xc]
jns 0x4389f4
mov ebx, dword [ebx]
push 0
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov bl, 1
jmp 0x438a09
xor ebx, ebx
mov edi, dword [esp + 0xc]
cmp byte [esp + 0x3f], 0
jns 0x438a1c
push dword [esp + 0x34]
call fcn.006417be
add esp, 4
cmp byte [esp + 0x4b], 0
jns 0x438a2f
push dword [esp + 0x40]
call fcn.006417be
add esp, 4
cmp dword [esp + 4], 0
je 0x438a42
push dword [esp + 4]
call fcn.00641805
add esp, 4
push edi
call fcn.00641805
add esp, 4
jmp 0x4384c6