Function at 0x429661
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
jne 0x4296ac
push 0x57
pop ecx
mov dword [ebx + 8], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4296a5
test byte [eax + 0x1c], 1
je 0x4296a5
cmp byte [eax + 0x19], 2
jb 0x4296a5
push ecx
push edi
push 0x4c551c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041dfa9
add esp, 0x18
xor eax, eax
jmp 0x42992b
push esi
call fcn.00429a34
test byte [ebp + 0x18], 1
je 0x4298ce
push 1
call fcn.00428161
pop ecx
test al, al
je 0x4298ce
push dword [ebp + 0x18]
xor esi, esi
push esi
push 4
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042994b
push esi
test eax, eax
jne 0x42973c
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x429922
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x429922
test byte [ecx + 0x1c], 1
je 0x429922
cmp byte [ecx + 0x19], 2
jb 0x429922
push eax
push edi
push 0x4c551c
push 0xd
jmp 0x429914
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], esi
push esi
push esi
push esi
push esi
push 0x4c5530
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00429a34
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x429809
cmp ecx, 0x3fd
je 0x4297b0
mov dword [ebx + 8], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x429881
test byte [eax + 0x1c], 1
je 0x429881
cmp byte [eax + 0x19], 3
jb 0x429881
push ecx
push edi
push 0x4c551c
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x429879
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x429922
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x429922
test byte [ecx + 0x1c], 1
je 0x429922
cmp byte [ecx + 0x19], 2
jb 0x429922
push eax
push edi
push 0x4c551c
push 0xe
jmp 0x429914
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x42983f
test byte [eax + 0x1c], 1
je 0x42983f
cmp byte [eax + 0x19], 3
jb 0x42983f
push 0x4c551c
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebx + 8], eax
test eax, eax
je 0x429888
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x429881
test byte [ecx + 0x1c], 1
je 0x429881
cmp byte [ecx + 0x19], 2
jb 0x429881
push eax
push edi
push 0x4c551c
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041dfa9
add esp, 0x18
xor eax, eax
jmp 0x42992a
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x429922
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x429922
test byte [ecx + 0x1c], 1
je 0x429922
cmp byte [ecx + 0x19], 2
jb 0x429922
push eax
push edi
push 0x4c551c
push 0x12
jmp 0x429914
xor esi, esi
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x429922
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x429922
test byte [ecx + 0x1c], 1
je 0x429922
cmp byte [ecx + 0x19], 2
jb 0x429922
push eax
push edi
push 0x4c551c
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041dfa9
add esp, 0x18
xor eax, eax
cmp dword [ebx + 4], esi
setne al
pop esi
pop edi
pop ebx
leave
ret 0x14