Function at 0x4458c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x1654
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x164c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SystemMountedDevices
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44595b
test byte [0x4f1904], 1
jne 0x445932
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x1f
add esi, 8
call fcn.004457f0
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_RegOpenKeyEx.
push 0x4f18dc
call ecx
add esp, 0x10
xor eax, eax
jmp 0x445c09
push 0xffe
lea edx, [esp + 0x65e]
push ebx
push edx
mov word [esp + 0x664], bx
call sub.ntdll.dll_memset
push 0xfe
lea eax, [esp + 0x16a]
push ebx
mov esi, 0x1000
push eax
mov dword [esp + 0x2c], esi
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x170], bx
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x66c]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x445bf9
lea esp, [esp]
push 0x3ff
lea ecx, [esp + 0x25d]
push ebx
push ecx
add ebp, 1
mov byte [esp + 0x264], bl
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x25c]
push eax
push ebx
push ebx
lea ecx, [esp + 0x668]
push ecx
push edx
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445b69
mov eax, dword [esp + 0x166c]
cmp dword [esp + 0x258], eax
jne 0x445b6e
mov ecx, dword [esp + 0x260]
mov edx, dword [esp + 0x25c]
push ebx
push 0x200
push ecx
push edx
call sub.ntdll.dll__alldiv
cmp eax, dword [esp + 0x1670]
jne 0x445b6e
cmp edx, dword [esp + 0x1674]
jne 0x445b6e
mov ecx, 6
mov esi, str.DosDevices_
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3c]
movsw word es:[edi], word [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x445a84
mov edi, dword [sym.imp.ntdll.dll__wcsnicmp]
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x660]
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x445ada
movzx eax, word [esp + esi*2 + 0x658]
lea edx, [eax - 0x61]
cmp dx, 0x19
ja 0x445ac8
add eax, 0xffe0
cmp ax, word [esp + 0x1668]
jne 0x445ada
mov dword [esp + 0x18], 1
mov eax, dword [str.__Volume]
mov edx, dword [0x4debec]
mov ecx, dword [0x4debe8]
mov dword [esp + 0x24], eax
mov eax, dword [0x4debf0]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4debf8]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4debf4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
lea edx, [eax + 2]
jmp 0x445b20
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x445b20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x660]
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x445b69
push 0x26
lea edx, [esp + 0x670]
push edx
lea eax, [esp + 0x160]
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ntdll.dll_wcsncpy]
add esp, 0xc
mov esi, 0x1000
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x66c]
push edx
push ebp
push eax
mov dword [esp + 0x678], ebx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4459d0
cmp dword [esp + 0x18], ebx
je 0x445bf9
cmp dword [esp + 0x1c], ebx
je 0x445bf9
push 0xfe
lea ecx, [esp + 0x5e]
push ebx
push ecx
mov word [esp + 0x64], bx
call sub.ntdll.dll_memset
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x68]
push 0x4debfc
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
mov edx, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x445c09
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x165c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x1654
ret 0x10