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

Disassembly:
push ebp
lea ebp, [esp - 0x1224]
mov eax, 0x1224
call fcn.004b2660
push 0xffffffffffffffff
push 0x63c078
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x1220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 0x1234]
mov eax, dword [ebp + 0x1230]
mov ecx, dword [ebp + 0x122c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
mov esi, dword [ebp + 0x1238]
xor edi, edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x20], 0x100
push eax
push eax
push eax
push eax
mov word [ebp + 0x101c], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x101c]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x476ab5
test eax, eax
jne 0x476abe
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
lea eax, [ebp + 0x101c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x476ab5
cmp dword [ebp - 0x30], ebx
je 0x476985
cmp byte [ebp - 0xd], 0
jne 0x476985
test esi, esi
je 0x476985
push str._Removed
lea eax, [ebp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x476982
push dword [ebp + 0x123c]
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
call fcn.00476850
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x38]
inc edi
jmp 0x4768d0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push ecx
lea esi, [ebp + 0x18]
mov dword [ebp - 0x24], 0
mov ecx, esi
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x1000
push ecx
push 0
push str.Value
xor bh, bh
xor bl, bl
push eax
mov byte [ebp + 0x18], bh
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x476a7c
mov eax, dword [ebp - 0x18]
cmp eax, 3
je 0x476a28
cmp eax, 1
je 0x4769e2
cmp eax, 7
jne 0x476a7c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
cmp eax, 0x10a
jb 0x476a7c
lea ecx, [ebp]
push ecx
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ecx + 4]
call fcn.00476f90
test eax, eax
je 0x476a7c
cmp dword [ebp + 0x14], 0x10
lea esi, [ebp]
mov bh, 1
jb 0x476a20
mov esi, dword [ebp]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x476a2b
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10a
jb 0x476a7c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 8
push eax
lea eax, [ebp - 0x18]
mov bl, 1
push eax
push 0
push 0x65bc2c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x476a6e
cmp dword [ebp - 0x18], 0xb
jne 0x476a6e
cmp dword [ebp - 0x20], 8
je 0x476a7c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x476aac
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x28]
movzx eax, bh
push eax
push dword [ebp + 0x1238]
lea eax, [ebp + 0x101c]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.00475c60
mov esi, dword [ebp + 0x1238]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
inc edi
jmp 0x4768d0
mov edx, dword [ebp + 0x14]
cmp edx, 0x10
jb 0x476aee
mov ecx, dword [ebp]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x476ae4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476b13
push edx
push ecx
call fcn.004b22a2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1220]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x1224]
pop ebp
ret 0x14
call fcn.004b959b
int3