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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x630], eax
je 0x419c85
push 0
push 0
push 0
push eax
push 1
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x419c41
cmp eax, 2
je 0x419c31
cmp eax, 3
je 0x419c31
push ebx
push eax
push str.DeleteKeyChildren:_could_not_set_owner_for_key:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x419c41
push ebx
push str.DeleteKeyChildren:_could_not_set_owner_for_key_since_not_found:__S
push 4
call fcn.00446b80
add esp, 0xc
push 0
push 0
push 0
push 0
push 4
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x419c85
cmp eax, 2
je 0x419c75
cmp eax, 3
je 0x419c75
push ebx
push eax
push str.DeleteKeyChildren:_could_not_set_permissions_for_key:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x419c85
push ebx
push str.DeleteKeyChildren:_could_not_set_permissions_for_key_since_not_found:__S
push 4
call fcn.00446b80
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x419e3d
push 0x200
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00411960
push 0x20a
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00411960
add esp, 0x18
mov dword [ebp - 0x624], 0x105
lea eax, [ebp - 0x620]
push eax
push 0xf003f
push edi
push esi
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x419d1e
push esi
cmp eax, 2
je 0x419d0a
push eax
push str.DeleteKeyChildren:_could_not_open_subkey_with_all_access:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_subkey_already_deleted:__S
push 4
call fcn.00446b80
add esp, 0xc
jmp 0x419ecf
lea eax, [ebp - 0x63c]
mov esi, 1
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x419db0
cmp edi, 0x80
jge 0x419db0
lea eax, [ebp - 0x210]
push eax
call fcn.004834a4
add esp, 4
mov dword [ebp + edi*4 - 0x61c], eax
test eax, eax
je 0x419e78
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x624], 0x105
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x624]
mov eax, esi
push ecx
lea ecx, [ebp - 0x210]
inc edi
push ecx
push eax
push dword [ebp - 0x620]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x419d50
xor esi, esi
mov dword [ebp - 0x628], esi
test edi, edi
jle 0x419e2b
nop dword [eax]
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00411960
mov esi, dword [ebp + esi*4 - 0x61c]
lea eax, [ebp - 0x41c]
push esi
push ebx
push 0x4a190c
push 0x105
push eax
call fcn.00419510
push dword [ebp - 0x630]
lea eax, [ebp - 0x41c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push eax
push dword [ebp - 0x620]
call fcn.00419bc0
push esi
call fcn.0047ee40
mov esi, dword [ebp - 0x628]
add esp, 0x3c
inc esi
mov dword [ebp - 0x628], esi
cmp esi, edi
jl 0x419dc0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x634]
push esi
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push ebx
test eax, eax
je 0x419ec0
cmp eax, 2
je 0x419eb7
push eax
push str.DeleteKeyChildren:_could_not_delete_key:_0x_08x__S__S
push 1
call fcn.00446b80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_out_of_memory
push 1
call fcn.00446b80
add esp, 8
sub edi, 1
js 0x419ea4
nop dword [eax]
push dword [ebp + edi*4 - 0x61c]
call fcn.0047ee40
add esp, 4
sub edi, 1
jns 0x419e90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_key_already_deleted:__S__S
push 0x20
jmp 0x419ec7
push str.DeleteKeyChildren:_deleted:__S__S
push 0x10
call fcn.00446b80
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret