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

Disassembly:
mov eax, 0x1654
call sub.ntdll.dll__chkstk
mov eax, dword [0x4f8028]
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 0x4485db
test byte [0x503544], 1
jne 0x4485b2
or dword [0x503544], 1
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x1f
add esi, 8
call fcn.00448470
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_RegOpenKeyEx.
push 0x503520
call ecx
add esp, 0x10
xor eax, eax
jmp 0x448889
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 0x448879
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 0x4487e9
mov eax, dword [esp + 0x166c]
cmp dword [esp + 0x258], eax
jne 0x4487ee
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 0x4487ee
cmp edx, dword [esp + 0x1674]
jne 0x4487ee
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 0x448704
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 0x44875a
movzx eax, word [esp + esi*2 + 0x658]
lea edx, [eax - 0x61]
cmp dx, 0x19
ja 0x448748
add eax, 0xffe0
cmp ax, word [esp + 0x1668]
jne 0x44875a
mov dword [esp + 0x18], 1
mov eax, dword [str.__Volume]
mov edx, dword [0x4eb028]
mov ecx, dword [0x4eb024]
mov dword [esp + 0x24], eax
mov eax, dword [0x4eb02c]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4eb034]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4eb030]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
lea edx, [eax + 2]
jmp 0x4487a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4487a0
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 0x4487e9
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 0x448650
cmp dword [esp + 0x18], ebx
je 0x448879
cmp dword [esp + 0x1c], ebx
je 0x448879
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 0x4eb038
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 0x448889
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.0046d6fd
add esp, 0x1654
ret 0x10