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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b826
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0
call fcn.10062420
mov edi, eax
mov dword [ebp - 0x240], edi
test edi, edi
je 0x1004c9bf
push ebx
mov ecx, edi
call fcn.10061e20
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x23c], ecx
push ebx
push esi
push str.Start_:_hKey0x_X__lpSubKey_s
push str.CSetupRegW::RegDeleteKeyAndItsSubkeys
push 8
call fcn.10041ef0
add esp, 0x14
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
call esi
test eax, eax
jne 0x1004cb6b
push 0x105
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1004cb5a
mov ebx, dword [ebp - 0x24c]
test eax, eax
jne 0x1004cb29
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
call esi
test eax, eax
jne 0x1004cb29
mov dword [ebp - 4], eax
xor edi, edi
lea esi, [ebp - 0x224]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x234], edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004ca87
sub esi, ecx
sar esi, 1
je 0x1004cad0
push esi
lea ecx, [ebp - 0x238]
call fcn.1003f120
mov edi, dword [ebp - 0x22c]
push esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x230]
push edi
call fcn.1006fb74
lea eax, [esi + 1]
add esp, 0x10
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], eax
push 0
push edi
mov dword [ebp - 4], 1
push dword [ebp - 0x228]
mov ecx, ebx
call fcn.1004c940
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1004cafb
push edi
call fcn.1006eaef
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
push 0x105
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x1004ca37
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x1004cb6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x1004cb9c
cmp dword [ebp - 0x23c], eax
je 0x1004cb95
test edi, edi
je 0x1004cb95
test ebx, ebx
je 0x1004cb95
mov ecx, ebx
call fcn.100621f0
mov eax, 8
jmp 0x1004cba7
xor eax, eax
cmp esi, 5
setne al
add eax, 2
push esi
push str.End_:_return_0x_X__status_
push str.CSetupRegW::RegDeleteKeyAndItsSubkeys
push eax
call fcn.10041ef0
mov eax, dword [ebp - 0x244]
add esp, 0x10
test eax, eax
je 0x1004cbc7
mov dword [eax], esi
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0xc