Function at 0x10004730
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 [0x10013018], 8
jne 0x100048f0
mov eax, dword [0x1001e008]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x10015200
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 [0x1001e008]
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 [0x1001e008]
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 0x100047e9
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100047e0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100047f0
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 0x10004974
lea eax, [ebp - 0x220]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [ebp - 0x224], 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 - 0x224]
sub esp, 0x14
mov dword [esp], edx
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 0x10004920
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x100151fc
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004753
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 [0x10013018], 2
je 0x100048e2
mov dword [esp + 0xc], str.Unable_to_create_JSON_manifest._n
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10013018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x100048e2