Function at 0x405745
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4c7ee4
call fcn.0045d534
sub esp, 0x988
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 0x24], ecx
call fcn.00405e31
mov al, byte [ebp + 0xb]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call fcn.00404df7
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x405792
push dword [ebp + 8]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00404e8a
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.00404df7
push dword [0x4d3cf8]
lea ecx, [ebp - 0x38]
push ebx
push esi
call fcn.00404cc0
push dword [0x4d3cf8]
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00405e7b
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4057d3
mov eax, 0x4d3cf4
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4057ed
mov byte [ebp + 0xb], bl
jmp 0x40598d
mov al, byte [0x50dea8]
push edi
push 0x40
mov byte [ebp - 0x17c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x17b]
mov dword [ebp - 0x28], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x78]
mov dword [ebp - 0x20], 0x406
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], ebx
je 0x40597f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x405
mov dword [ebp + 8], ebx
jbe 0x40597f
mov eax, 0x405
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x994], bl
push eax
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x994]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x4058b0
cmp eax, 0x7a
jne 0x405970
mov eax, dword [ebp - 0x14]
push 2
pop edx
cmp eax, edx
je 0x4058e4
push 1
pop ecx
cmp eax, ecx
je 0x4058e4
cmp eax, 4
jne 0x4058ce
mov dword [ebp - 0x180], ecx
jmp 0x4058f4
cmp eax, 3
jne 0x4058f4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x184], eax
jmp 0x4058f4
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x58c], bl
mov dword [ebp - 0x180], ebx
lea eax, [ebp - 0x994]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x405917
lea eax, [ebp - 0x994]
push str._NO_NAME_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x58], al
call fcn.00404df7
lea eax, [ebp - 0x994]
push eax
call fcn.0045d7a0
pop ecx
push eax
lea eax, [ebp - 0x994]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404e8a
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.00405c3a
mov ecx, 0x104
lea esi, [ebp - 0x58c]
mov edi, eax
push 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00404df7
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jb 0x405868
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp + 0xb], 1
pop edi
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
call fcn.00404df7
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4