Function at 0x100032f0
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, 0x23c
mov dword [ebp - 0x21c], 0
test byte [0x10016048], 8
jne 0x100034b0
mov eax, dword [0x10016088]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1001827c
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 [0x10016088]
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 dword [ebp - 0x224], eax
mov eax, dword [0x10016088]
sub esp, 4
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x214]
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 - 0x214], 0
je 0x100033a9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100033a0
xor eax, eax
mov ecx, 0x5c
jmp 0x100033bf
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100033b8
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 esi, eax
cmp eax, 0xffffffff
je 0x10003534
lea eax, [ebp - 0x220]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x218]
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 0x100034e0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10018278
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10016048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10003313
lea eax, [ebp - 0x21c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x218]
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 - 0x218]
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 [0x10016048], 2
je 0x100034a4
mov dword [esp + 0xc], str.Unable_to_create_JSON_manifest._n
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10016048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x100034a4