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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x141c
call fcn.00404f00
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc1c]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, 0x406244
lea eax, [ebp - 0xc1c]
push esi
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
lea eax, [ebp - 0xc1c]
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x81c]
push esi
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
lea eax, [ebp - 0x81c]
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
lea eax, [ebp - 0x141c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x38
lea eax, [ebp - 4]
push eax
mov esi, 0x20019
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc1c]
push eax
mov edi, 0x80000001
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014ee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4013a9
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
lea eax, [ebp - 0x81c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4014d8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4013b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4014f0
push 0x7f
pop ecx
xor eax, eax
mov word [ebp - 0x21c], bx
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 8], ebx
mov esi, 0x200
push ebx
jmp 0x40144f
inc dword [ebp - 8]
cmp byte [ebp + 0x14], bl
jne 0x401413
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x401431
push dword [ebp - 0x10]
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x21c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x4013f2
push 0x7f
pop ecx
xor eax, eax
push ebx
mov word [ebp - 0x41c], bx
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x4014cc
push dword [ebp + 0x14]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xc1c]
push eax
call fcn.00401294
add esp, 0x10
test al, al
je 0x4014da
inc dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x401493
mov bl, 1
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
mov al, bl
jmp 0x4014f0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret