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

Disassembly:
push 0xffffffffffffffff
push 0x69e401
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x248]
mov edi, dword [esp + 0x23c]
push edi
mov dword [esp + 0x238], ebx
mov dword [esp + 0x20], eax
call fcn.00513370
mov esi, eax
cmp esi, ebx
jge 0x51392d
lea ecx, [esp + 0xc]
call fcn.00513f60
mov eax, esi
jmp 0x513ecb
cmp byte [edi], 0x7d
push ebp
je 0x513eb9
jmp 0x513940
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x513971
cmp ebp, ebx
je 0x513ab1
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp dword [esp + 0x248], ebx
je 0x513ab1
mov dword [esp + 0x1c], ebx
mov cl, byte [edi]
cmp cl, bl
mov byte [esp + 0x238], 1
mov eax, edi
je 0x5139c8
mov esi, dword [sym.imp.user32.dll_CharNextA]
lea esp, [esp]
cmp cl, 0x5c
je 0x5139c0
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x5139b0
jmp 0x5139c8
cmp eax, ebx
jne 0x513ee5
mov esi, 0x6afe14
lea ecx, [ecx]
mov ecx, dword [esi]
push ecx
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x513a06
add esi, 4
cmp esi, str.TypeLib
jl 0x5139d0
mov edx, dword [esp + 0x244]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00514050
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x513a0a
mov eax, dword [esp + 0x1c]
cmp ebp, ebx
je 0x513a9f
mov ebp, dword [esp + 0x18]
push edi
mov ecx, ebp
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513f04
push edi
mov ecx, ebp
call fcn.00513fd0
mov esi, eax
cmp esi, ebx
lea ecx, [esp + 0x1c]
jl 0x513f15
mov byte [esp + 0x238], bl
call fcn.00513f60
cmp byte [edi], 0x7b
jne 0x513a91
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp eax, 1
jne 0x513a91
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x10]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
call fcn.005138d0
mov esi, eax
cmp esi, ebx
jl 0x513eb9
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp byte [edi], 0x7d
jne 0x513940
jmp 0x513eb9
cmp eax, ebx
mov byte [esp + 0x238], bl
je 0x513ab1
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x513ad9
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], ebx
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
push 0x6afedc
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x513be1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x12c]
push eax
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp byte [edi], 0x3d
jne 0x513eee
cmp dword [esp + 0x248], ebx
je 0x513b72
mov ecx, dword [esp + 0x244]
push edi
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x244], 2
call fcn.005141a0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x14], ebx
jl 0x513eb9
mov byte [esp + 0x238], bl
jmp 0x513a4a
cmp dword [esp + 0x24c], ebx
jne 0x513bd2
cmp dword [esp + 0x14], ebx
je 0x513bd2
mov edx, dword [esp + 0x244]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
push ebx
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x513eae
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x12c]
push eax
push ebp
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x513bc7
cmp eax, 2
jne 0x513f1c
cmp ebp, ebx
je 0x513bd2
push ebp
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513fd0
jmp 0x513a87
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x513c08
mov esi, dword [sym.imp.user32.dll_CharNextA]
nop
cmp cl, 0x5c
je 0x513c00
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x513bf0
jmp 0x513c08
cmp eax, ebx
jne 0x513eee
cmp dword [esp + 0x248], ebx
je 0x513d12
mov esi, dword [esp + 0x244]
mov ebp, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push edi
push esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, ebx
jne 0x513c5a
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
je 0x513c4a
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp eax, ebx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
je 0x513cd6
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push edi
push esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, ebx
jne 0x513c8e
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
je 0x513c82
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
je 0x513cd6
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x513eae
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
je 0x513cc6
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jne 0x513eae
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp byte [edi], 0x3d
jne 0x513a4a
mov ecx, dword [esp + 0x18]
push edi
push ebx
lea edx, [esp + 0x18]
push edx
call fcn.005141a0
mov esi, eax
cmp esi, ebx
jl 0x513eb9
jmp 0x513a4a
cmp dword [esp + 0x24c], ebx
jne 0x513e0e
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push edi
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x513d5a
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
je 0x513d52
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
cmp eax, ebx
mov ebp, eax
je 0x513d6b
mov dword [esp + 0x24c], 1
push 0x104
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513fd0
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp byte [edi], 0x7b
jne 0x513de8
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edx
push edi
call fcn.005138d0
mov esi, eax
cmp esi, ebx
jge 0x513dd4
cmp dword [esp + 0x24c], ebx
je 0x513eb9
mov ecx, dword [esp + 0x18]
push edi
call fcn.00513370
mov esi, eax
cmp esi, ebx
jl 0x513eb9
cmp ebp, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24c], eax
je 0x513a91
cmp ebp, ebx
je 0x513e18
cmp eax, ebx
jne 0x513a91
push ebp
jmp 0x513eaf
mov ebp, 2
jmp 0x513d60
cmp eax, ebx
je 0x513e72
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00513f80
test eax, eax
je 0x513e72
mov ebp, 0x6afe14
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x513a91
add ebp, 4
cmp ebp, str.TypeLib
jl 0x513e33
cmp dword [esp + 0x14], ebx
je 0x513a91
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00514050
jmp 0x513a91
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x513e89
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x513eae
cmp dword [esp + 0x14], ebx
je 0x513a91
mov eax, dword [esp + 0x244]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x513a91
push eax
call fcn.00513f40
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x513ec8
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.00513f60
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x513efd
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x513eca
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x513eb9
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x513eb9
call fcn.00513f60
jmp 0x513eb9
push eax
call fcn.00513f40
add esp, 4
cmp ebp, ebx
mov esi, eax
je 0x513eb9
push ebp
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x513eb9