Function at 0x64186ee0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x238
mov esi, dword [ecx]
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6419a328
call ebx
sub esp, 4
test esi, esi
je 0x64187230
cmp esi, dword [0x6419a304]
ja 0x64187230
mov eax, dword [0x6419a324]
mov esi, dword [eax + esi*4 - 4]
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], 0x6419a328
mov dword [ebp - 0x22c], eax
call eax
sub esp, 4
test esi, esi
je 0x64187240
mov esi, dword [esi]
mov dword [ebp - 0x224], 0x104
test esi, esi
je 0x64187240
mov dword [esp], 0x6419a0c8
call ebx
xor edx, edx
mov eax, esi
sub esp, 4
call sym._get_config_module
mov ebx, eax
test eax, eax
je 0x6418709b
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
test edx, edx
je 0x64186fb0
test ecx, ecx
je 0x64186f99
lea esi, [esi]
nop
mov eax, edx
mov edx, dword [edx + 4]
test edx, edx
jne 0x64186f90
mov edx, dword [eax]
mov ecx, dword [eax + 8]
test edx, edx
jne 0x64186fba
mov dword [0x6419a0c4], ecx
jmp 0x64186fc6
test ecx, ecx
je 0x64186f99
mov edx, dword [eax]
test edx, edx
je 0x64186fa2
cmp dword [edx + 4], eax
je 0x64187260
mov dword [edx + 8], ecx
test ecx, ecx
je 0x64186fce
mov edx, dword [eax]
mov dword [ecx], edx
mov edi, dword [eax + 0xc]
mov edx, dword [eax]
and edi, 1
mov dword [ebp - 0x234], edi
cmp ebx, eax
je 0x6418703c
mov edi, dword [ebx]
mov dword [eax], edi
mov dword [ebp - 0x230], edi
mov edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ebx + 8]
mov dword [eax + 8], edi
mov edi, dword [ebx + 0xc]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x641873d0
mov edi, dword [ebp - 0x230]
cmp ebx, dword [edi + 4]
je 0x64187450
mov edi, dword [ebp - 0x230]
mov dword [edi + 8], eax
mov edi, dword [eax + 8]
test edi, edi
je 0x6418702b
mov dword [edi], eax
mov edi, dword [eax + 4]
test edi, edi
je 0x64187034
mov dword [edi], eax
cmp ebx, edx
je 0x641873e0
mov eax, dword [ebp - 0x234]
test eax, eax
jne 0x64187070
test edx, edx
je 0x6418743a
test ecx, ecx
je 0x64187270
mov eax, dword [ecx + 0xc]
test al, 1
je 0x64187270
and eax, 0xfffffffe
mov dword [ecx + 0xc], eax
lea esi, [esi]
nop
mov eax, dword [0x6419a0c4]
test eax, eax
je 0x6418707d
and dword [eax + 0xc], 0xfffffffe
lock dec dword [ebx + 0x14]
jne 0x6418709b
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x22c]
mov dword [esp], 0x6419a0c8
lea edi, [ebp - 0x228]
call eax
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp], 0x80000002
call ebx
sub esp, 0xc
test eax, eax
je 0x64187200
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x641871d0
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x641871a0
lea edx, [ebp - 0x220]
lea eax, [ebp - 0x224]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._GetDefaultPrinterW_8.part.0
lea edx, [ebp - 0x220]
sub esp, 8
test eax, eax
jne 0x64187158
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 4], esi
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x6418713e
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x641873f8
mov dword [esp], 0
call sym.winspool.drv_SetDefaultPrinterW
sub esp, 4
jmp 0x6418713e
mov eax, dword [ebp - 0x228]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x228]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x64187119
mov eax, dword [ebp - 0x228]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x228]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x641870f9
mov eax, dword [ebp - 0x228]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [ebp - 0x228]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x641870d9
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 6
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [edx + 4], ecx
jmp 0x64186fc6
mov eax, dword [edx + 4]
cmp eax, ecx
je 0x64187460
test eax, eax
je 0x64199a67
mov ecx, dword [eax + 0xc]
test cl, 1
je 0x641872c6
and ecx, 0xfffffffe
mov dword [eax + 0xc], ecx
mov ecx, dword [edx]
or dword [edx + 0xc], 1
mov eax, dword [edx + 4]
test ecx, ecx
je 0x6418758b
cmp dword [ecx + 4], edx
je 0x641875a4
mov dword [ecx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x641872ba
mov dword [ecx], edx
mov dword [eax + 8], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x230], ecx
test ecx, ecx
je 0x64187330
test byte [ecx + 0xc], 1
je 0x64187330
mov ecx, dword [eax + 0xc]
mov edi, dword [edx + 0xc]
and ecx, 0xfffffffe
and edi, 1
or ecx, edi
mov dword [eax + 0xc], ecx
and dword [edx + 0xc], 0xfffffffe
mov eax, dword [eax + 4]
test eax, eax
je 0x641872f9
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [edx]
mov eax, dword [edx + 4]
test ecx, ecx
je 0x64187430
cmp dword [ecx + 4], edx
je 0x64187578
mov dword [ecx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x6418731e
mov dword [ecx], edx
mov dword [eax + 8], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
jmp 0x64187070
mov edi, dword [eax + 8]
test edi, edi
je 0x641873b8
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x234], ecx
and ecx, 1
je 0x641873b8
mov ecx, dword [ebp - 0x230]
test ecx, ecx
jne 0x64187564
mov ecx, dword [ebp - 0x234]
and ecx, 0xfffffffe
mov dword [edi + 0xc], ecx
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edi, dword [eax + 8]
test ecx, ecx
je 0x64187580
cmp eax, dword [ecx + 4]
je 0x64187595
mov dword [ecx + 8], edi
mov ecx, dword [edi + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x6418738c
mov dword [ecx], eax
mov dword [edi + 4], eax
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [eax], edi
mov eax, dword [edx + 4]
jmp 0x641872d9
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x641873b8
test byte [ecx + 0xc], 1
jne 0x64187519
lea esi, [esi]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov ecx, edx
test eax, eax
je 0x64187442
mov edx, eax
jmp 0x6418704e
mov dword [0x6419a0c4], eax
jmp 0x64187022
mov edx, dword [ebp - 0x234]
test edx, edx
jne 0x64187070
mov edx, eax
jmp 0x6418704e
mov eax, dword [ebp - 0x228]
mov dword [esp + 4], str.device
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x228]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x64187189
mov dword [0x6419a0c4], eax
jmp 0x64187312
test ecx, ecx
je 0x64187070
mov eax, dword [ecx + 0xc]
jmp 0x64187061
mov dword [edi + 4], eax
jmp 0x64187022
mov eax, dword [edx + 8]
test eax, eax
je sym._DeletePrinter_4.cold
mov ecx, dword [eax + 0xc]
test cl, 1
je 0x641874ae
and ecx, 0xfffffffe
mov dword [eax + 0xc], ecx
mov ecx, dword [edx]
or dword [edx + 0xc], 1
mov eax, dword [edx + 8]
test ecx, ecx
je 0x641875bc
cmp dword [ecx + 4], edx
je 0x641875ce
mov dword [ecx + 8], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x641874a2
mov dword [ecx], edx
mov dword [eax + 4], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov eax, dword [edx + 8]
mov edi, dword [eax + 4]
test edi, edi
je 0x641873a0
mov ecx, dword [edi + 0xc]
test cl, 1
je 0x641873a0
mov dword [ebp - 0x230], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x641874d8
test byte [ecx + 0xc], 1
jne 0x64187519
mov ecx, dword [ebp - 0x230]
and ecx, 0xfffffffe
mov dword [edi + 0xc], ecx
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edi, dword [eax + 4]
test ecx, ecx
je 0x641875b1
cmp eax, dword [ecx + 4]
je 0x641875c6
mov dword [ecx + 8], edi
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x6418750d
mov dword [ecx], eax
mov dword [edi + 8], eax
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [eax], edi
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov edi, dword [edx + 0xc]
and ecx, 0xfffffffe
and edi, 1
or ecx, edi
mov dword [eax + 0xc], ecx
and dword [edx + 0xc], 0xfffffffe
mov eax, dword [eax + 8]
test eax, eax
je 0x64187539
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [edx]
mov eax, dword [edx + 8]
test ecx, ecx
je 0x6418759d
cmp dword [ecx + 4], edx
je 0x641875ac
mov dword [ecx + 8], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x64187556
mov dword [ecx], edx
mov dword [eax + 4], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
jmp 0x64187070
test byte [ecx + 0xc], 1
je 0x64187357
jmp 0x641872d9
mov dword [ecx + 4], eax
jmp 0x64187312
mov dword [0x6419a0c4], edi
jmp 0x64187380
mov dword [0x6419a0c4], eax
jmp 0x641872ae
mov dword [ecx + 4], edi
jmp 0x64187380
mov dword [0x6419a0c4], eax
jmp 0x6418754a
mov dword [ecx + 4], eax
jmp 0x641872ae
mov dword [ecx + 4], eax
jmp 0x6418754a
mov dword [0x6419a0c4], edi
jmp 0x64187501
mov dword [0x6419a0c4], eax
jmp 0x64187496
mov dword [ecx + 4], edi
jmp 0x64187501
mov dword [ecx + 4], eax
jmp 0x64187496
mov eax, dword [4]
ud2