Function at 0x424fb1
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x244
mov eax, 0x442e3c
call fcn.00441dec
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x240], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x424fed
mov eax, 0x80004005
jmp 0x42521a
mov ecx, dword [esi]
call fcn.00420eb9
mov esi, dword [eax]
jmp 0x425210
mov eax, dword [esi + 8]
mov esi, dword [esi]
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x21c], eax
cmp dword [eax + 0x24], 0
je 0x425210
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 4], edx
mov edi, edx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], edx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
push ecx
push 0x20019
push edx
push dword [eax]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x220], edx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4251e4
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
push ecx
push 0x2001f
push 1
push ecx
mov dword [ebp - 0x250], ebx
lea ecx, [ebp - 0x238]
push dword [eax]
mov eax, dword [ebp - 0x240]
push dword [eax]
call fcn.004084dc
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x4251e4
xor edx, edx
mov eax, edx
mov dword [ebp - 0x21c], edx
mov esi, edx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push ecx
push edx
lea ecx, [ebp - 0x22c]
push ecx
push edx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42510e
cmp eax, 0xea
jne 0x42516d
cmp dword [ebp - 0x224], 0xffffffff
ja 0x425222
push dword [ebp - 0x224]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_malloc
mov esi, eax
mov dword [ebp - 0x228], esi
pop ecx
test esi, esi
je 0x425222
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0x104
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x425195
push dword [ebp - 0x224]
push esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x21c]
jmp 0x4251a7
cmp eax, 0x103
je 0x4251cc
mov eax, dword [ebp - 0x21c]
cmp eax, 0x64
ja 0x4251cc
inc eax
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x21c], eax
call fcn.0044177c
mov eax, dword [ebp - 0x21c]
xor edx, edx
pop ecx
mov dword [ebp - 0x228], edx
jmp 0x4250c1
push esi
mov byte [ebp - 4], 1
call fcn.0044177c
and dword [ebp - 0x228], 0
mov esi, dword [ebp - 0x244]
pop ecx
mov byte [ebp - 4], 0
test edi, edi
je 0x4251fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x238], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x425210
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x250], 0
test esi, esi
jne 0x424ffb
xor eax, eax
call fcn.00441d96
ret 8
push esi
mov byte [ebp - 4], 1
call fcn.0044177c
xor eax, eax
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], al
pop ecx
test edi, edi
je 0x42524a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x238], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x425260
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x250], 0
mov eax, 0x8007000e
jmp 0x42521a