Function at 0x477040
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c94ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0xc44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0xc5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc6c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], eax
cmp dword [eax + 0x14], ebp
je 0x477363
mov bl, byte [esp + 0xc70]
mov edx, str.SOFTWAREAdobeAcrobat_Reader10.0TrustManagercTrustedSites
test bl, bl
jne 0x4770aa
mov edx, str.SOFTWAREAdobeAcrobat_Reader10.0TrustManagercTrustedFolders
xor eax, eax
mov word [esp + 0x60], ax
mov eax, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4770c2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x64]
call fcn.00401cd6
mov ecx, dword [0x50bcf8]
cmp byte [ecx + 0x31], 0
mov dword [esp + 0xc64], ebp
je 0x47711c
mov edx, str.SOFTWAREAdobeAdobe_Acrobat10.0TrustManagercTrustedSites
test bl, bl
jne 0x4770fd
mov edx, str.SOFTWAREAdobeAdobe_Acrobat10.0TrustManagercTrustedFolders
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x477102
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x64]
call fcn.00401cd6
mov eax, dword [esp + 0x60]
mov ebx, 8
cmp dword [esp + 0x74], ebx
jae 0x47712f
lea eax, [esp + 0x60]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebp
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477350
mov dword [esp + 0x18], ebp
push 0x206
lea ecx, [esp + 0x7e]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x84], ax
call fcn.0048e760
add esp, 0xc
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push ebp
push ebp
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x8c]
push ecx
push edx
push eax
mov dword [esp + 0x4c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
jne 0x477345
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push ebp
lea edx, [esp + 0x84]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477337
xor esi, esi
lea esp, [esp]
push 0x206
lea edx, [esp + 0x286]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x28c], cx
call fcn.0048e760
push 0x7ce
lea ecx, [esp + 0x49a]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x40], 0x208
mov word [esp + 0x4a0], ax
call fcn.0048e760
add esp, 0x18
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x294]
push eax
push esi
mov edi, 1
push ecx
mov dword [esp + 0x50], 0x7d0
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
jne 0x477323
cmp dword [esp + 0x24], edi
jne 0x4772d7
xor edx, edx
lea eax, [esp + 0x488]
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x477280
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401cd6
or dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xc64], 1
cmp dword [esp + 0x50], ebx
jae 0x4772bb
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x14]
push eax
push edx
push ebp
call fcn.0040129e
test eax, eax
jne 0x4772d7
mov bl, 1
jmp 0x4772d9
xor bl, bl
test byte [esp + 0x14], 1
mov dword [esp + 0xc64], ebp
je 0x477300
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x50], 8
jb 0x477300
mov eax, dword [esp + 0x3c]
push eax
call fcn.0048e006
add esp, 4
test bl, bl
je 0x477317
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x280]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add esi, edi
mov ebx, 8
jmp 0x4771d0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], edi
jmp 0x477152
mov edi, 1
add dword [esp + 0x18], edi
jmp 0x477152
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x74], ebx
jb 0x477363
mov edx, dword [esp + 0x60]
push edx
call fcn.0048e006
add esp, 4
mov ecx, dword [esp + 0xc5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc44]
xor ecx, esp
call fcn.0048e25d
add esp, 0xc54
ret