Function at 0x441569
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b6c
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xbbb]
push edi
xor ebx, ebx
mov edi, 0x3e7
push edi
push ebx
push eax
mov dword [ebp - 0x1b6c], ebx
mov byte [ebp - 0xbbc], bl
call fcn.00626f50
push edi
lea eax, [ebp - 0xfa3]
mov byte [ebp - 0xfa4], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x7d3]
mov byte [ebp - 0x7d4], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x1b5b]
mov byte [ebp - 0x1b5c], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x3eb]
mov byte [ebp - 0x3ec], bl
push ebx
push eax
call fcn.00626f50
push edi
lea eax, [ebp - 0x138b]
mov byte [ebp - 0x138c], bl
push ebx
push eax
call fcn.00626f50
add esp, 0x48
mov byte [ebp - 0x1774], bl
lea eax, [ebp - 0x1773]
push edi
push ebx
push eax
call fcn.00626f50
add esp, 0xc
lea eax, [ebp - 0x1b64]
push eax
push 0x20019
push ebx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44165b
push eax
push esi
push str.RecoversqlMaestroPasswordsFromRegistry
push str._s_:_Failed_to_open_profile_key___s___Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x441860
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1b60]
push eax
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x1b60], 0x3e8
push eax
lea eax, [ebp - 0x1b68]
push eax
push ebx
push str.Password
push dword [ebp - 0x1b64]
call edi
mov esi, eax
test esi, esi
jne 0x44184d
lea eax, [ebp - 0x7d4]
push eax
call fcn.00631510
pop ecx
cmp eax, 1
jb 0x44184d
mov esi, 0x3e8
lea eax, [ebp - 0x1b5c]
push esi
push eax
lea eax, [ebp - 0x7d4]
push eax
call fcn.0040853a
add esp, 0xc
test eax, eax
je 0x441860
lea eax, [ebp - 0x1b60]
mov dword [ebp - 0x1b60], esi
push eax
lea eax, [ebp - 0xbbc]
push eax
lea eax, [ebp - 0x1b68]
push eax
push ebx
push str.DatabaseName
push dword [ebp - 0x1b64]
call edi
lea eax, [ebp - 0x1b60]
mov dword [ebp - 0x1b60], esi
push eax
lea eax, [ebp - 0xfa4]
push eax
lea eax, [ebp - 0x1b68]
push eax
push ebx
push str.Login
push dword [ebp - 0x1b64]
call edi
lea eax, [ebp - 0x1b60]
mov dword [ebp - 0x1b60], esi
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x1b68]
push eax
push ebx
push str.HostName
push dword [ebp - 0x1b64]
call edi
lea eax, [ebp - 0x1b60]
mov dword [ebp - 0x1b60], esi
push eax
lea eax, [ebp - 0x1b6c]
push eax
lea eax, [ebp - 0x1b68]
push eax
push ebx
push str.Port
push dword [ebp - 0x1b64]
call edi
push dword [ebp - 0x1b64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xbbc]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x4417b8
lea eax, [ebp - 0xbbc]
push eax
lea eax, [ebp - 0xfa4]
push eax
push str._s__DB:__s_
lea eax, [ebp - 0x138c]
push esi
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x4417cf
lea eax, [ebp - 0xfa4]
push eax
lea eax, [ebp - 0x138c]
push esi
push eax
call fcn.006311ec
add esp, 0xc
lea eax, [ebp - 0x3ec]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x44181d
lea eax, [ebp - 0x3ec]
cmp dword [ebp - 0x1b6c], ebx
jbe 0x44180c
push dword [ebp - 0x1b6c]
push eax
push str._s:_d
lea eax, [ebp - 0x1774]
push esi
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x44181d
push eax
lea eax, [ebp - 0x1774]
push esi
push eax
call fcn.006311ec
add esp, 0xc
push 0xffffffffffffffff
mov edx, 0x66ae5d
lea eax, [ebp - 0x1b5c]
push edx
push eax
lea ecx, [ebp - 0x138c]
push ecx
lea ecx, [ebp - 0x1774]
push ecx
push edx
push dword [ebp + 8]
push 6
call fcn.00412c85
xor eax, eax
add esp, 0x20
inc eax
jmp 0x441862
push esi
push str.RecoversqlMaestroPasswordsFromRegistry
push str._s_:_Failed_to_read_password__Error0x_.8x
call fcn.00449974
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret