Function at 0x404174
Capabilities:
Check if file exists
Delete registry value
Get disk information
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
neg esi
sbb esi, esi
lea eax, [ebp - 4]
push eax
and esi, 0xfff2ffda
add esi, 0xf003f
push esi
push edi
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2
push ebx
push 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40431c
cmp dword [ebp - 4], edi
je 0x40431c
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x404313
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x21c]
dec eax
push ecx
mov dword [ebp - 0xc], eax
push eax
jmp 0x4042fb
mov ax, word [ebp - 0x21c]
cmp ax, 0x7b
jne 0x40423f
cmp word [ebp - 0x1d2], 0x7d
jne 0x4042e6
cmp word [ebp - 0x1d0], di
jne 0x4042e6
mov ecx, dword [0x40ba00]
lea eax, [ebp - 0x21c]
push eax
call fcn.004039d6
test eax, eax
jmp 0x404283
cmp ax, 0x41
jb 0x4042e6
cmp ax, 0x5a
ja 0x4042e6
cmp word [ebp - 0x21a], di
jne 0x4042e6
mov ecx, dword [0x4086a8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x4086ac]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x4042e6
mov eax, 0x407f88
cmp dword [ebp + 8], edi
jne 0x404294
mov eax, 0x407f84
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push eax
push str.Regkey__sdelete_HKCU_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], edi
je 0x4042b4
inc dword [ebp - 8]
jmp 0x4042e6
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x80000001
call fcn.00404e14
cmp eax, edi
jne 0x4042d9
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x4042e5
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0xc]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404201
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
push edi
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404454
cmp dword [ebp - 4], edi
je 0x404454
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40444b
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
dec eax
push ecx
mov dword [ebp - 0x10], eax
push eax
jmp 0x404433
cmp word [ebp - 0x21c], 0x7b
jne 0x40441e
cmp word [ebp - 0x1d2], 0x7d
jne 0x40441e
cmp word [ebp - 0x1d0], di
jne 0x40441e
mov ecx, dword [0x40ba00]
lea eax, [ebp - 0x21c]
push eax
call fcn.004039d6
test eax, eax
jne 0x40441e
mov eax, 0x407f88
cmp dword [ebp + 8], edi
jne 0x4043cc
mov eax, 0x407f84
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push eax
push str.Regkey__sdelete_HKCU_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], edi
je 0x4043ec
inc dword [ebp - 8]
jmp 0x40441e
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x80000001
call fcn.00404e14
cmp eax, edi
jne 0x404411
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x40441d
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0x10]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404382
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCLocalMOF
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404597
cmp dword [ebp - 4], edi
je 0x404597
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40458e
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
lea ecx, [ebp - 0x18]
push ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
dec eax
push ecx
mov dword [ebp - 0x10], eax
mov ebx, 0x100
push eax
jmp 0x40457e
push dword [ebp - 0x21c]
call fcn.004037c6
test eax, eax
je 0x404566
cmp word [ebp - 0x21a], 0x3a
jne 0x404566
cmp word [ebp - 0x218], 0x5c
jne 0x404566
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404566
mov eax, 0x407f88
cmp dword [ebp + 8], edi
jne 0x404512
mov eax, 0x407f84
lea ecx, [ebp - 0x21c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCLocalMOF
push eax
push str.RegVal__sdelete_HKCU_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], edi
je 0x404536
inc dword [ebp - 8]
jmp 0x404566
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
jne 0x404559
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x404565
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0x10]
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x4044ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4