Function at 0x49c8d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x64e9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x3c]
call fcn.004c1c00
xor ebx, ebx
mov dword [esp + 0x258], ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagerQueue
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x49c965
push 1
push str.Cannot_open__create__registry_queue_subkey._n
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ebx
call fcn.004c1d70
jmp 0x49caf4
mov eax, dword [esp + 0x14]
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x49c9a3
push 1
push str.Cannot_find_queue_length_in_registry._n
lea ecx, [esp + 0x44]
call fcn.004c1d70
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49caf4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49caf4
inc eax
push eax
call fcn.005f4e47
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x49c9df
push 1
push str.Operation_new_char_...__returned_0_during_CDownloadQueue_constructor._n
lea ecx, [esp + 0x44]
call fcn.004c1d70
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49caf4
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ebx
push str.Queue
push ecx
call ebp
test eax, eax
je 0x49ca26
push 1
push str.Cannot_read_queue_info_from_registry_during_CDownloadQueue_constructor._n
lea ecx, [esp + 0x44]
call fcn.004c1d70
push edi
call fcn.005f4e52
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49caf4
mov eax, edi
mov esi, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49ca30
sub eax, edx
je 0x49ca9e
jmp 0x49ca40
lea eax, [esp + 0x24]
push eax
push 0x6795fc
push esi
call fcn.0062257e
add esp, 0xc
cmp eax, 1
je 0x49ca6a
push 1
push str.Cannot_convert_next_queue_item_number_into_long._n
lea ecx, [esp + 0x44]
call fcn.004c1d70
jmp 0x49ca88
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
call fcn.0049c120
push 0x20
push esi
call fcn.00622170
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x49ca9e
add esi, 1
jne 0x49ca40
push edi
call fcn.005f4e52
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push str.FilesAtTheSameTime
mov esi, 4
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x49cad5
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x78], esi
jmp 0x49cae0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x78], ecx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
call fcn.0049c2e0
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004c1d60
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00620b8d
add esp, 0x248
ret