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

Disassembly:
push 0xffffffffffffffff
push 0x656a1c
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x40], ebp
call fcn.004fb290
mov dword [esp + 0x158], 0
mov dword [ebp], vtable.CMaxConnNumbers.0
call fcn.0044ad90
mov ecx, dword [0x75dbe4]
lea eax, [esp + 0x3c]
push eax
lea esi, [ebp + 0x14]
push esi
push 0
push 0
push str.MaxConnectionsNumber
push ecx
mov dword [esp + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4fbbbd
mov dword [esi], 8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerMCN
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fbd9c
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4fbc21
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fbd9c
cmp dword [esp + 0x2c], 0
jne 0x4fbc38
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fbd9c
lea ecx, [esp + 0x30]
call fcn.004e7610
mov byte [esp + 0x158], 1
lea ecx, [esp + 0x18]
call fcn.004024f0
mov byte [esp + 0x158], 2
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x4fbd63
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerMCN_s
push ecx
call fcn.00402f60
lea edx, [esp + 0x54]
push edx
call fcn.00403e40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
push 0x2f
push eax
call fcn.00622170
add esp, 0x18
test eax, eax
je 0x4fbd63
lea ecx, [esp + 0x48]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4fbcc6
sub ecx, esi
lea ecx, [esp + ecx + 0x46]
cmp eax, ecx
jae 0x4fbd63
add eax, 2
push eax
lea ecx, [esp + 0x34]
call fcn.0054f750
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fbd63
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push str.number
push ecx
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fbd63
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x40], edx
call fcn.004fbae0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x14]
test edi, edi
je 0x4fbc62
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x158], 1
lea ecx, [esp + 0x18]
call fcn.00402560
mov byte [esp + 0x158], 0
lea ecx, [esp + 0x30]
call fcn.00402560
mov dword [esp + 0x158], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x14c
ret