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

Disassembly:
push 0xffffffffffffffff
push 0x456b66
mov eax, dword fs:[0]
push eax
mov eax, 0x8440
call fcn.00441390
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x843c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x8454]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8464]
xor edi, edi
call fcn.004317f7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4081b2
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 + 0x18], eax
mov dword [esp + 0x845c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
call fcn.004316f5
cmp dword [esp + 0x8468], 1
mov esi, dword [eax + 4]
mov dword [esp + 0x38], esi
jne 0x408217
push ebx
lea ecx, [esp + 0x148]
push str.FREEDOM_Driver_Name_:__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push str.Tool_VDCModuleUninstallCheck
lea edx, [esp + 0x14c]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 0xcc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402020
push 0x7fff
lea eax, [esp + 0x454]
push edi
push eax
call fcn.004413c0
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x460]
push ebp
push ecx
call fcn.00442f40
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x46c]
push 0x45c6d8
push eax
mov dword [esp + 0x4c], edi
call fcn.0044129d
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4085c1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4082a3
lea ecx, [esp + 0x28]
push ecx
push 0x45c6d8
push 0
call fcn.0044129d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x408278
jmp 0x4085c1
test esi, esi
je 0x4085c1
mov edi, 1
cmp dword [esp + 0x8468], edi
jne 0x4082e7
push esi
lea edx, [esp + 0x148]
push str.This_Driver__s__is_VDC_Service_Model
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Tool_VDCModuleUninstallCheck
lea eax, [esp + 0x14c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 2
push 0
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x40833d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40833d
lea eax, [ebp - 0x10]
mov dword [esp + 0x845c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4085ea
mov ecx, dword [esp + 0x20]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x408612
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
push 2
push 0
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
cmp eax, edi
jne 0x40844b
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x408447
xor edi, edi
test eax, eax
jbe 0x40844b
add ebx, 0x10
mov eax, dword [esp + 0x38]
add eax, 0xcc
push eax
lea ecx, [esp + 0x1c]
call fcn.00402020
push 0x7fff
lea edx, [esp + 0x454]
push 0
push edx
call fcn.004413c0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
push eax
lea eax, [esp + 0x460]
push esi
push eax
call fcn.00442f40
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x46c]
push 0x45c6d8
push edx
call fcn.0044129d
add esp, 0x24
test eax, eax
je 0x408416
nop
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408434
lea ecx, [esp + 0x28]
push ecx
push 0x45c6d8
push 0
call fcn.0044129d
add esp, 0xc
test eax, eax
jne 0x4083f0
mov esi, 1
add edi, esi
add ebx, 0x54
cmp edi, dword [esp + 0x24]
jb 0x408394
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
jmp 0x40844f
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esi - 0x10]
jmp 0x408312
mov esi, edi
jmp 0x40844f
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 1
jne 0x408612
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push 0
push str.SOFTWARECanonVDCSETUPVDCUser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40849f
lea eax, [ebp - 0x10]
mov dword [esp + 0x845c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40832a
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4084b9
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 + 0x14], eax
mov edi, dword [esp + 0x38]
lea ecx, [edi + 0xd4]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x8460], 1
call fcn.00402020
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edx
push eax
call esi
add edi, 0xd8
push edi
lea ecx, [esp + 0x18]
call fcn.00402020
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x350]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
xor esi, esi
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x54]
push eax
push esi
mov ebp, 0x104
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call edi
test eax, eax
jne 0x408586
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x350]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x54]
push eax
add esi, 1
push esi
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call edi
test eax, eax
je 0x408551
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, esi
sbb edi, edi
mov byte [esp + 0x845c], al
lea eax, [ebx - 0x10]
add edi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
lea eax, [ebp - 0x10]
mov dword [esp + 0x845c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x8454]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x843c]
xor ecx, esp
call fcn.0044027a
add esp, 0x844c
ret
xor edi, edi
jmp 0x4085c1