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

Disassembly:
push 0xffffffffffffffff
push 0x4ca1bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x50b384]
xor eax, esp
mov dword [esp + 0xc44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
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 0x477b73
mov bl, byte [esp + 0xc70]
mov edx, str.SOFTWAREAdobeAcrobat_Reader10.0TrustManagercTrustedSites
test bl, bl
jne 0x4778ba
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 0x4778d2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x64]
call fcn.00401ce4
mov ecx, dword [0x50dd18]
cmp byte [ecx + 0x31], 0
mov dword [esp + 0xc64], ebp
je 0x47792c
mov edx, str.SOFTWAREAdobeAdobe_Acrobat10.0TrustManagercTrustedSites
test bl, bl
jne 0x47790d
mov edx, str.SOFTWAREAdobeAdobe_Acrobat10.0TrustManagercTrustedFolders
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x477912
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x64]
call fcn.00401ce4
mov eax, dword [esp + 0x60]
mov ebx, 8
cmp dword [esp + 0x74], ebx
jae 0x47793f
lea eax, [esp + 0x60]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebp
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477b60
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.0048f0d0
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 0x477b55
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 0x477b47
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.0048f0d0
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.0048f0d0
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 0x477b33
cmp dword [esp + 0x24], edi
jne 0x477ae7
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 0x477a90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401ce4
or dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xc64], 1
cmp dword [esp + 0x50], ebx
jae 0x477acb
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.004012ac
test eax, eax
jne 0x477ae7
mov bl, 1
jmp 0x477ae9
xor bl, bl
test byte [esp + 0x14], 1
mov dword [esp + 0xc64], ebp
je 0x477b10
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x50], 8
jb 0x477b10
mov eax, dword [esp + 0x3c]
push eax
call fcn.0048e976
add esp, 4
test bl, bl
je 0x477b27
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 0x4779e0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], edi
jmp 0x477962
mov edi, 1
add dword [esp + 0x18], edi
jmp 0x477962
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x74], ebx
jb 0x477b73
mov edx, dword [esp + 0x60]
push edx
call fcn.0048e976
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.0048ebcd
add esp, 0xc54
ret