Function at 0x4e9580
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x10c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
call fcn.005dfd60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push 0x6485ec
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x1c], 0
call ebx
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x4e979c
mov esi, dword [esp + 0x10]
push 0x6485e0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x6485df], 0x5c
je 0x4e9689
cmp dword [0x68fed4], 0xffffffff
jne 0x4e9647
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
cmp dword [0x68fed4], 0
jne 0x4e965e
push 0x6485e0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4e966e
push 0
push 0x6485e0
push esi
call fcn.004e1ff0
add esp, 0xc
mov esi, eax
cmp esi, 2
jne 0x4e9686
push 0x6485e0
call fcn.004e5120
cmp eax, 1
jne 0x4e9686
xor esi, esi
push esi
call ebp
mov esi, dword [esp + 0x10]
push 0x6485d8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x6485d7], 0x5c
je 0x4e970d
cmp dword [0x68fed4], 0xffffffff
jne 0x4e96cb
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
cmp dword [0x68fed4], 0
jne 0x4e96e2
push 0x6485d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4e96f2
push 0
push 0x6485d8
push esi
call fcn.004e1ff0
add esp, 0xc
mov esi, eax
cmp esi, 2
jne 0x4e970a
push 0x6485d8
call fcn.004e5120
cmp eax, 1
jne 0x4e970a
xor esi, esi
push esi
call ebp
mov esi, dword [esp + 0x10]
push 0x6485cc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x6485cb], 0x5c
je 0x4e9791
cmp dword [0x68fed4], 0xffffffff
jne 0x4e974f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
cmp dword [0x68fed4], 0
jne 0x4e9766
push 0x6485cc
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4e9776
push 0
push 0x6485cc
push esi
call fcn.004e1ff0
add esp, 0xc
mov esi, eax
cmp esi, 2
jne 0x4e978e
push 0x6485cc
call fcn.004e5120
cmp eax, 1
jne 0x4e978e
xor esi, esi
push esi
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x6485a8
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x20]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x4e9857
mov esi, dword [esp + 0x10]
test edi, edi
je 0x4e984c
cmp byte [edi], 0
je 0x4e984c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi - 1], 0x5c
je 0x4e984c
cmp dword [0x68fed4], 0xffffffff
jne 0x4e9816
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
cmp dword [0x68fed4], 0
jne 0x4e9829
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4e9835
push 0
push edi
push esi
call fcn.004e1ff0
add esp, 0xc
mov esi, eax
cmp esi, 2
jne 0x4e9849
push edi
call fcn.004e5120
cmp eax, 1
jne 0x4e9849
xor esi, esi
push esi
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x10c
ret