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

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x64e480
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0xa
call fcn.00509250
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CPasswordsMap.0
mov byte [ebp - 4], 1
mov byte [esi + 0x20], bl
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
push str.SoftwareDownloadManagerPasswords
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x50b39b
mov byte [ebp - 4], bl
jmp 0x50b53b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x50b393
cmp dword [ebp - 0x30], ebx
je 0x50b393
lea ecx, [ebp - 0x2c]
call fcn.00407260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 4
xor edi, edi
xor esi, esi
mov dword [ebp - 0x34], edi
cmp esi, ebx
jne 0x50b507
push 0x104
lea edx, [ebp]
push edx
push edi
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, ebx
jne 0x50b501
push str.SoftwareDownloadManagerPasswords_
lea ecx, [ebp - 0x18]
call fcn.00546c40
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403070
lea edx, [ebp]
push edx
push 0x66dea8
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f70
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x20]
push edx
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
mov eax, dword [ebp - 0x18]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x50b501
mov dword [ebp - 0x38], 0x104
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp]
push edx
push ebx
push ebx
push 0x681654
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50b501
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00546c40
lea edx, [ebp]
push edx
push str.EncPassword
push 0x68ff84
push 0x104
mov eax, dword [ebp - 0x20]
push eax
call fcn.005af970
add esp, 0x14
test eax, eax
jne 0x50b4c4
push 0x66e97c
jmp 0x50b4c8
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00546c40
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00509220
test al, al
je 0x50b4e7
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x20], 1
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0050b170
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x50b3e7
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00420ff0
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x108
mov esp, ebp
pop ebp
ret