Function at 0x4c6400
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x46c]
sub esp, 0x46c
push 0xffffffffffffffff
push 0x65239c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x468], 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 - 0x24], esi
call fcn.004c5050
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CIDMFoldersTree.0
mov byte [ebp - 4], 1
mov dword [esi + 0x18], 1
mov byte [esi + 0x14], bl
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call esi
test eax, eax
je 0x4c64e3
lea ecx, [ebp]
call fcn.004c1c00
mov byte [ebp - 4], 2
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree_constructor._r_n
lea ecx, [ebp]
call fcn.004c1d70
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004c1d60
mov byte [ebp - 4], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x468]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x46c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push str.Visiblity
mov ecx, dword [ebp - 0x20]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x4c6512
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x3c]
push edx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4c6534
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp + 0x228]
call fcn.0043e350
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3c], ebx
jne 0x4c6ad7
mov dword [ebp - 0x18], 4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
push ebx
push ebx
push 0x68bddc
mov eax, dword [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4c6576
cmp dword [ebp - 0x30], 1
je 0x4c6ac3
mov dword [ebp + 0x21c], ebx
mov dword [ebp + 0x224], ebx
xor ecx, ecx
mov word [ebp + 0x220], cx
mov byte [ebp - 4], 4
lea edx, [ebp + 0x21c]
push edx
call fcn.0044b600
add esp, 4
test al, al
je 0x4c6ab4
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagermaxID
push 0x80000001
call esi
mov dword [ebp - 0x18], 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push str.maxID
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
test eax, eax
jne 0x4c661a
cmp dword [ebp - 0x30], 5
jbe 0x4c661a
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x14], 1
mov dword [ebp - 0x28], 0xa
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push ebx
push str.QAUWA
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x2c]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov edx, dword [ebp + 0x21c]
cmp edx, ebx
mov eax, edx
jne 0x4c6638
lea eax, [ebp + 0x220]
lea esi, [eax + 2]
jmp 0x4c6640
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6640
sub eax, esi
sar eax, 1
cmp edx, ebx
jne 0x4c6659
lea edx, [ebp + 0x220]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4c6671
push 0x679980
lea ecx, [ebp + 0x21c]
call fcn.00405310
mov dword [ebp + 0x254], ebx
mov dword [ebp + 0x25c], ebx
xor eax, eax
mov word [ebp + 0x258], ax
mov byte [ebp - 4], 5
mov dword [ebp + 0x228], 7
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75efe0]
push edx
lea ecx, [ebp + 0x22c]
call fcn.00401970
push 0x68bcec
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24c], bl
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
push str.zip_rar_r0_r1_arj_gz_sit_sitx_sea_ace_bz2_7z
lea ecx, [ebp + 0x244]
call fcn.0054f750
cmp byte [ebp - 0x11], bl
mov ecx, 0x679c78
jne 0x4c66f3
mov ecx, 0x68bcec
mov eax, dword [ebp + 0x21c]
cmp eax, ebx
jne 0x4c6703
lea eax, [ebp + 0x220]
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [ebp + 0x254]
call fcn.00402310
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6726
lea eax, [ebp + 0x258]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6742
lea eax, [ebp + 0x258]
push eax
call fcn.006253cc
add esp, 4
lea eax, [ebp + 0x228]
push eax
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.004445f0
mov dword [ebp + 0x228], 5
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75ed14]
push edx
lea ecx, [ebp + 0x22c]
call fcn.00401970
push 0x68bcd8
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24c], bl
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
push str.doc_pdf_ppt_pps_docx_pptx
lea ecx, [ebp + 0x244]
call fcn.0054f750
cmp byte [ebp - 0x11], bl
mov ecx, 0x679c78
jne 0x4c67c5
mov ecx, 0x68bcd8
mov eax, dword [ebp + 0x21c]
cmp eax, ebx
jne 0x4c67d5
lea eax, [ebp + 0x220]
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [ebp + 0x254]
call fcn.00402310
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c67f8
lea eax, [ebp + 0x258]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6814
lea eax, [ebp + 0x258]
push eax
call fcn.006253cc
add esp, 4
lea eax, [ebp + 0x228]
push eax
mov ecx, esi
call fcn.004445f0
mov dword [ebp + 0x228], 2
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75ed08]
push edx
lea ecx, [ebp + 0x22c]
call fcn.00401970
push 0x68bccc
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24c], bl
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
push str.mp3_wav_wma_mpa_ram_ra_aac_aif_m4a_tsa
lea ecx, [ebp + 0x244]
call fcn.0054f750
cmp byte [ebp - 0x11], bl
mov ecx, 0x679c78
jne 0x4c6894
mov ecx, 0x68bccc
mov eax, dword [ebp + 0x21c]
cmp eax, ebx
jne 0x4c68a4
lea eax, [ebp + 0x220]
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [ebp + 0x254]
call fcn.00402310
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c68c7
lea eax, [ebp + 0x258]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c68e3
lea eax, [ebp + 0x258]
push eax
call fcn.006253cc
add esp, 4
lea eax, [ebp + 0x228]
push eax
mov ecx, esi
call fcn.004445f0
mov dword [ebp + 0x228], 1
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75ed04]
push edx
lea ecx, [ebp + 0x22c]
call fcn.00401970
push 0x68bcb8
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24c], bl
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
push str.exe_msi
lea ecx, [ebp + 0x244]
call fcn.0054f750
cmp byte [ebp - 0x11], bl
mov ecx, 0x679c78
jne 0x4c6963
mov ecx, 0x68bcb8
mov eax, dword [ebp + 0x21c]
cmp eax, ebx
jne 0x4c6973
lea eax, [ebp + 0x220]
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [ebp + 0x254]
call fcn.00402310
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6996
lea eax, [ebp + 0x258]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c69b2
lea eax, [ebp + 0x258]
push eax
call fcn.006253cc
add esp, 4
lea eax, [ebp + 0x228]
push eax
mov ecx, esi
call fcn.004445f0
mov dword [ebp + 0x228], 3
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75ed0c]
push edx
lea ecx, [ebp + 0x22c]
call fcn.00401970
push 0x68bcac
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24c], bl
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
push str.avi_mpg_mpe_mpeg_asf_wmv_mov_qt_rm_mp4_flv_m4v_webm_ogv_ogg_mkv_ts_tsv
lea ecx, [ebp + 0x244]
call fcn.0054f750
cmp byte [ebp - 0x11], bl
mov ecx, 0x679c78
jne 0x4c6a32
mov ecx, 0x68bcac
mov eax, dword [ebp + 0x21c]
cmp eax, ebx
jne 0x4c6a42
lea eax, [ebp + 0x220]
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [ebp + 0x254]
call fcn.00402310
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6a65
lea eax, [ebp + 0x258]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov eax, dword [ebp + 0x254]
cmp eax, ebx
jne 0x4c6a81
lea eax, [ebp + 0x258]
push eax
call fcn.006253cc
add esp, 4
lea eax, [ebp + 0x228]
push eax
mov ecx, esi
call fcn.004445f0
mov ecx, dword [ebp - 0x20]
push ecx
call edi
mov ecx, esi
call fcn.004c5310
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x254]
call fcn.00401210
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x21c]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x228]
call fcn.00405630
jmp 0x4c64b1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
xor esi, esi
nop
cmp esi, ebx
jne 0x4c6ed4
push 0x104
lea edx, [ebp + 0x260]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x4c6ecc
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push 0x679c78
push ebx
lea ecx, [ebp + 0x260]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c6ecc
lea eax, [ebp + 0x260]
push eax
lea ecx, [ebp + 0x22c]
call fcn.004017e0
lea ecx, [ebp + 0x260]
push ecx
lea ecx, [ebp + 0x238]
call fcn.004017e0
mov byte [ebp + 0x24d], bl
lea ecx, [ebp + 0x250]
call fcn.00402050
cmp dword [0x75dd30], ebx
je 0x4c6c2e
push 0x68bcec
lea edx, [ebp + 0x260]
push edx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x4c6b9e
mov ecx, dword [0x75efe0]
jmp 0x4c6c1c
push 0x68bcd8
lea edx, [ebp + 0x260]
push edx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x4c6bbe
mov ecx, dword [0x75ed14]
jmp 0x4c6c1c
push 0x68bccc
lea edx, [ebp + 0x260]
push edx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x4c6bde
mov ecx, dword [0x75ed08]
jmp 0x4c6c1c
push 0x68bcb8
lea edx, [ebp + 0x260]
push edx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x4c6bfe
mov ecx, dword [0x75ed04]
jmp 0x4c6c1c
push 0x68bcac
lea edx, [ebp + 0x260]
push edx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x4c6c2e
mov ecx, dword [0x75ed0c]
mov eax, dword [0x75dd28]
push eax
push ecx
lea ecx, [ebp + 0x22c]
call fcn.00401970
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push str.mask
mov eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x4c6c69
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4c6c69
push eax
lea ecx, [ebp + 0x244]
call fcn.00402840
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.mask
mov edx, dword [ebp - 0x1c]
push edx
call edi
push 0x679c78
lea ecx, [ebp + 0x248]
call fcn.00411780
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push str.pathW
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4c6ce7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
inc eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4c6ce4
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push ebx
push str.pathW
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4c6cdb
push esi
lea ecx, [ebp + 0x248]
call fcn.00411780
push esi
call fcn.005f4e52
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6cf0
sub eax, edx
sar eax, 1
jne 0x4c6d61
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push str.path
mov eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x4c6d61
lea ecx, [ebp - 0x38]
call fcn.004024f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.00402840
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push ebx
push str.path
mov eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x4c6d55
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp + 0x248]
call fcn.004c5110
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00402560
mov dword [ebp - 0x18], 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0x228]
push eax
push ebx
push ebx
push 0x68bd3c
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4c6ecc
mov eax, dword [ebp + 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6d91
sub eax, edx
sar eax, 1
jne 0x4c6dfc
mov dword [ebp + 0x210], ebx
mov dword [ebp + 0x218], ebx
xor edx, edx
mov word [ebp + 0x214], dx
mov byte [ebp - 4], 7
lea eax, [ebp + 0x210]
push eax
mov ecx, dword [ebp + 0x228]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.004c5190
mov eax, dword [ebp + 0x210]
cmp eax, ebx
jne 0x4c6de1
lea eax, [ebp + 0x214]
push eax
lea ecx, [ebp + 0x248]
call fcn.00411780
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x210]
call fcn.00401210
mov eax, dword [ebp + 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6e05
sub eax, edx
sar eax, 1
je 0x4c6ecc
mov dword [ebp - 0x18], 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push str.rememberLastPath
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4c6e48
cmp dword [ebp - 0x2c], ebx
setne dl
mov byte [ebp + 0x24c], dl
jmp 0x4c6e4e
mov byte [ebp + 0x24c], bl
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push ebx
push str.forSiteOnly
mov edx, dword [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x4c6e7c
cmp dword [ebp - 0x2c], ebx
setne al
mov byte [ebp + 0x24d], al
jmp 0x4c6e82
mov byte [ebp + 0x24d], bl
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push str.sites
mov edx, dword [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x4c6ebd
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4c6ebd
push eax
lea ecx, [ebp + 0x250]
call fcn.00402840
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.sites
mov edx, dword [ebp - 0x1c]
push edx
call edi
lea eax, [ebp + 0x228]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004445f0
inc dword [ebp - 0x34]
jmp 0x4c6ae0
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4c6ee2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.004c4e60
test al, al
je 0x4c6efe
mov byte [esi + 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x228]
call fcn.00405630
mov dword [ebp - 4], ebx
jmp 0x4c64b4