Function at 0x4091f7
Capabilities:
Delete registry key

Disassembly:
push 0x24
mov eax, 0x596f6a
call fcn.00410ff3
mov ebx, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x2c], 0
mov esi, 0x59c388
and dword [ebp - 0x18], 0
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401f62
and dword [ebp - 4], 0
mov esi, str.654D312D_3FDF_4602_B481_FE4CDB41F11A
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401cf3
call fcn.0041555d
test al, al
je 0x409268
push ebx
push edx
pop edi
pop esp
push esp
pop eax
push edx
pop edi
pop ebp
push esi
push edi
push edi
push edi
push ebp
pop esi
pop ebp
pop esi
call fcn.00415a37
test al, al
je 0x409291
push edx
pop esi
push esp
pop ebx
pop eax
push edi
push ebp
push eax
pop ebx
pop esp
push edi
push esp
pop edx
pop edx
push edi
push edx
push esi
pop ecx
pop eax
pop ebx
pop eax
push esp
pop edi
push ecx
pop esp
pop ebp
pop esp
pop ebp
push esi
mov ebx, dword [ebp - 0x30]
call fcn.00415ac1
test al, al
je 0x4092ab
pop edi
pop esi
push edx
push esp
pop eax
push esp
pop edx
push ebp
push edx
push edx
push edx
push edi
pop ebp
push esp
pop eax
pop esi
pop esp
mov esi, 0x59c3dc
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401cf3
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4093d2
call fcn.004159f2
test al, al
je 0x40930a
push edi
pop esp
push esp
pop edi
push esi
pop edx
push ecx
pop edx
push esi
pop edx
push esi
push eax
push esp
pop ebx
pop ebp
push ebx
pop ebx
push edx
push esp
pop ebp
push ebp
push edi
push ebp
pop esi
push ebx
pop ebx
call fcn.004158de
test al, al
je 0x409324
pop ebp
push esi
pop eax
pop esp
push ecx
pop ebp
push ebx
pop ebp
pop ecx
pop edi
push edi
pop ecx
push ecx
pop eax
pop ebx
push esp
pop edx
call fcn.004155e7
test al, al
je 0x40933f
pop ecx
push esp
pop ebp
push esi
pop esp
pop eax
pop edi
push ebp
push esp
pop edi
push ecx
pop ecx
push edx
push ecx
pop ecx
push eax
push esp
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.InprocServer32
push dword [ebp - 0x2c]
call esi
push str.Programmable
push dword [ebp - 0x2c]
call esi
push str.TypeLib
push dword [ebp - 0x2c]
call esi
push 0x59c6c4
push dword [ebp - 0x2c]
call esi
call fcn.004155a2
test al, al
je 0x409397
pop eax
push edx
push edi
push esp
push ebp
pop ebp
pop eax
push eax
pop esi
push esi
pop eax
pop esp
push esi
push esi
push eax
push esp
push eax
push eax
pop ecx
push edx
pop esi
push edx
pop esp
pop eax
push esi
push ebp
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.004158de
test al, al
je 0x4093b8
pop esp
push ebx
pop esp
pop esp
pop esp
pop edi
pop eax
pop eax
push esi
push esi
pop eax
push esi
push ebx
push eax
push ebp
push ebp
push ebp
push edi
pop edi
pop ebp
pop esp
push ebx
push ebp
pop ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401bfd
call fcn.00410fae
ret 4