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

Disassembly:
push 0xffffffffffffffff
push 0x4c9756
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [esp + 0x288]
xor ebx, ebx
mov dword [esp + 0x40], eax
cmp eax, ebx
je 0x479096
push eax
call fcn.00478600
test al, al
jne 0x479096
push str.SoftwareAdobeAcrobat_Reader10.0Privileged
lea ecx, [esp + 0x54]
call fcn.00401f35
mov eax, dword [0x50bcf8]
mov dword [esp + 0x280], ebx
cmp byte [eax + 0x31], bl
je 0x478dcd
push 0x2c
push str.SoftwareAdobeAdobe_Acrobat10.0Privileged
lea ecx, [esp + 0x58]
call fcn.00401cd6
push 1
push 0x4cfe30
lea ecx, [esp + 0x58]
call fcn.004027ed
push 0xb
push str.Attachments
lea ecx, [esp + 0x58]
call fcn.004027ed
push 1
push 0x4cfe30
lea ecx, [esp + 0x58]
call fcn.004027ed
push 0x1a
push str.cUserLaunchAttachmentPerms
lea ecx, [esp + 0x58]
call fcn.004027ed
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
mov esi, 4
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], esi
mov byte [esp + 0x17], bl
jae 0x478e31
lea eax, [esp + 0x54]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call edi
test eax, eax
je 0x478e5e
lea ecx, [esp + 0x50]
call fcn.0040198e
xor eax, eax
jmp 0x47909b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
push str.iUnlistedAttachmentTypePerm
push edx
call ebp
cmp dword [esp + 0x44], esi
je 0x478e8e
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push 8
push ebx
push str.cAttachmentTypeToPermList
push ecx
call edi
test eax, eax
jne 0x479085
push 0x206
lea eax, [esp + 0x72]
xor edx, edx
push ebx
push eax
xor esi, esi
mov word [esp + 0x78], dx
call fcn.0048e760
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x68], 4
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47905a
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push 1
push ebx
lea eax, [esp + 0x78]
push eax
inc esi
push ecx
mov dword [esp + 0x50], esi
call edi
test eax, eax
jne 0x47902d
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push str.sExtension
push eax
call ebp
test eax, eax
jne 0x479022
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048d83c
mov esi, eax
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x1c]
push edx
push ebx
push esi
mov byte [esp + 0x290], 1
call fcn.0048e760
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d83c
mov edi, eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.0048e760
mov eax, dword [esp + 0x40]
add esp, 0x20
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push ebx
push str.sExtension
push eax
call ebp
test eax, eax
jne 0x479002
mov eax, dword [esp + 0x18]
push eax
push esi
push eax
push edi
push ebx
call fcn.00495b90
add esp, 0x14
test eax, eax
jne 0x479002
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push ecx
push edx
push edi
call fcn.00491e4f
add esp, 0xc
test eax, eax
jne 0x479002
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push 0x4f15d0
push eax
call ebp
test eax, eax
jne 0x479002
cmp dword [esp + 0x38], 4
jne 0x479002
mov byte [esp + 0x17], 1
push edi
call fcn.0048e006
push esi
mov byte [esp + 0x288], bl
call fcn.0048e006
mov esi, dword [esp + 0x44]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 8
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x80]
push eax
push esi
push ecx
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x478f03
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
cmp byte [esp + 0x17], bl
je 0x479085
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x50]
call fcn.0040198e
mov eax, esi
jmp 0x47909b
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x50]
call fcn.0040198e
mov eax, esi
jmp 0x47909b
mov eax, 3
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0048e25d
add esp, 0x270
ret 4