Function at 0x10006630
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
test byte [0x1001f038], 8
jne 0x10006790
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x1000676c
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x10006760
mov edx, dword [sym.imp.ucrtbase.dll_calloc]
mov dword [esp + 4], 0x10
mov dword [esp], 1
mov dword [ebp - 0x14], edx
call edx
mov edx, dword [ebp - 0x14]
test eax, eax
mov esi, eax
je 0x10006860
mov dword [eax], sym._d3dcompiler_blob_QueryInterface_12
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov dword [esp + 4], edi
mov dword [esp], 1
call edx
mov dword [esi + 0xc], eax
test eax, eax
je 0x10006874
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x10006808
cmp dword [ebp - 0x10], edi
jne 0x10006808
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
xor edx, edx
sub esp, 4
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test byte [0x1001f038], 8
jne 0x100067d0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovg edx, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], str.filename__s__contents__p._n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0x10022778
mov dword [esp + 4], 0x1001f038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10006649
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Returning_ID3DBlob__p._n
mov dword [esp + 8], 0x10022778
mov dword [esp + 4], 0x1001f038
mov dword [esp], 3
mov dword [ebp - 0x14], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x10006754
test byte [0x1001f038], 4
jne 0x1000683a
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 4
mov dword [esp], eax
call ebx
mov dword [esp], esi
call ebx
mov edx, 0x80004005
jmp 0x10006754
mov dword [esp + 0xc], 0x100226d4
mov dword [esp + 8], 0x10022778
mov dword [esp + 4], 0x1001f038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10006811
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x8007000e
push eax
jmp 0x10006754
call sym._d3dcompiler_blob_init.part.0
mov edx, eax
test eax, eax
jns 0x100068e0
test byte [0x1001f038], 4
jne 0x100068b0
mov dword [ebp - 0x14], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_initialise_blob__hr__lx._n
mov dword [esp + 8], 0x10022778
mov dword [esp + 4], 0x1001f038
mov dword [esp], 2
mov dword [ebp - 0x14], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x10006888
mov eax, dword [esi + 0xc]
jmp 0x100066fe