Function at 0x1000b6f0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strrchr]
test eax, eax
je 0x1000ba18
sub eax, edi
lea ebx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x244], eax
lea eax, [ebx + eax + 1]
mov dword [esp], eax
mov dword [ebp - 0x248], ecx
call ecx
mov esi, eax
test eax, eax
je 0x1000bb2f
mov dword [esp + 8], ebx
add ebx, esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x244]
mov dword [esp], ebx
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call sym._memcpy
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x1000b890
test byte [0x1001f098], 8
jne 0x1000b8d0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x1000b890
mov dword [esp], eax
mov eax, dword [ebp - 0x248]
call eax
mov dword [ebp - 0x244], eax
mov edx, eax
test eax, eax
je 0x1000b890
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [ebp - 0x248], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x1000b84f
cmp dword [ebp - 0x138], edi
mov edx, dword [ebp - 0x248]
je 0x1000b9a0
mov dword [esp], esi
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
mov eax, dword [ebp - 0x244]
mov dword [esp], eax
call edi
mov dword [esp], ebx
mov ebx, 0x80004005
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x1001f098], 4
jne 0x1000b8a0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [ebp - 0x244], 0
jmp 0x1000b84f
mov dword [esp + 0xc], str.Returning_E_FAIL._n
mov dword [esp + 8], str.d3dcompiler_include_from_file_open
mov dword [esp + 4], 0x1001f098
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, esi
shr eax, 0x10
je 0x1000b9d0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, 0x10024a68
sub esp, 8
test eax, eax
jne 0x1000b9e5
cmp byte [esi], 0
je 0x1000bb18
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp byte [esi + edx + 1], 0
jne 0x1000b908
mov byte [ebp - 0x138], 0x22
mov edi, esi
lea ecx, [ebp - 0x137]
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x24c], ebx
jmp 0x1000b970
cmp al, 9
je 0x1000bab0
cmp al, 0xa
jne 0x1000ba50
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea esi, [ebp - 0x15]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x1000bac8
test edx, edx
jle 0x1000bac8
mov edx, eax
movzx eax, byte [edi]
add edi, 1
cmp al, 0xd
je 0x1000ba98
jle 0x1000b938
cmp al, 0x22
je 0x1000ba80
cmp al, 0x5c
jne 0x1000ba42
mov esi, 0x5c5c
add ecx, 2
mov word [ecx - 2], si
jmp 0x1000b958
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
movzx eax, si
mov dword [esp], 0x10024a5b
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Include_file_found_at__s._n
mov dword [esp + 8], str.d3dcompiler_include_from_file_open
mov dword [esp + 4], 0x1001f098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000b7d3
lea edi, [ebp - 0x23d]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov byte [ebp + eax - 0x23d], 0x5c
sub esp, 8
lea ebx, [eax + 1]
jmp 0x1000b720
lea esi, [eax - 0x20]
mov ebx, esi
cmp bl, 0x5e
jbe 0x1000bb08
mov ebx, 0x785c
add ecx, 4
mov word [ecx - 4], bx
mov ebx, eax
and eax, 0xf
shr bl, 4
movzx eax, byte [eax + str.0123456789abcdef]
movzx esi, bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x1000b958
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000b958
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000b958
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000b958
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x24c]
mov byte [ecx], 0x22
test eax, eax
jle 0x1000bb2a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x1000b9e5
mov byte [ecx], al
add ecx, 1
jmp 0x1000b958
mov eax, 0x2222
lea ecx, [ebp - 0x137]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x1000baeb
mov ebx, 0x8007000e
jmp 0x1000b87f