Function at 0x40988b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.0040ce40
push ebx
push esi
mov esi, 0x401
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0xc], 0x80000001
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x82c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x11
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x24
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40998a
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x82c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x11
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40faa4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.grpid
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x11
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40fa5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], ebx
je 0x409998
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0x80000001
jne 0x4099d1
lea eax, [ebp - 0x428]
push eax
call edi
test eax, eax
jne 0x4099d1
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
jne 0x4099d1
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x4099d1
mov dword [ebp - 0xc], 0x80000002
jmp 0x4098dd
push 0x825
lea eax, [ebp - 0x1054]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1054]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1054]
push 0x40f654
push eax
call esi
push dword [ebp + 8]
call edi
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x82c]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x428]
push eax
call edi
lea eax, [ebx + eax + 0x1e]
lea ebx, [eax + eax]
inc eax
push eax
mov dword [ebp + 0x10], eax
call sub.MSVCRT.dll_malloc
mov edi, eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_malloc
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push 0
push edi
call sub.MSVCRT.dll_memset
lea eax, [ebx + 1]
push eax
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0x20
push str.installdt
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
push str.nums
push edi
call esi
lea eax, [ebp - 0x428]
push eax
push edi
call esi
push 0x40f5b4
push edi
call esi
lea eax, [ebp - 0x82c]
push eax
push edi
call esi
push str.pname
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004076d7
add esp, 0xc
lea eax, [ebp - 0x1054]
push dword [ebp + 0xc]
push eax
call esi
push edi
call sub.MSVCRT.dll_free
push dword [ebp + 0xc]
call sub.MSVCRT.dll_free
xor esi, esi
lea eax, [ebp + 8]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x1054]
mov dword [ebp + 8], esi
push eax
call fcn.00407934
add esp, 0x1c
cmp dword [ebp + 8], esi
pop edi
pop esi
pop ebx
je 0x409b00
push dword [ebp + 8]
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
leave
ret