Function at 0x4063b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x427cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
push str.CScrubber::CleanupDevicePath
lea ecx, [esp + 0x44]
call fcn.00401130
xor ebp, ebp
cmp dword [esi], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
je 0x406811
mov ebx, dword [esp + 0x58]
cmp ebx, ebp
je 0x406811
cmp dword [ebx + 0xc], ebp
je 0x406811
call fcn.004096a0
cmp eax, 1
je 0x4067fc
call fcn.004096a0
cmp eax, 2
je 0x4067fc
call fcn.004096a0
cmp eax, 3
je 0x4067fc
lea eax, [esp + 0x14]
push eax
push 3
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406477
lea ecx, [esp + 0x40]
push str.Error_opening_HKLMSoftwareMicrosoftWindowsCurrentVersion
push ecx
call fcn.00401460
add esp, 8
jmp 0x4067b4
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
push ebp
push ebp
push ebp
push str.DevicePath
push eax
call edi
test eax, eax
je 0x4064ac
lea ecx, [esp + 0x40]
push str.Error_querying_DevicePath
push ecx
call fcn.00401460
add esp, 8
jmp 0x4067b4
mov eax, dword [esp + 0x18]
cmp eax, ebp
ja 0x4064cb
lea edx, [esp + 0x40]
push str.DevicePath_value_is_empty
push edx
call fcn.00401460
add esp, 8
jmp 0x4067b4
push eax
call fcn.00409b95
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x24], ebp
call fcn.00409b95
add esp, 8
test ebp, ebp
mov esi, eax
mov dword [esp + 0x20], esi
je 0x4067ac
test esi, esi
je 0x4067ac
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x44]
push edx
push 0
push str.DevicePath
push eax
call edi
mov edi, eax
test edi, edi
je 0x40653a
lea ecx, [esp + 0x40]
push str.Error_querying_DevicePath
push ecx
call fcn.00401460
add esp, 8
push edi
lea ecx, [esp + 0x44]
call fcn.004013d0
jmp 0x4067b4
mov edx, dword [esp + 0x18]
push edx
push ebp
push esi
call fcn.004148f0
push ebp
lea eax, [esp + 0x50]
push str.Device_Path:__s
push eax
call fcn.00401460
push esi
call fcn.00412a4c
add esp, 0x1c
cmp dword [ebx + 0xc], 0
mov esi, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], 0
jle 0x406754
jmp 0x406584
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
mov eax, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406596
sub eax, edx
add eax, 1
push eax
call fcn.00409b95
mov edi, eax
mov edx, edi
add esp, 4
mov dword [esp + 0x38], edi
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4065c0
push edi
call fcn.00412a4c
push ebx
lea edx, [esp + 0x48]
push str.String_to_remove_from_DevicePath:__s
push edx
call fcn.00401460
push edi
push esi
call fcn.00412936
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40672f
mov ebp, esi
sub ebp, dword [esp + 0x20]
push edi
add ebp, dword [esp + 0x20]
push esi
call fcn.00413ac5
add esp, 8
test eax, eax
jne 0x406639
mov byte [esi], al
sub esi, 1
push 0x429eb0
mov byte [ebp], al
push esi
sub ebp, 1
call fcn.00413ac5
add esp, 8
test eax, eax
jne 0x406717
mov byte [esi], al
mov byte [ebp], al
jmp 0x406717
mov edi, ebx
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x406640
mov ax, word [0x429eb0]
push ebx
push esi
mov word [edi], ax
call fcn.00412936
add esp, 8
cmp eax, esi
jne 0x4066ff
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x406670
mov eax, ebx
sub ecx, edx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406680
sub eax, edi
mov edi, eax
mov eax, ebx
lea edx, [eax + 1]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x406692
sub ecx, edi
sub eax, edx
add ecx, 1
push ecx
add eax, esi
push eax
push esi
call fcn.00414f70
mov eax, ebp
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4066b4
mov ebx, dword [esp + 0x30]
sub eax, ecx
mov ecx, ebx
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4066c8
sub ecx, edi
mov edi, ecx
mov ecx, ebx
lea edx, [ecx + 1]
mov dword [esp + 0x34], edx
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4066e0
sub ecx, dword [esp + 0x34]
sub eax, edi
add eax, 1
push eax
add ecx, ebp
push ecx
push ebp
call fcn.00414f70
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406704
mov edi, dword [esp + 0x38]
sub eax, edx
mov byte [eax + ebx - 1], cl
push edi
push esi
call fcn.00412936
mov esi, eax
add esp, 8
test esi, esi
jne 0x4065f6
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x40673c
push edi
call fcn.00409b90
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
add eax, 1
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x24], eax
jl 0x406580
push ebp
lea edx, [esp + 0x44]
push str.New_value_of_device_path:__s
push edx
call fcn.00401460
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406770
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
mov eax, dword [esp + 0x40]
push ebp
push eax
push 0
push str.DevicePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4067b4
lea edx, [esp + 0x40]
push str.Error_setting_DevicePath_value_in_registry
push edx
call fcn.00401460
add esp, 8
jmp 0x4067b4
mov dword [esp + 0x28], 0xe
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4067c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4067d4
push eax
call fcn.00409b90
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4067e5
push eax
call fcn.00409b90
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 0xffffffff
call fcn.004012e0
mov eax, dword [esp + 0x28]
jmp 0x406827
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 0xffffffff
call fcn.004012e0
xor eax, eax
jmp 0x406827
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 0xffffffff
call fcn.004012e0
mov eax, 0x57
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4