Function at 0x4044f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
xor esi, esi
mov dword [ebp - 0x14], SysReAllocStringLen
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
and byte [ebp - 0x128], 0
lea eax, [ebp - 0x12c]
push str.HKEY
push eax
call ebx
test eax, eax
jne 0x404872
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
call edi
mov cl, byte [ebp - 0x12c]
test cl, cl
je 0x40458a
mov eax, dword [ebp - 0x18]
cmp cl, 0x5c
jne 0x404575
test esi, esi
mov dword [ebp - 0x1c], eax
jne 0x40457d
mov esi, eax
cmp cl, 0x3b
jne 0x40457d
mov dword [ebp - 0x20], eax
mov cl, byte [ebp + eax - 0x12b]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x404560
mov edx, dword [ebp - 0x20]
lea eax, [ebp + esi - 0x12b]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
and byte [ebp + edx - 0x12c], 0
and byte [ebp + esi - 0x12c], 0
and byte [ebp + eax - 0x12c], 0
lea ecx, [ebp + eax - 0x12b]
lea eax, [ebp - 0x33c]
push ecx
push eax
mov dword [ebp - 0x24], ecx
call edi
cmp dword [ebp - 0x1c], esi
jne 0x4045d2
and byte [ebp - 0x33c], 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x234]
push 0x45a4d4
push eax
call esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x234]
push eax
call esi
lea eax, [ebp - 0x12c]
push str.HKEY_CLASSES_ROOT
push eax
call ebx
test eax, eax
jne 0x404617
mov dword [ebp - 0x14], SysReAllocStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_CURRENT_CONFIG
push eax
call ebx
test eax, eax
jne 0x404630
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_CURRENT_USER
push eax
call ebx
test eax, eax
jne 0x404649
mov dword [ebp - 0x14], SysReAllocStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_LOCAL_MACHINE
push eax
call ebx
test eax, eax
jne 0x404662
mov dword [ebp - 0x14], SysReAllocStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_USERS
push eax
call ebx
test eax, eax
jne 0x40467b
mov dword [ebp - 0x14], SysReAllocStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_PERFORMANCE_DATA
push eax
call ebx
test eax, eax
jne 0x404694
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocStringLen
lea eax, [ebp - 0x12c]
push str.HKEY_DYN_DATA
push eax
call ebx
test eax, eax
jne 0x4046ad
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysStringLen
push str.Not_Found
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404872
push ebx
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push eax
lea eax, [ebp - 0x33c]
push ebx
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4047b9
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jbe 0x404719
cmp ecx, 2
jbe 0x40478f
push 4
pop eax
cmp ecx, eax
je 0x404774
cmp ecx, 5
je 0x404741
cmp ecx, 7
je 0x40478f
push 1
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x404872
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
call edi
push 1
pop eax
jmp 0x404874
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x10]
call esi
movzx ecx, word [ebp - 8]
mov esi, eax
mov eax, dword [ebp - 8]
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
push eax
jmp 0x404836
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x33c]
jmp 0x40482b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x10]
call esi
mov esi, eax
jmp 0x40471c
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x234]
push ebx
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x404719
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jbe 0x404719
cmp ecx, 2
jbe 0x404850
push 4
pop eax
cmp ecx, eax
je 0x404815
cmp ecx, 5
je 0x4047fa
cmp ecx, 7
je 0x404850
jmp 0x404719
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x234]
jmp 0x404757
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 8]
mov esi, eax
lea eax, [ebp - 0x12c]
push 0x45a8f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40471c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x234]
jmp 0x4047ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret