Function at 0x4061b0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447c86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x844c
call fcn.0042dd50
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x8464], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call fcn.0044608e
mov ebx, dword [eax + 4]
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x34], ebx
jne 0x406246
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14c]
push str.FREEDOM_Driver_Name_:__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push str.Tool_VDCModuleUninstallCheck
lea edx, [esp + 0x150]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebx + 0xc8]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e30
mov esi, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x1fff
lea edi, [esp + 0x458]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [esi - 0xc]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x458]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x458]
push 0x44b628
push ecx
call fcn.0042e8d8
mov esi, eax
add esp, 8
test esi, esi
je 0x4065c4
mov edx, dword [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4062cd
push 0x44b628
push 0
call fcn.0042e8d8
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062a4
jmp 0x4065c4
test esi, esi
je 0x4065c4
mov eax, dword [ebp + 0xc]
mov edi, 1
cmp eax, edi
jne 0x40630f
push esi
lea eax, [esp + 0x14c]
push str.This_Driver__s__is_VDC_Service_Model
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Tool_VDCModuleUninstallCheck
lea ecx, [esp + 0x150]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 2
push 0
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x40633b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40648c
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x4065bc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push esi
push 2
push 0
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
cmp eax, edi
jne 0x406458
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x406454
add esi, 0x10
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], esi
lea eax, [ebx + 0xc8]
push eax
lea ecx, [esp + 0x18]
call fcn.00401e30
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x1fff
lea edi, [esp + 0x458]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebx - 0xc]
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x458]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x458]
and ecx, 3
push 0x44b628
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042e8d8
add esp, 8
test eax, eax
je 0x406415
mov edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406444
push 0x44b628
push 0
call fcn.0042e8d8
add esp, 8
test eax, eax
jne 0x4063f0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
inc eax
add edx, 0x54
cmp eax, ecx
mov edi, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jb 0x406394
mov esi, dword [esp + 0x38]
jmp 0x40645c
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebx - 0x10]
jmp 0x406493
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 1
jne 0x4065bc
lea eax, [esp + 0x24]
push eax
push 0x2001f
push 0
push str.SOFTWARECanonVDCSETUPVDCUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4064cc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x8464], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x845c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
add ebx, 0xd0
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8468], 1
call fcn.00401e30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x354]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
xor esi, esi
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
push esi
mov ebx, 0x104
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call edi
test eax, eax
jne 0x406583
jmp 0x406550
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x354]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
inc esi
push esi
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call edi
test eax, eax
je 0x406550
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, esi
mov byte [esp + 0x8464], al
mov eax, dword [esp + 0x18]
sbb esi, esi
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4065c8
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x8464], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x845c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret