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

Disassembly:
sub esp, 0x72c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x738]
push ebp
mov ebp, dword [esp + 0x738]
push esi
push edi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42f63d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x72c
ret
mov cl, byte [0x73d670]
xor eax, eax
mov byte [esp + 0x250], cl
mov ecx, 0x40
lea edi, [esp + 0x251]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
push 0
lea ecx, [esp + 0x274]
push eax
push ecx
push edx
mov dword [esp + 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x42f740
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, 0x3e8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x354]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x44], ebx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ecx
call ebp
test eax, eax
jne 0x42f88b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x42f6c9
mov ebx, dword [esp + 0x744]
mov ebp, dword [esp + 0x740]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x42f87f
lea edx, [esp + 0x2c]
xor eax, eax
push edx
mov edx, dword [esp + 0x14]
mov ecx, 0x40
lea edi, [esp + 0x50]
push eax
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42f88b
mov ecx, 0x41
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x14c]
test al, al
je 0x42f831
mov al, byte [esp + 0x4c]
test al, al
je 0x42f831
mov edi, 0x6e0470
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x42f854
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
push ebp
call fcn.0042f600
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 8
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x42f754
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x42f898
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x72c
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x72c
ret