Function at 0x416b20
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x414]
push eax
push 0x104
push 0x44e240
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push str.tools_
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00420278
push str.fpsmonvk32.json
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00420278
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push 0
push str.SOFTWAREKhronosVulkanImplicitLayers_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x416bf9
mov edx, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Vulkan_registry:
mov dword [0x44cba0], 2
call dword [edx + 0x1c]
push str.access_error:
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041713e
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x418], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x418]
xor bl, bl
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x416d6d
test esi, esi
jne 0x416d1c
lea eax, [ebp - 0x20c]
push str.fpsmonvk32.json
push eax
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x416cde
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041acee
add esp, 8
test eax, eax
jne 0x416c78
mov bl, 1
jmp 0x416cde
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x416cdf
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Vulkan_registry:
mov dword [0x44cba0], 2
call dword [eax + 0x1c]
push str.cannot_delete_value:
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
inc edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
jne 0x416c36
jmp 0x416d65
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Vulkan_registry:
mov dword [0x44cba0], 2
call dword [eax + 0x1c]
push str.error_enumerating_values:
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
test bl, bl
jne 0x416dfd
push 4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 4
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, 0x44c958
push str.Vulkan_registry:
test esi, esi
je 0x416dd0
mov edx, dword [vtable.CDebugPrint.0]
mov dword [0x44cba0], 2
call dword [edx + 0x1c]
push str.cannot_set_value:
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x416de4
mov eax, dword [vtable.CDebugPrint.0]
call dword [eax + 0x1c]
push str.value_is_set_successfully
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0041713e
mov esp, ebp
pop ebp
ret