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

Disassembly:
push 0xffffffffffffffff
push 0x4ca426
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x50b384]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
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 0x4798a6
push eax
call fcn.00478e10
test al, al
jne 0x4798a6
push str.SoftwareAdobeAcrobat_Reader10.0Privileged
lea ecx, [esp + 0x54]
call fcn.00401f43
mov eax, dword [0x50dd18]
mov dword [esp + 0x280], ebx
cmp byte [eax + 0x31], bl
je 0x4795dd
push 0x2c
push str.SoftwareAdobeAdobe_Acrobat10.0Privileged
lea ecx, [esp + 0x58]
call fcn.00401ce4
push 1
push 0x4d0ef8
lea ecx, [esp + 0x58]
call fcn.00402933
push 0xb
push str.Attachments
lea ecx, [esp + 0x58]
call fcn.00402933
push 1
push 0x4d0ef8
lea ecx, [esp + 0x58]
call fcn.00402933
push 0x1a
push str.cUserLaunchAttachmentPerms
lea ecx, [esp + 0x58]
call fcn.00402933
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 0x479641
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 SysReAllocStringLen
call edi
test eax, eax
je 0x47966e
lea ecx, [esp + 0x50]
call fcn.0040199c
xor eax, eax
jmp 0x4798ab
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 0x47969e
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 0x479895
push 0x206
lea eax, [esp + 0x72]
xor edx, edx
push ebx
push eax
xor esi, esi
mov word [esp + 0x78], dx
call fcn.0048f0d0
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 0x47986a
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 0x47983d
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 0x479832
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048e1ac
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.0048f0d0
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e1ac
mov edi, eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.0048f0d0
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 0x479812
mov eax, dword [esp + 0x18]
push eax
push esi
push eax
push edi
push ebx
call fcn.00496509
add esp, 0x14
test eax, eax
jne 0x479812
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push ecx
push edx
push edi
call fcn.00492999
add esp, 0xc
test eax, eax
jne 0x479812
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 0x4f2818
push eax
call ebp
test eax, eax
jne 0x479812
cmp dword [esp + 0x38], 4
jne 0x479812
mov byte [esp + 0x17], 1
push edi
call fcn.0048e976
push esi
mov byte [esp + 0x288], bl
call fcn.0048e976
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 0x479713
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 0x479895
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x50]
call fcn.0040199c
mov eax, esi
jmp 0x4798ab
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x50]
call fcn.0040199c
mov eax, esi
jmp 0x4798ab
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.0048ebcd
add esp, 0x270
ret 4