Function at 0x410690
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], ebx
cmp dword [0x4a3138], ebx
je 0x4106eb
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
push eax
mov dword [esp + 0x28], 0x70
call fcn.0043e4f0
mov ecx, eax
jmp 0x4106fa
mov eax, dword [0x4a3124]
or ecx, 0xffffffff
neg eax
cmp eax, ecx
cmovg ecx, eax
cmp ecx, 1
jl 0x41073d
push 0xffffffffffffffff
push 0x1d
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
call fcn.00419a80
add eax, 8
push str.DeleteAndSaveRecursive_:
push eax
call fcn.00405690
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x41072a
mov esi, dword [esi]
push esi
push eax
call fcn.0041a310
mov ebx, 1
add esp, 8
mov dword [esp + 0x10], ebx
test bl, 1
je 0x410752
and ebx, 0xfffffffe
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], ebx
call fcn.00419b40
push 0x2c
mov dword [esp + 0x10], 0
mov dword [esp + 0x40], 0
call fcn.00466a4b
xor ecx, ecx
mov dword [esp + 0x20], eax
add esp, 4
mov esi, eax
mov dword [esp + 0x48], esi
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov dword [eax + 0x18], ecx
lea ecx, [eax + 0x1c]
mov dword [ecx], 0
mov dword [esp + 0x34], ecx
lea ecx, [eax + 0x20]
mov dword [esp + 0x20], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
je 0x4107cc
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004047b0
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], 8
jb 0x4107da
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
jmp 0x4107de
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x38], eax
test ebx, 0x400
je 0x41080b
and ebx, 0xfffffbff
lea ecx, [esp + 0x110]
mov dword [esp + 0x10], ebx
call fcn.00419b40
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0x3001f
push 0
push dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410838
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
jmp 0x410845
cmp eax, 5
je 0x41085d
test eax, eax
jne 0x41110f
push 0x30019
push 4
push edi
call fcn.004121d0
add esp, 0xc
test al, al
jne 0x4109be
cmp dword [0x4a3138], 0
je 0x410884
lea eax, [esp + 0x50]
mov dword [esp + 0x50], str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
push eax
mov dword [esp + 0x58], 0x70
call fcn.0043e4f0
mov ecx, eax
jmp 0x410896
mov eax, dword [0x4a3124]
mov ecx, 0xffffffff
neg eax
cmp eax, 0xffffffff
cmovg ecx, eax
cmp ecx, 1
jl 0x4108c5
push 0xffffffffffffffff
push 0x2b
or ebx, 2
lea ecx, [esp + 0x68]
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
mov dword [esp + 0x1c], ebx
call fcn.00419a80
add eax, 8
push str.Insufficient_permissions_on_the_key
push eax
call fcn.00405690
add esp, 8
test bl, 2
je 0x4108da
and ebx, 0xfffffffd
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], ebx
call fcn.00419b40
push dword [esp + 0x34]
mov edx, 4
mov ecx, edi
push 1
push 0x3001f
call fcn.004125c0
add esp, 0xc
test al, al
jne 0x410941
cmp dword [0x4a3124], 2
jg 0x410939
push 2
push 0x2f
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 4
call fcn.00419a80
add eax, 8
push str.Unable_to_obtain_sufficient_permissions_on_key
push eax
call fcn.00405690
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x41092f
mov edi, dword [edi]
push edi
push eax
call fcn.0041a310
add esp, 8
test bl, 4
jmp 0x411153
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 8
jb 0x41094d
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x34], eax
test ebx, 0x800
je 0x41097e
and ebx, 0xfffff7ff
lea ecx, [esp + 0x110]
mov dword [esp + 0x10], ebx
call fcn.00419b40
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push 0x3001f
push 0
push dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41110f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4109b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jmp 0x4109c2
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x16
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
je 0x410a24
cmp eax, 0x7a
je 0x410a24
cmp dword [0x4a3124], 2
jg 0x410a1c
push 2
push 0x40
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 0x10
call fcn.00419a80
add eax, 8
push str.Failed_to_obtain_security_descriptor_for
push eax
call fcn.00405690
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x410a12
mov edi, dword [edi]
push edi
push eax
call fcn.0041a310
add esp, 8
test bl, 0x10
jmp 0x411153
push dword [esp + 0x3c]
call fcn.00466c82
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, dword [ecx + 0x18]
mov dword [ecx + 0x18], eax
test edx, edx
je 0x410a4b
push edx
call fcn.00466c8b
mov ecx, dword [esp + 0x20]
add esp, 4
lea eax, [esp + 0x3c]
push eax
push dword [ecx + 0x18]
push 0x16
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
je 0x410ab7
cmp dword [0x4a3124], 2
jg 0x410aaf
push 2
push 0x50
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 0x20
call fcn.00419a80
add eax, 8
push str.Failed_to_obtain_security_descriptor_for
push eax
call fcn.00405690
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x410a9a
mov edi, dword [edi]
push edi
push eax
call fcn.0041a310
push str._but_we_succeeded_earlier_
push eax
call fcn.00405690
add esp, 0x10
test bl, 0x20
jmp 0x411153
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x410b28
cmp dword [0x4a3124], 2
jg 0x410b20
push 2
push 0x5f
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 0x40
call fcn.00419a80
push edi
add eax, 8
push str.Failed_to_obtain_key_info_for
push eax
call fcn.00405690
add esp, 8
push eax
call fcn.0040ed30
add esp, 8
test bl, 0x40
jmp 0x411153
mov ecx, str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
call fcn.00410540
cmp eax, 1
jl 0x410b6d
push 0xffffffffffffffff
push 0x62
or ebx, 0x80
lea ecx, [esp + 0x68]
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
mov dword [esp + 0x1c], ebx
call fcn.00419a80
push str._values
push dword [esp + 0x48]
lea ecx, [eax + 8]
call fcn.0040fa50
push eax
call fcn.00405690
add esp, 8
test bl, bl
jns 0x410b84
and ebx, 0xffffff7f
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], ebx
call fcn.00419b40
mov eax, dword [esp + 0x40]
xor ecx, ecx
inc dword [esp + 0x28]
inc eax
mov dword [esp + 0x40], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466c82
add esp, 4
mov esi, eax
mov dword [esp + 0x38], esi
push dword [esp + 0x4c]
call fcn.00466c82
xor ecx, ecx
add esp, 4
mov edi, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x44], ecx
jle 0x410c6f
nop
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x60]
push eax
push 0
lea eax, [esp + 0x44]
push eax
push esi
push ecx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x410cf6
push 0x24
call fcn.00466a4b
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov dword [ebx + 0x1c], eax
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x18], ecx
mov ecx, ebx
push esi
call fcn.00403d00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], edi
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], ebx
push eax
call fcn.004115c0
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x44]
jl 0x410bd0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x4c], 0
lea ecx, [ecx + 0x20]
call fcn.004115c0
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466c82
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push 0
push eax
push esi
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x411005
nop dword [eax]
test eax, eax
jne 0x4110c2
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], 8
jb 0x410d4f
mov eax, dword [ecx]
jmp 0x410d51
cmp dword [0x4a3124], 2
mov ebx, dword [esp + 0x10]
jg 0x410d37
push 2
push 0x72
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 0x100
call fcn.00419a80
push dword [esp + 0x14]
add eax, 8
push str.Failed_to_obtain_value_nr
push eax
call fcn.00405690
add esp, 8
mov ecx, eax
call fcn.0040c5b0
test ebx, 0x100
je 0x410d48
lea ecx, [esp + 0x60]
call fcn.00419b40
xor bl, bl
jmp 0x411049
mov eax, ecx
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov dword [esp + 0x1f0], 7
mov dword [esp + 0x1ec], 0
mov word [esp + 0x1dc], dx
test ecx, ecx
jne 0x410d8b
xor eax, eax
mov dword [esp + 0x1ec], edx
mov word [esp + 0x1dc], ax
jmp 0x410d99
push ecx
push eax
lea ecx, [esp + 0x1e4]
call fcn.004046b0
push 1
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x1e8]
call fcn.00404190
cmp eax, 0xffffffff
je 0x410dca
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405230
sub esp, 8
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x410dd9
xor ecx, ecx
jmp 0x410e01
cmp word [esi], 0
jne 0x410de3
xor ecx, ecx
jmp 0x410e01
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x28], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410df0
sub ecx, dword [esp + 0x28]
sar ecx, 1
lea eax, [esp + 0x1fc]
mov dword [edx + 4], ecx
push eax
lea ecx, [esp + 0x1e8]
call fcn.0041ed10
lea ecx, [esp + 0x1dc]
cmp ecx, eax
je 0x410e2d
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
mov eax, dword [esp + 0x208]
cmp eax, 8
jb 0x410e4e
inc eax
lea ecx, [esp + 0x1f4]
push eax
push dword [esp + 0x1f8]
call fcn.004055d0
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x14], 8
jb 0x410e5c
mov ecx, dword [eax]
jmp 0x410e5e
mov ecx, eax
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0x1d8], 7
mov dword [esp + 0x1d4], 0
mov word [esp + 0x1c4], dx
test eax, eax
jne 0x410e96
mov dword [esp + 0x1d4], edx
mov word [esp + 0x1c4], ax
jmp 0x410ea4
push eax
push ecx
lea ecx, [esp + 0x1cc]
call fcn.004046b0
push 1
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x1d0]
call fcn.00404190
cmp eax, 0xffffffff
je 0x410ed5
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1cc]
call fcn.00405230
sub esp, 8
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x410ee4
xor ecx, ecx
jmp 0x410f08
cmp word [esi], 0
jne 0x410eee
xor ecx, ecx
jmp 0x410f08
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x28], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ef7
sub ecx, dword [esp + 0x28]
sar ecx, 1
lea eax, [esp + 0x1fc]
mov dword [edx + 4], ecx
push eax
lea ecx, [esp + 0x1d0]
call fcn.0041ed10
lea ecx, [esp + 0x1c4]
cmp ecx, eax
je 0x410f34
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
mov eax, dword [esp + 0x208]
cmp eax, 8
jb 0x410f55
inc eax
lea ecx, [esp + 0x1f4]
push eax
push dword [esp + 0x1f8]
call fcn.004055d0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x1e0]
push eax
call fcn.00410690
test al, al
je 0x4110a3
mov eax, dword [esp + 0x1d8]
cmp eax, 8
jb 0x410f97
inc eax
lea ecx, [esp + 0x1c4]
push eax
push dword [esp + 0x1c8]
call fcn.004055d0
xor eax, eax
mov dword [esp + 0x1d8], 7
mov word [esp + 0x1c4], ax
mov eax, dword [esp + 0x1f0]
mov dword [esp + 0x1d4], 0
cmp eax, 8
jb 0x410fd8
inc eax
lea ecx, [esp + 0x1dc]
push eax
push dword [esp + 0x1e0]
call fcn.004055d0
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push esi
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x410ce0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41101c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 8
jb 0x411028
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
test esi, esi
je 0x411045
push esi
call fcn.00466c8b
add esp, 4
mov esi, dword [esp + 0x38]
test edi, edi
je 0x411056
push edi
call fcn.00466c8b
add esp, 4
test esi, esi
je 0x411063
push esi
call fcn.00466c8b
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
je 0x41107b
mov ecx, esi
call fcn.00411520
push esi
call fcn.00466a7e
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41108a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x1c4]
call fcn.00403da0
lea ecx, [esp + 0x1dc]
call fcn.00403da0
xor bl, bl
jmp 0x411038
cmp dword [0x4a3124], 2
jg 0x4110f7
push 2
push 0x8a
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 0x200
call fcn.00419a80
add eax, 8
push str.Failed_to_read_a_subkey
push eax
call fcn.00405690
add esp, 8
test ebx, 0x200
je 0x411108
lea ecx, [esp + 0x60]
call fcn.00419b40
xor bl, bl
jmp 0x411038
cmp dword [0x4a3124], 2
jg 0x411150
push 2
push 0x37
push str.c:_buildbot_slaveworkdir_reposoperadesktopwindowsinstaller_service_transactionsdelete_reg_key_operation.cc
lea ecx, [esp + 0x6c]
or ebx, 8
call fcn.00419a80
add eax, 8
push str.Failed_to_open_key
push eax
call fcn.00405690
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x411146
mov edi, dword [edi]
push edi
push eax
call fcn.0041a310
add esp, 8
test bl, 8
je 0x41115e
lea ecx, [esp + 0x60]
call fcn.00419b40
xor bl, bl
jmp 0x411067