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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x268
mov dword [ebp - 0x228], 0
test byte [0x6fa99048], 8
jne 0x6fa83520
mov eax, dword [0x6fa99088]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x6fa9b27c
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 [0x6fa99088]
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 - 0x23c], eax
mov eax, dword [0x6fa99088]
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 0x6fa83411
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6fa83408
xor eax, eax
mov ecx, 0x5c
jmp 0x6fa83427
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6fa83420
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 0x6fa835a8
lea eax, [ebp - 0x22c]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x23c]
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 - 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 0x6fa83550
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x6fa9b278
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x6fa99048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6fa8337e
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 - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov esi, 0x8000ffff
test byte [0x6fa99048], 2
je 0x6fa8350c
mov dword [esp + 0xc], str.Unable_to_create_JSON_manifest._n
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x6fa99048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6fa8350c