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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b64ac
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, edx
cmp dword [edi + 0x14], 8
mov byte [esp + 0x20], cl
jb 0x41d8d6
mov ecx, dword [edi]
jmp 0x41d8d8
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
or edx, 2
push edx
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41dad0
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x120], ebx
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push ecx
lea edx, [esp + 0x4c]
push str.RegOpenKeyEx_Failed._lStatus:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x1b
mov esi, 0xf
push str.CRegUtility::DeleteRegValue
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 2
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 3
push eax
lea ecx, [esp + 0xc0]
push ecx
push 0xc6
lea edx, [esp + 0xe4]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 2
cmp dword [esp + 0x108], 8
jb 0x41da29
mov eax, dword [esp + 0xf4]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], cx
mov byte [esp + 0x120], 1
mov edi, 0x10
cmp dword [esp + 0xec], edi
jb 0x41da6b
mov edx, dword [esp + 0xd8]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov byte [esp + 0x120], bl
cmp dword [esp + 0xd0], edi
jb 0x41daa0
mov eax, dword [esp + 0xbc]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
xor al, al
jmp 0x41e0db
mov byte [esp + 0x17], 1
cmp byte [esp + 0x20], bl
je 0x41dcb0
cmp dword [esi + 0x14], 8
jb 0x41dae9
mov eax, dword [esi]
jmp 0x41daeb
mov eax, esi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41deb1
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x120], 4
mov edx, dword [esp + 0x18]
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push edx
push ecx
lea eax, [esp + 0x4c]
push str.RegDeleteKey_Failed._lStatus:
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x1b
push str.CRegUtility::DeleteRegValue
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 6
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 7
push eax
lea edx, [esp + 0xdc]
push edx
push 0xd0
lea eax, [esp + 0xc8]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 6
cmp dword [esp + 0x108], 8
jb 0x41dc36
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], dx
mov byte [esp + 0x120], 5
cmp dword [esp + 0xd0], 0x10
jb 0x41dc74
mov eax, dword [esp + 0xbc]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], 4
cmp dword [esp + 0xec], 0x10
jb 0x41de80
mov ecx, dword [esp + 0xd8]
push ecx
jmp 0x41de78
cmp dword [esi + 0x14], 8
jb 0x41dcba
mov eax, dword [esi]
jmp 0x41dcbc
mov eax, esi
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41deb1
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x120], 8
mov eax, dword [esp + 0x18]
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push eax
push ecx
lea ecx, [esp + 0x4c]
push str.RegDeleteValue_Failed._lStatus:
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x1b
push str.CRegUtility::DeleteRegValue
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 0xa
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 0xb
push eax
lea eax, [esp + 0xdc]
push eax
push 0xd9
lea ecx, [esp + 0xc8]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x108], 8
jb 0x41de07
mov edx, dword [esp + 0xf4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], ax
mov byte [esp + 0x120], 9
cmp dword [esp + 0xd0], 0x10
jb 0x41de45
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], 8
cmp dword [esp + 0xec], 0x10
jb 0x41de80
mov edx, dword [esp + 0xd8]
push edx
call fcn.00490458
add esp, 4
mov byte [esp + 0xd8], bl
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], 0xf
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
mov byte [esp + 0x17], bl
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
call fcn.00413cc0
mov dword [esp + 0x120], 0xc
mov eax, 0x4c5170
cmp byte [esp + 0x17], bl
jne 0x41dee8
mov eax, str.FAILED.
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push ecx
push str.._samDesired:
push ecx
push edx
push ecx
push str.._isTree:
push ecx
push esi
push ecx
push str.._strKeyName:
push ecx
push edi
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea eax, [esp + 0x6c]
push str.DeleteRegValue
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
mov ecx, eax
call fcn.0041edd0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x1b
mov esi, 0xf
push str.CRegUtility::DeleteRegValue
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 0xd
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 0xe
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 0xf
push eax
lea edx, [esp + 0xdc]
push edx
push 0xe1
lea eax, [esp + 0xc8]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 0xe
cmp dword [esp + 0x108], 8
jb 0x41e036
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], dx
mov byte [esp + 0x120], 0xd
mov edi, 0x10
cmp dword [esp + 0xd0], edi
jb 0x41e078
mov eax, dword [esp + 0xbc]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], 0xc
cmp dword [esp + 0xec], edi
jb 0x41e0ae
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret 0xc