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

Disassembly:
push 0xffffffffffffffff
push 0x5a67e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x38], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x11
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0xa
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push 0x660ff8
push ebx
push str.SoftwareDownloadManagerPasswords
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x170], ebx
mov dword [esi], method.CCommandLineInfo.virtual_0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
push ebx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea edx, [esp + 0x50]
push ebx
lea eax, [esp + 0x48]
push edx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4be0ed
cmp dword [esp + 0x30], ebx
je 0x4be0ed
mov eax, dword [0x65ca8c]
push ebp
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x154], 3
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push 0x104
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x34], edi
jne 0x4be072
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x14]
call fcn.00586cbc
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00586ea9
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
call fcn.00586cbc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x660ff8
push ebx
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4be072
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
push 0x647c30
push eax
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4be072
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call fcn.00586cbc
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
push str.EncPassword
push 0x647c24
push 0x104
push eax
call fcn.0053de40
add esp, 0x14
test eax, eax
je 0x4be072
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
call fcn.00586cbc
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x34], eax
mov ebx, eax
call fcn.0057f9ac
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebp, edx
je 0x4be00a
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x4be00a
mov eax, dword [edi + 8]
push ebx
push eax
call fcn.0056bf52
add esp, 8
test eax, eax
je 0x4be006
mov edi, dword [edi]
test edi, edi
jne 0x4bdfed
jmp 0x4be00a
test edi, edi
jne 0x4be045
mov eax, dword [esi + 4]
test eax, eax
jne 0x4be01e
mov edx, dword [esi + 8]
push 1
push edx
mov ecx, esi
call fcn.004a89a0
mov ecx, esi
call fcn.004c0030
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [edi + 8]
mov dword [edi + 4], ebp
call fcn.00586cbc
mov ecx, dword [esi + 4]
mov edx, dword [ecx + ebp*4]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [eax + ebp*4], edi
lea ecx, [esp + 0x20]
add edi, 0xc
push ecx
mov ecx, edi
call fcn.00586c6c
lea edx, [esp + 0x24]
lea ecx, [edi + 4]
push edx
call fcn.00586c6c
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
inc ecx
cmp edi, ebx
mov dword [esp + 0x14], ecx
je 0x4bded6
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
call fcn.00586b33
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.00586b33
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 4
call fcn.00586b33
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 0
call fcn.00586b33
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret
mov ecx, dword [esp + 0x144]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret