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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057251
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], 0
mov eax, dword [0x1006d0d4]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x1006d0d8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [0x1006d0dc]
mov dword [ebp - 0x48], edx
mov ax, word [0x1006d0e0]
mov word [ebp - 0x44], ax
mov cl, byte [0x1006d0e2]
mov byte [ebp - 0x42], cl
push 0x31
push 0
lea edx, [ebp - 0x41]
push edx
call fcn.10033d10
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x90]
push eax
call fcn.10033d10
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [ebp - 0xa8]
call fcn.10005ad0
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1a0]
call fcn.10022990
mov byte [ebp - 4], 1
push str._INF__RemoveSystemPartCharDrive__Start
call fcn.100098e0
add esp, 4
lea ecx, [ebp - 0xc8]
push ecx
push 0xf003f
push 0
push 0x1006d10c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x1001d29a
mov dword [ebp - 0xd0], 2
jmp 0x1001d15f
mov edx, dword [ebp - 0xd0]
add edx, 1
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0x1a
jge 0x1001d29a
mov dword [ebp - 0xd8], 0x40
mov eax, dword [ebp - 0xd0]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x50], al
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0xe4]
push edx
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x1001d26e
push 0x10
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xcc]
imul edx, dword [ecx + 0x10], 0xbb
mov eax, dword [eax + 0x6e01]
lea ecx, [eax + edx + 0x5b]
push ecx
mov edx, 1
shl edx, 3
lea eax, [ebp + edx - 0x90]
push eax
call fcn.10041f90
add esp, 0xc
test eax, eax
jne 0x1001d26c
mov ecx, 1
imul edx, ecx, 0xc
mov al, byte [ebp + edx - 0x50]
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1001d248
mov eax, 1
imul ecx, eax, 0xc
movsx edx, byte [ebp + ecx - 0x50]
push edx
push str._INF__RemoveSystemPartCharDrive__Delete_Drive___c
call fcn.100098e0
add esp, 8
jmp 0x1001d26a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, 1
imul ecx, eax, 0xc
movsx edx, byte [ebp + ecx - 0x50]
push edx
push str._ERR__RemoveSystemPartCharDrive__Fail_Delete_Drive___c__GetLastError___d
call fcn.100098e0
add esp, 0xc
jmp 0x1001d29a
jmp 0x1001d290
mov eax, 1
imul ecx, eax, 0xc
movsx edx, byte [ebp + ecx - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__RemoveSystemPartCharDrive__GetLastError_d__RegQueryValueEx___c
call fcn.100098e0
add esp, 0xc
call fcn.1000a2a0
jmp 0x1001d150
cmp dword [ebp - 0xc8], 0
je 0x1001d2b0
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx ecx, byte [ebp - 0xc1]
test ecx, ecx
je 0x1001d39f
movsx edx, byte [ebp - 0xc1]
push edx
push str.select_vol_c_r_n_remove_noerr_r_n
lea eax, [ebp - 0xc0]
push eax
call fcn.1002e950
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10005950
lea ecx, [ebp - 0xc0]
call fcn.10005900
push 0x40
push 2
mov edx, dword [ebp - 0xcc]
add edx, 0x270
push edx
lea ecx, [ebp - 0x1a0]
call fcn.10022800
lea ecx, [ebp - 0xa8]
call fcn.10005e70
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.100057f0
push eax
lea ecx, [ebp - 0x1a0]
call fcn.10023680
lea ecx, [ebp - 0x1a0]
call fcn.10022770
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0xe8], esp
mov ecx, dword [ebp - 0xcc]
add ecx, 0x288
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
push 0x1006d1a4
call fcn.100055b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
call fcn.10016bc0
push str._SUC__RemoveSystemPartCharDrive__End
call fcn.100098e0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.100115c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10005900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret