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

Disassembly:
push 0xffffffffffffffff
push 0x5fd61b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
call fcn.0049fc40
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
xor edi, edi
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x6d0ab8
push edi
push str.SoftwareDownloadManagerQueue
push reloc.WS2_32.dll_accept
mov dword [esp + 0x270], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47b5e6
push 1
push str.Cannot_open__create__registry_queue_subkey._n
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], edi
call fcn.0049fd60
jmp 0x47b7ec
push edi
lea edx, [esp + 0x14]
push edi
mov eax, dword [esp + 0x14]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x47b624
push 1
push str.Cannot_find_queue_length_in_registry._n
lea ecx, [esp + 0x3c]
call fcn.0049fd60
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47b7ec
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x47b7ec
inc eax
push eax
call fcn.005dfcbc
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x18], ebx
jne 0x47b664
push 1
push str.Operation_new_char_...__returned_0_during_CDownloadQueue_constructor._n
lea ecx, [esp + 0x3c]
call fcn.0049fd60
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47b7ec
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push edi
push str.Queue
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x47b6a9
push 1
push str.Cannot_read_queue_info_from_registry_during_CDownloadQueue_constructor._n
lea ecx, [esp + 0x3c]
call fcn.0049fd60
push ebx
call fcn.005dfce5
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47b7ec
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
mov ebp, ebx
dec ecx
mov dword [esp + 0x18], ebp
je 0x47b799
lea eax, [esp + 0x20]
push eax
push 0x6a4a10
push ebp
call fcn.005c8e4c
add esp, 0xc
cmp eax, 1
je 0x47b6ef
push 1
push str.Cannot_convert_next_queue_item_number_into_long._n
lea ecx, [esp + 0x40]
call fcn.0049fd60
jmp 0x47b77d
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x20]
mov ebp, dword [esi + 8]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x34], bl
jne 0x47b730
mov ecx, dword [esi + 0x18]
push 0x14
lea edx, [esi + 0x14]
push ecx
push edx
call fcn.005de7e4
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*4]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0x10]
jl 0x47b730
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x14
dec ecx
jne 0x47b722
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ebp, dword [esi + 0xc]
inc ebp
lea ecx, [eax + 8]
mov dword [esi + 0xc], ebp
mov ebp, ecx
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47b76f
mov dword [ecx], eax
jmp 0x47b772
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esi + 8], eax
push 0x20
push ebp
call fcn.005c72c0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x47b799
inc ebp
mov dword [esp + 0x18], ebp
jne 0x47b6c2
push ebx
call fcn.005dfce5
mov edx, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
mov edi, 4
push str.FilesAtTheSameTime
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop ebp
je 0x47b7d3
mov dword [esi + 0x5c], edi
jmp 0x47b7da
mov eax, dword [esp + 0x20]
mov dword [esi + 0x5c], eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0047bd10
lea ecx, [esp + 0x34]
mov dword [esp + 0x24c], 0xffffffff
call fcn.0049fd50
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret