Function at 0x1015d690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b482b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1022c684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x20]
call fcn.10020e50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10020e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10005d40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.10005d40
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.1000c5a0
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.1015d470
test eax, eax
je 0x1015d907
push 0x2001f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.100210a0
test eax, eax
jne 0x1015d817
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x31], 1
cmp dword [ebp - 0x24], 0
jne 0x1015d80f
mov byte [ebp - 0x55], 1
mov dword [ebp - 0x54], 0x820
mov edx, dword [ebp - 0x54]
push edx
push 0x828
lea ecx, [ebp - 0x30]
call fcn.10005e40
push eax
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.10020ea0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.10005e80
cmp dword [ebp - 0x24], 0
je 0x1015d7b5
cmp dword [ebp - 0x24], 0x103
je 0x1015d7b5
jmp 0x1015d80f
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
cmp dword [ebp + 0x10], 0
je 0x1015d7da
push 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x30]
call fcn.10004220
test eax, eax
jne 0x1015d7da
mov byte [ebp - 0x55], 0
cmp dword [ebp + 0x14], 0
je 0x1015d7f6
push 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.10004220
test eax, eax
je 0x1015d7f6
mov byte [ebp - 0x55], 0
movzx ecx, byte [ebp - 0x55]
test ecx, ecx
je 0x1015d80a
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x4c]
call fcn.1000c6c0
jmp 0x1015d75d
lea ecx, [ebp - 0x20]
call fcn.10020fd0
mov dword [ebp - 0x5c], 0
jmp 0x1015d829
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x4c]
call fcn.1000c670
cmp dword [ebp - 0x5c], eax
jae 0x1015d8f1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10005e20
push 0x101e28a0
lea ecx, [ebp - 0x10]
call fcn.10025620
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.1000c690
mov ecx, eax
call fcn.100043a0
push eax
lea ecx, [ebp - 0x10]
call fcn.10025620
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [ebp - 0x10]
call fcn.10004390
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.1015d470
test eax, eax
je 0x1015d8e8
lea ecx, [ebp - 0x10]
call fcn.10004390
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1015d8c6
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x10]
call fcn.10004390
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.1015d470
mov byte [ebp - 0x31], 0
jmp 0x1015d8e6
cmp dword [ebp - 0x18], 0
je 0x1015d8e6
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x18], 0
jmp 0x1015d8ec
mov byte [ebp - 0x31], 0
jmp 0x1015d820
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.1015d470
movzx eax, byte [ebp - 0x31]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.1000c610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10020e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10020e80
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10