Function at 0x20004431
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 0x200028f0
push 0x80000002
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x48], 0x200028e0
mov dword [ebp - 0x44], 0x200028d0
mov dword [ebp - 0x40], 0x200028c0
mov dword [ebp - 0x3c], 0x200028b0
mov dword [ebp - 0x38], 0x200028a0
mov dword [ebp - 0x34], 0x20002890
mov dword [ebp - 0x30], 0x20002880
mov dword [ebp - 0x2c], 0x20002870
mov dword [ebp - 0x28], 0x20002860
mov dword [ebp - 0x24], 0x20002854
mov dword [ebp - 0x20], 0x2000257c
mov dword [ebp - 0x1c], 0x20002848
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 0x104
test eax, eax
jne 0x20004823
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 0x20002838
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000457c
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004539
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x20002838
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 0x20002824
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004602
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200045bf
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x20002824
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 0x20004688
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004645
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200027f8
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000470e
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200046cb
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200027f8
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 0x200027f0
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004794
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004751
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200027f0
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 0x200027ec
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2000481a
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200047d7
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200027ec
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 0x200027b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x200048c6
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x200048bd
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004888
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x2000277c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004969
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004960
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x2000492b
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x2000274c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004a0c
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004a03
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x200049ce
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x2000271c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004aaf
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004aa6
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004a71
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200026f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004b52
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004b49
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004b14
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x200026c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004bf5
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004bec
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004bb7
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x20002694
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20004c98
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 0x200027ac
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20004c8f
lea eax, [ebp - 0x14c]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x20004c5a
mov byte [eax], bl
lea eax, [ebp - 0x14b]
push eax
lea eax, [ebp - 0x250]
push 0x20002830
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 0x20002688
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 0x20002830
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 0x20004ca5
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4