Function at 0x421830
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cf18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x38]
push str.Tool_DeleteNetworkPrinterSubForFax
push eax
call fcn.0040ac70
add esp, 0xc
push esi
push str.lpszPrinter___s
lea ecx, [ebp - 0x38]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x10
call fcn.00442c4d
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4218ad
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401210
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x30], edi
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4218f0
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42191d
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42194a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00417dc0
mov edx, dword [ebp - 0x20]
push str.NONE
push edx
call fcn.00533c47
add esp, 0x10
test eax, eax
je 0x421b0d
push str._FAX
add ebx, 0xf8
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004063e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00401520
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
dec edi
push edi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413980
push eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
mov bl, 7
push eax
mov byte [ebp - 4], bl
call fcn.00413a80
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00401520
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00534819
add esp, 8
test eax, eax
jne 0x421a6e
or eax, 0xffffffff
jmp 0x421a72
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00413a00
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00401520
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push SysReAllocString
call fcn.00414fb0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 8
push esi
push SysReAllocString
call ebx
mov edi, dword [ebp - 0x18]
mov esi, SysReAllocString
call fcn.00415170
cmp eax, 1
jne 0x421ae1
push edi
push esi
call ebx
mov edi, dword [ebp - 0x14]
call fcn.00415170
cmp eax, 1
jne 0x421b0d
push edi
push SysReAllocString
call ebx
mov edi, str.SOFTWARECANON_
call fcn.00415170
cmp eax, 1
jne 0x421b0d
push edi
push SysReAllocString
call ebx
mov esi, dword [ebp - 0x2c]
add esi, 0xf8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401520
mov ecx, dword [ebp - 0x30]
dec ecx
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00413980
push eax
lea eax, [ebp - 0x30]
push esi
mov bl, 0xa
push eax
mov byte [ebp - 4], bl
call fcn.00413a80
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.00401520
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00534819
add esp, 8
test eax, eax
jne 0x421bac
or eax, 0xffffffff
jmp 0x421bb0
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00413a00
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.00401520
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push SysReAllocString
call fcn.00414fb0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 8
push esi
push SysReAllocString
call ebx
mov edi, dword [ebp - 0x18]
mov esi, SysReAllocString
call fcn.00415170
cmp eax, 1
jne 0x421c21
mov ecx, edi
push ecx
push esi
call ebx
mov edi, dword [ebp - 0x14]
call fcn.00415170
cmp eax, 1
jne 0x421c4f
mov edx, edi
push edx
push SysReAllocString
call ebx
mov edi, str.SOFTWARECANON_
call fcn.00415170
cmp eax, 1
jne 0x421c4f
push edi
push SysReAllocString
call ebx
push 0
push str.return___08x
lea eax, [ebp - 0x38]
push 2
push eax
call fcn.0040aed0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421caa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ccd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret