Function at 0x2000442f
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x14c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 8], 2
push eax
push 0xf003f
push ebx
push 0x20002900
push 0x80000002
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x48], 0x200028f0
mov dword [ebp - 0x44], 0x200028e0
mov dword [ebp - 0x40], 0x200028d0
mov dword [ebp - 0x3c], 0x200028c0
mov dword [ebp - 0x38], 0x200028b0
mov dword [ebp - 0x34], 0x200028a0
mov dword [ebp - 0x30], 0x20002890
mov dword [ebp - 0x2c], 0x20002880
mov dword [ebp - 0x28], 0x20002870
mov dword [ebp - 0x24], 0x20002864
mov dword [ebp - 0x20], 0x2000258c
mov dword [ebp - 0x1c], 0x20002858
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 0x104
test eax, eax
jne 0x20004821
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20002848
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000457a
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004537
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x20002848
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20002834
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004600
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200045bd
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x20002834
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20002818
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004686
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004643
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x20002818
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20002808
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000470c
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200046c9
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x20002808
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20002800
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004792
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x2000474f
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x20002800
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027fc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004818
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200047d5
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x200027fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x200027c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x200048c4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x200048bb
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004886
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x2000278c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004967
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000495e
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004929
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x2000275c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004a0a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004a01
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200049cc
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x2000272c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004aad
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004aa4
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004a6f
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x20002700
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004b50
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004b47
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004b12
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x200026d4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004bf3
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004bea
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004bb5
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x200026a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004c96
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x200027bc
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004c8d
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004c58
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x14c]
push 0x20002698
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x250]
push 0x20002840
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x250]
push esi
push eax
push 0x22001b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add dword [ebp - 0x14], 4
dec dword [ebp - 0x18]
jne 0x20004ca3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4