Function at 0x401990
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4073d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [esp + 0x24], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.CLSID
push 0x80000000
mov dword [esp + 0x144], ebx
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x4019eb
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
push ecx
push 0x2001f
push ebx
push str.B83FC273_3522_4CC6_92EC_75CC86678DA4
push esi
mov dword [esp + 0x2c], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x401a2d
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x401a42
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], bl
call fcn.00401bc0
jmp 0x401aca
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x34], 0x100
call ebp
test eax, eax
jne 0x401a9c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.00401be0
cmp eax, ebx
jne 0x401a2d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x100
call ebp
test eax, eax
je 0x401a64
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401aaf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push str.B83FC273_3522_4CC6_92EC_75CC86678DA4
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401aca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x18]
mov byte [esp + 0x130], 2
push edx
push 0x2001f
push ebx
push str.D157330A_9EF3_49F8_9A67_4141AC41ADD4
push esi
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0x401b80
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x401b80
lea eax, [esp + 0x1c]
lea edx, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x401b61
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401be0
cmp eax, ebx
jne 0x401b80
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x34], edi
call ebp
test eax, eax
je 0x401b2d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401b74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push str.D157330A_9EF3_49F8_9A67_4141AC41ADD4
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], bl
call fcn.00401bc0
cmp esi, ebx
je 0x401b9b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret