Function at 0x404e80
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x324
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x12c]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x104
lea eax, [esp + 0x128]
cmp byte [eax], bl
je 0x404ecd
inc eax
dec ecx
jne 0x404ec3
jmp 0x404f13
cmp ecx, ebx
je 0x404f13
lea edx, [esp + 0xc]
test edx, edx
je 0x404ee2
mov eax, 0x104
sub eax, ecx
jmp 0x404ee6
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x128]
je 0x404f13
mov esi, 0x441b00
sub esi, eax
mov cl, byte [esi + eax]
cmp cl, bl
je 0x404f0c
mov byte [eax], cl
inc eax
dec edx
jne 0x404efd
jmp 0x404f10
cmp edx, ebx
jne 0x404f11
dec eax
mov byte [eax], bl
mov eax, dword [esp + 0x334]
lea ecx, [esp + 0x128]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x404f3c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x324
ret
lea edx, [esp + 0x14]
mov dword [esp + 0xc], ebx
push edx
push 0x441adc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4050de
push ebx
push ebx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4050de
mov ecx, 0x40
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], bl
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov esi, 1
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
jbe 0x4050c4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push 0x104
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4050c4
mov ecx, 0x104
lea eax, [esp + 0x28]
cmp byte [eax], bl
je 0x405000
inc eax
dec ecx
jne 0x404ff6
jmp 0x405042
cmp ecx, ebx
je 0x405042
lea edx, [esp + 0x10]
test edx, edx
je 0x405013
mov edi, 0x104
sub edi, ecx
mov edx, 0x104
lea eax, [esp + edi + 0x28]
sub edx, edi
je 0x405042
mov esi, 0x441ac8
sub esi, eax
mov cl, byte [esi + eax]
cmp cl, bl
je 0x405036
mov byte [eax], cl
inc eax
dec edx
jne 0x405027
jmp 0x40503a
cmp edx, ebx
jne 0x40503b
dec eax
mov byte [eax], bl
mov esi, 1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4050b7
lea eax, [esp + 0x24]
lea ecx, [esp + 0x230]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push 0x44e4f8
push eax
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050ac
mov edx, dword [esp + 0x338]
lea eax, [esp + 0x230]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4050ac
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jb 0x404fcf
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x324
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x324
ret