Function at 0x6fa84820
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
mov dword [ebp - 0x228], 0
test byte [0x6fa94018], 8
jne 0x6fa849e0
mov eax, dword [0x6faa5008]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x6fa96244
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [0x6faa5008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
mov eax, dword [0x6faa5008]
sub esp, 4
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x220], 0
je 0x6fa848d9
lea esi, [esi]
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x6fa848d0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6fa848e0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x6fa84a64
lea eax, [ebp - 0x22c]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [ebp - 0x23c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x23c]
sub esp, 0x14
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x224]
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareKhronosVulkanDrivers
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
mov esi, eax
test eax, eax
je 0x6fa84a10
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x6fa96240
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x6fa94018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6fa84843
lea eax, [ebp - 0x228]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x224]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x8000ffff
test byte [0x6fa94018], 2
je 0x6fa849d2
mov dword [esp + 0xc], str.Unable_to_create_JSON_manifest._n
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x6fa94018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6fa849d2