Function at 0x414530
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x457ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
call fcn.004316f5
mov edi, dword [eax + 4]
call fcn.004048c0
mov ebx, eax
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414580
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0
call fcn.004027b0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
push eax
mov byte [esp + 0x50], 1
call fcn.004015c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00410300
add esp, 8
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4145ee
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x44], 2
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41461d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x44], 3
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41464c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebx, 2
mov byte [esp + 0x44], 4
je 0x414bf2
cmp ebx, 3
je 0x414bf2
mov ebp, dword [esp + 0x4c]
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 0
call fcn.004027b0
push 2
push 0x45d5bc
push ebp
mov byte [esp + 0x50], 0xb
call fcn.00443529
add esp, 0xc
test eax, eax
jne 0x4149c1
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4146c0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov ebp, dword [ecx - 0xc]
push str.NONE
push edx
mov byte [esp + 0x4c], 0xc
call fcn.00440d82
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
test eax, eax
je 0x414834
push str._FAX
lea eax, [edi + 0xe4]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xd
call fcn.00402020
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 0xc
call fcn.00401660
lea edx, [ebp - 1]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
call fcn.004072d0
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x50], 0xe
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xf
call fcn.00402020
lea ecx, [esp + 0x34]
call fcn.00401660
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0xc
call fcn.00401660
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00401410
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407350
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0x10
call fcn.00402020
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0xc
call fcn.00401660
mov esi, dword [esp + 0x14]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
push 0x80000001
call ebx
mov esi, dword [esp + 0x24]
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4147f2
push esi
push 0x80000001
call ebx
mov esi, dword [esp + 0x18]
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414834
push esi
push 0x80000001
call ebx
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414834
push str.SOFTWARECANON_
push 0x80000001
call ebx
add edi, 0xe4
push edi
lea ecx, [esp + 0x1c]
call fcn.00402020
add ebp, 0xffffffff
push ebp
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.004072d0
push eax
lea edx, [esp + 0x3c]
push edi
push edx
mov byte [esp + 0x50], 0x11
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0x12
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41489e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push 0x5c
push ebp
call fcn.00440e55
add esp, 8
test eax, eax
jne 0x4148db
or eax, 0xffffffff
jmp 0x4148dd
sub eax, ebp
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407350
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0x13
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414920
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
push 0x80000001
call fcn.0040ce00
add esp, 8
push ebp
push 0x80000001
call ebx
mov edi, dword [esp + 0x24]
push edi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414955
push edi
push 0x80000001
call ebx
mov esi, dword [esp + 0x18]
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414997
push esi
push 0x80000001
call ebx
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414997
push str.SOFTWARECANON_
push 0x80000001
call ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x44], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414bc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x414bc4
mov ecx, dword [esp + 0x20]
push str.NONE
push ecx
call fcn.00440d82
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
test eax, eax
je 0x414adb
push str._FAX
lea edx, [edi + 0xe4]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0x14
call fcn.00402020
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0xb
call fcn.00401660
push ebp
lea ecx, [esp + 0x28]
call fcn.004027b0
mov esi, eax
push 0x45c6ec
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x50], 0x15
call fcn.00401f00
push esi
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x5c], 0x16
call fcn.0040ef70
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0x17
call fcn.00402020
lea ecx, [esp + 0x38]
call fcn.00401660
lea ecx, [esp + 0x34]
call fcn.00401660
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0xb
call fcn.00401660
mov esi, dword [esp + 0x14]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
push 0x80000001
call ebx
mov esi, dword [esp + 0x18]
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414adb
push esi
push 0x80000001
call ebx
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414adb
push str.SOFTWARECANON_
push 0x80000001
call ebx
lea ecx, [edi + 0xe4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402020
push ebp
lea ecx, [esp + 0x38]
call fcn.004027b0
push eax
add edi, 0xe0
lea edx, [esp + 0x3c]
push edi
push edx
mov byte [esp + 0x50], 0x18
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0x19
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push ebp
push 0x80000001
call fcn.0040ce00
add esp, 8
push ebp
push 0x80000001
call ebx
mov esi, dword [esp + 0x18]
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414bc4
push esi
push 0x80000001
call ebx
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414bc4
push str.SOFTWARECANON_
push 0x80000001
call ebx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415098
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x415098
mov ebx, 1
cmp dword [esp + 0x58], ebx
jne 0x414c0a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00404340
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x414c30
push 0x45d77c
push ecx
call fcn.00442d29
add esp, 8
test eax, eax
je 0x414c30
sub eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jne 0x414c51
mov eax, dword [edi + 0xb8]
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.00413470
add esp, 8
test eax, eax
jge 0x414c51
mov dword [esp + 0x30], ebx
jmp 0x415074
mov eax, dword [esp + 0x20]
push str.NONE
push eax
mov dword [esp + 0x38], 0
call fcn.00440d82
add esp, 8
test eax, eax
jne 0x414d61
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [esp + 0x38]
call fcn.004027b0
push eax
lea edx, [edi + 0xe0]
push edx
lea eax, [esp + 0x40]
mov bl, 5
push eax
mov byte [esp + 0x50], bl
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 6
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414cf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xe4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402020
add edi, 0xec
push edi
lea ecx, [esp + 0x20]
call fcn.00402020
mov ebp, dword [esp + 0x14]
push ebp
push 0x80000002
call fcn.0040ce00
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push ebp
push 0x80000002
call edi
mov esi, dword [esp + 0x18]
push esi
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415020
push esi
push 0x80000002
call edi
mov edx, dword [esp + 0x1c]
push edx
jmp 0x414ff6
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004027b0
mov esi, eax
push str._FAX_
lea ebp, [edi + 0xe4]
lea ecx, [esp + 0x38]
push ebp
push ecx
mov byte [esp + 0x50], 7
call fcn.00401f00
push esi
push eax
lea edx, [esp + 0x4c]
mov bl, 8
push edx
mov byte [esp + 0x5c], bl
call fcn.0040ef70
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 9
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414df9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._FAX
lea ecx, [esp + 0x3c]
push ebp
push ecx
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xa
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414e65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xec
push edi
lea ecx, [esp + 0x20]
call fcn.00402020
mov ebp, dword [esp + 0x14]
push ebp
push 0x80000002
call fcn.0040ce00
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push ebp
push 0x80000002
call edi
mov esi, dword [esp + 0x18]
push esi
push 0x80000002
call fcn.0040cf30
mov ebx, dword [esp + 0x24]
add esp, 8
cmp eax, 1
jne 0x414ee3
push esi
push 0x80000002
call edi
push ebx
push 0x80000002
call edi
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414ee3
push str.SOFTWARECANON_
push 0x80000002
call edi
push ebp
push 0x80000001
call fcn.0040ce00
add esp, 8
push ebp
push 0x80000001
call edi
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414f37
push esi
push 0x80000001
call edi
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x414f37
push str.SOFTWARECANON_
push 0x80000001
call edi
cmp dword [ebp - 0xc], 0
jl 0x414f66
push str._FAX
push ebp
call fcn.00442d29
add esp, 8
test eax, eax
je 0x414f66
sub eax, ebp
cmp eax, 0xffffffff
je 0x414f66
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ec40
mov ebp, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x414f95
push str._FAX
push esi
call fcn.00442d29
add esp, 8
test eax, eax
je 0x414f95
sub eax, esi
cmp eax, 0xffffffff
je 0x414f95
push 4
push eax
lea ecx, [esp + 0x20]
call fcn.0040ec40
mov esi, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jl 0x414fc4
push str._FAX
push ebx
call fcn.00442d29
add esp, 8
test eax, eax
je 0x414fc4
sub eax, ebx
cmp eax, 0xffffffff
je 0x414fc4
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.0040ec40
mov ebx, dword [esp + 0x1c]
push ebp
push 0x80000002
call fcn.0040ce00
add esp, 8
push ebp
push 0x80000002
call edi
push esi
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415020
push esi
push 0x80000002
call edi
push ebx
push 0x80000002
call edi
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415020
push str.SOFTWARECANON_
push 0x80000002
call edi
push ebp
push 0x80000001
call fcn.0040ce00
add esp, 8
push ebp
push 0x80000001
call edi
push esi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415074
push esi
push 0x80000001
call edi
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415074
push str.SOFTWARECANON_
push 0x80000001
call edi
cmp dword [esp + 0x58], 0
je 0x415098
mov edi, dword [esp + 0x5c]
push edi
push str.EnumLPTENUM
call fcn.0040e5a0
push edi
push str.EnumUSBPRINT
call fcn.0040e5a0
add esp, 0x10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150de
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0x44], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415100
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41514d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret