Function at 0x40d401
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x4b2d29
call fcn.0048ccab
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x11], bl
call fcn.00403d53
push 0x4c66b0
lea ecx, [ebp + 0xc]
call fcn.004101ab
cmp byte [ebp + 8], bl
je 0x40d4cf
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
cmp esi, 2
jle 0x40d481
push ebx
push 0x4c66b4
lea ecx, [ebp + 0xc]
call fcn.00403cf8
add esi, 0xfffffffe
cmp eax, esi
jne 0x40d481
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403e0a
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.0040521a
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0040392e
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
cmp esi, 2
jle 0x40d4cf
push ebx
push 0x4c66bc
lea ecx, [ebp + 0xc]
call fcn.00403cf8
add esi, 0xfffffffe
cmp eax, esi
jne 0x40d4cf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403e0a
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0xc]
call fcn.0040521a
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0040392e
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403e0a
mov byte [ebp - 4], 3
push eax
mov ecx, str.hkey
call fcn.00407f14
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0040392e
cmp byte [ebp + 0xb], bl
je 0x40d748
lea ecx, [ebp - 0x1c]
xor edi, edi
call fcn.0040389d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040389d
mov byte [ebp - 4], 5
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4c65c4
call fcn.00403c8f
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 6
call fcn.0040d9d2
add esp, 0xc
cmp dword [ebp - 0x40], 1
jbe 0x40d570
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040521a
cmp dword [ebp - 0x40], ebx
je 0x40d586
ja 0x40d581
push 0x80070057
call fcn.0040103e
mov eax, dword [ebp - 0x44]
jmp 0x40d589
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00403c69
mov byte [ebp - 4], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, 0x4c5c2c
push esi
call fcn.00403c8f
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 9
call fcn.0040d9d2
add esp, 0xc
cmp dword [ebp - 0x30], 1
jbe 0x40d64f
cmp dword [ebp - 0x30], ebx
jbe 0x40d577
push dword [ebp - 0x34]
mov ecx, str.hkey_users
call fcn.00407f14
test eax, eax
jne 0x40d5f2
mov edi, VariantInit
jmp 0x40d64f
cmp dword [ebp - 0x30], ebx
jbe 0x40d577
push dword [ebp - 0x34]
mov ecx, str.hkey_current_user
call fcn.00407f14
test eax, eax
jne 0x40d60f
mov edi, SysReAllocString
jmp 0x40d64f
cmp dword [ebp - 0x30], ebx
jbe 0x40d577
push dword [ebp - 0x34]
mov ecx, str.hkey_classes_root
call fcn.00407f14
test eax, eax
jne 0x40d630
mov edi, SysReAllocString
jmp 0x40d64f
cmp dword [ebp - 0x30], ebx
jbe 0x40d577
push dword [ebp - 0x34]
mov ecx, str.hkey_local_machine
call fcn.00407f14
test eax, eax
jne 0x40d64f
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00403cf8
inc eax
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.0040fe2f
cmp edi, ebx
je 0x40d70d
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
push ebx
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
je 0x40d6b1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esp
push eax
call fcn.00403c69
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c69
mov byte [ebp - 4], 0xc
push edi
mov byte [ebp - 4], 9
call fcn.0040d910
add esp, 0x14
cmp al, bl
je 0x40d70d
jmp 0x40d709
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c69
mov byte [ebp - 4], 0xd
push edi
mov byte [ebp - 4], 9
call fcn.0040d75d
add esp, 0x10
cmp al, bl
jne 0x40d709
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c69
mov byte [ebp - 4], 0xe
push edi
mov byte [ebp - 4], 9
call fcn.0040d75d
add esp, 0x10
cmp al, bl
jne 0x40d709
push dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x40d70d
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 8
lea esi, [ebp - 0x34]
call fcn.00412fb6
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
call fcn.0040392e
mov byte [ebp - 4], 5
lea esi, [ebp - 0x44]
call fcn.00412fb6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040392e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0040392e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040392e
mov al, byte [ebp - 0x11]
call fcn.0048cd83
ret