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

Disassembly:
push 0xffffffffffffffff
push 0x101504f7
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x101a42b4]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101a42b4]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x260]
mov edi, dword [esp + 0x25c]
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x254], ebx
mov edx, dword [esp + 0x268]
push edi
mov dword [esp + 0x3c], edx
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jge 0x10005a15
mov dword [esp + 0x254], 0xffffffff
jmp 0x1000607e
cmp byte [edi], 0x7d
je 0x1000605e
mov edi, edi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
push 0x10158960
push edi
mov dword [esp + 0x3c], 1
call esi
mov ebp, eax
neg ebp
push 0x10158974
sbb ebp, ebp
push edi
add ebp, 1
call esi
test eax, eax
je 0x10005a53
cmp ebp, ebx
je 0x10005b5b
mov ecx, dword [esp + 0x18]
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
cmp dword [esp + 0x264], ebx
je 0x10005b5b
mov dword [esp + 0x24], ebx
mov byte [esp + 0x254], 1
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x10005aa4
cmp cl, 0x5c
je 0x10005a9c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
cmp cl, bl
jne 0x10005a88
jmp 0x10005aa4
cmp eax, ebx
jne 0x10005fe3
mov ecx, dword [esp + 0x18]
push edi
call fcn.100021d0
test eax, eax
je 0x10005ac8
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
call fcn.10003180
mov dword [esp + 0x24], ebx
cmp ebp, ebx
je 0x10005b54
mov ebp, dword [esp + 0x18]
push edi
mov ecx, ebp
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000600e
push edi
mov ecx, ebp
call fcn.10002260
mov esi, eax
cmp esi, ebx
jl 0x1000600e
mov byte [esp + 0x254], bl
cmp byte [edi], 0x7b
jne 0x10005b46
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 1
jne 0x10005b46
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.10005990
mov esi, eax
cmp esi, ebx
jl 0x1000605e
mov ecx, dword [esp + 0x18]
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
cmp byte [edi], 0x7d
jne 0x10005a20
jmp 0x1000605e
mov byte [esp + 0x254], bl
push 0x10158968
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x10005b83
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x38], ebx
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
push 0x10158980
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x10005cb6
lea ecx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
mov ecx, dword [esp + 0x18]
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
cmp byte [edi], 0x3d
jne 0x10005ff3
cmp dword [esp + 0x264], ebx
je 0x10005c3a
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x254], 2
mov edx, dword [esp + 0x20]
push edi
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], edx
call fcn.10005580
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x2c], ebx
jge 0x10005af8
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x2c]
call fcn.10003160
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10003160
jmp 0x1000607c
cmp dword [esp + 0x268], ebx
jne 0x10005ca7
cmp dword [esp + 0x34], ebx
je 0x10005ca7
mov dword [esp + 0x28], ebx
mov byte [esp + 0x254], 3
mov edx, dword [esp + 0x20]
push 0x20006
push ebx
push edx
lea ecx, [esp + 0x34]
call fcn.10001c50
cmp eax, ebx
jne 0x1000601b
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x10005c91
cmp eax, 2
jne 0x1000601b
mov byte [esp + 0x254], bl
cmp esi, ebx
je 0x10005ca7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x18]
push edi
call fcn.10002260
jmp 0x10005b3c
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x10005cdc
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x10005cd4
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x10005cc4
jmp 0x10005cdc
cmp eax, ebx
jne 0x10005ff3
cmp dword [esp + 0x264], ebx
je 0x10005df3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10005d2f
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x10005d1d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
je 0x10005db7
jmp 0x10005d33
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push edi
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10005d6f
xor eax, eax
cmp esi, ebx
je 0x10005d63
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
je 0x10005db7
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10006033
xor eax, eax
cmp esi, ebx
je 0x10005da7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
jne 0x10006033
mov ecx, dword [esp + 0x18]
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
cmp byte [edi], 0x3d
jne 0x10005aff
mov ecx, dword [esp + 0x18]
push edi
push ebx
lea edx, [esp + 0x1c]
push edx
call fcn.10005580
mov esi, eax
cmp esi, ebx
jl 0x1000605e
jmp 0x10005aff
cmp dword [esp + 0x268], ebx
jne 0x10005f13
mov ecx, dword [esp + 0x20]
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 0x10005e3c
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x10005e34
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
cmp eax, ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
je 0x10005e51
mov dword [esp + 0x268], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.100f4c66
push eax
call fcn.10001000
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
mov ecx, dword [esp + 0x18]
push edi
call fcn.10002260
mov esi, eax
cmp esi, ebx
jl 0x1000605e
cmp byte [edi], 0x7b
jne 0x10005ee3
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 1
jne 0x10005ee3
mov ebp, dword [esp + 0x268]
mov ecx, dword [esp + 0x14]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.10005990
mov esi, eax
cmp esi, ebx
jge 0x10005ecb
cmp ebp, ebx
je 0x1000605e
mov ecx, dword [esp + 0x18]
push edi
call fcn.100020a0
mov esi, eax
cmp esi, ebx
jl 0x1000605e
mov ebp, dword [esp + 0x1c]
cmp ebp, 2
mov edx, dword [esp + 0x38]
mov dword [esp + 0x268], edx
je 0x10005b46
cmp ebp, ebx
je 0x10005f24
cmp edx, ebx
jne 0x10005b46
push ebp
call fcn.10001b70
add esp, 4
mov esi, eax
jmp 0x1000605e
mov dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x1c]
jmp 0x10005e46
cmp edx, ebx
mov ebp, dword [esp + 0x14]
je 0x10005f6d
mov ecx, dword [esp + 0x18]
push ebp
call fcn.10002210
test eax, eax
je 0x10005f6d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
call fcn.100021d0
test eax, eax
je 0x10005b46
cmp dword [esp + 0x34], ebx
je 0x10005b46
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.10003180
jmp 0x10005b46
mov ecx, dword [esp + 0x18]
push ebp
call fcn.10002210
cmp ebp, ebx
mov dword [esp + 0x1c], eax
je 0x10005f92
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x10006033
cmp dword [esp + 0x34], ebx
je 0x10005b46
cmp dword [esp + 0x1c], ebx
jne 0x10005b46
mov dword [esp + 0x30], ebx
mov byte [esp + 0x254], 4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x30], ebx
jne 0x10006043
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x30]
call fcn.10003160
jmp 0x10005b46
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x24]
call fcn.10003160
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10003160
mov eax, 0x80020009
jmp 0x1000607e
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x24]
jmp 0x10006059
push eax
call fcn.10001b70
add esp, 4
mov esi, eax
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x28]
jmp 0x10006059
push eax
call fcn.10001b70
add esp, 4
mov esi, eax
jmp 0x10005c21
push eax
call fcn.10001b70
add esp, 4
mov esi, eax
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x30]
call fcn.10003160
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000607c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.100f43d6
add esp, 0x244
ret 0x10