Function at 0x6f249510
Capabilities:
Check if file exists
Get file attributes
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x18c
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], ecx
test byte [0x6f2665c8], 8
je 0x6f24958b
mov edx, dword [ebp + 8]
mov eax, str.ansi
mov ebx, str.unicode
mov edi, ecx
test edx, edx
mov edx, 0xffffffff
cmove ebx, eax
mov eax, dword [ebp - 0x16c]
call sym._wine_dbgstr_an
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p___08lX___s___n
mov dword [esp + 8], str.MMIO_Open
mov dword [esp + 4], 0x6f2665c8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
test esi, esi
je 0x6f249857
test dword [ebp - 0x170], 0x4100
je 0x6f249650
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x6f249640
mov eax, dword [ebp - 0x16c]
lea ebx, [ebp - 0x11c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
sub esp, 0x10
cmp eax, 0x103
ja 0x6f249640
test dword [ebp - 0x170], 0x4000
je 0x6f249601
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x6f249640
mov eax, dword [ebp - 0x16c]
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test dword [ebx], 0x10000
jne 0x6f2498e6
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x6f249639
dec dword [eax + 0x10]
mov eax, ebx
call sym._MMIO_Destroy
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x58
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f249642
mov dword [esp], 0x6f266580
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call edi
mov dword [ebp - 0x174], ebx
sub esp, 4
lea esi, [esi]
lea esi, [esi]
movzx eax, word [0x6f2662e8]
lea esi, [esi]
nop
inc ax
je 0x6f2496b0
mov word [0x6f2662e8], ax
movzx ebx, ax
mov dword [esp], 0x6f266580
call edi
mov edx, dword [0x6f2662e4]
sub esp, 4
test edx, edx
jne 0x6f2496df
jmp 0x6f249700
mov edx, dword [edx + 0x48]
test edx, edx
je 0x6f249700
cmp ebx, dword [edx + 0x44]
jne 0x6f2496d8
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f2496a0
mov ebx, dword [ebp - 0x174]
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
movzx eax, word [0x6f2662e8]
sub esp, 4
mov dword [ebx + 0x44], eax
mov eax, dword [0x6f2662e4]
mov dword [0x6f2662e4], ebx
mov dword [ebx + 0x48], eax
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esi + 4]
sub esp, 4
test eax, eax
jne 0x6f249880
mov edx, dword [esi + 8]
test edx, edx
je 0x6f2498bb
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [esp], ecx
mov ecx, 0x10000
call sym._MMIO_InstallIOProc
mov edx, dword [0x6f2702c8]
mov eax, dword [ebx + 4]
test edx, edx
jne 0x6f24978a
jmp 0x6f24993d
mov edx, dword [edx]
test edx, edx
je 0x6f24993d
cmp eax, dword [edx + 4]
jne 0x6f249780
mov dword [ebx + 0x4c], edx
mov eax, dword [esi + 8]
cmp dword [edx + 8], eax
je 0x6f2497ba
mov dword [esp + 8], 0x2af
mov dword [esp + 4], str..._src_wine_dlls_winmm_mmio.c
mov dword [esp], str.wm__ioProc__pIOProc__refmminfo__pIOProc
call dword [sym.imp.ucrtbase.dll__assert]
mov edx, dword [ebx + 0x4c]
or byte [ebx + 0x50], 1
mov eax, dword [ebp - 0x170]
inc dword [edx + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebx], eax
test eax, 0x10000
je 0x6f2497dd
test ecx, ecx
mov eax, 0x2000
cmove ecx, eax
mov edx, dword [esi + 0x18]
mov dword [esp], 0
mov eax, ebx
call sym._MMIO_SetBuffer
mov dword [esi + 0xc], eax
test eax, eax
jne 0x6f249623
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebx + 0x38], edx
mov edx, ebx
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebp - 0x16c]
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, 3
call sym._send_message.constprop.0
cmp dword [ebx + 4], 0x20534f44
mov dword [esi + 0xc], eax
je 0x6f249912
mov dword [ebx + 0x54], 0
test eax, eax
jne 0x6f249623
mov ebx, dword [ebx + 0x44]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x164]
mov eax, esi
mov ecx, 0x12
mov dword [ebp + 8], 0
mov edi, edx
mov esi, edx
rep stosd dword es:[edi], eax
jmp 0x6f249593
mov edx, dword [esi + 8]
test edx, edx
jne 0x6f249754
mov edx, dword [0x6f2702c8]
mov dword [ebx + 4], eax
test edx, edx
jne 0x6f2498aa
jmp 0x6f24993d
mov edx, dword [edx]
test edx, edx
je 0x6f24993d
cmp eax, dword [edx + 4]
jne 0x6f2498a0
mov dword [ebx + 0x4c], edx
and byte [ebx + 0x50], 0xfe
jmp 0x6f2497be
mov eax, dword [ebp - 0x16c]
call sym._MMIO_ParseExtA
mov dword [ebx + 4], eax
test eax, eax
jne 0x6f249995
mov dword [ebx + 4], 0x20534f44
mov edx, 0x6f2666e0
mov dword [ebx + 0x4c], 0x6f2666e0
jmp 0x6f2498b2
mov edx, dword [ebx + 0x18]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6f24962f
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], 1
mov ecx, 2
mov edx, ebx
mov dword [esp], 0
call sym._send_message.constprop.0
cmp eax, 0xffffffff
jne 0x6f249949
mov eax, dword [esi + 0xc]
jmp 0x6f24983b
mov dword [ebx + 0x4c], 0
jmp 0x6f249639
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x4c]
mov ecx, 2
mov edx, ebx
mov dword [ebx + 0x28], edi
mov dword [esp + 4], 2
mov dword [esp], 0
call sym._send_message.constprop.0
mov eax, dword [ebx + 0x2c]
mov ecx, 2
mov edx, ebx
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._send_message.constprop.0
mov eax, dword [esi + 0xc]
jmp 0x6f249842
mov edx, dword [0x6f2702c8]
test edx, edx
jne 0x6f2499ae
jmp 0x6f2499b8
mov edx, dword [edx]
test edx, edx
je 0x6f2499b8
cmp eax, dword [edx + 4]
jne 0x6f2499a8
jmp 0x6f2498af
mov dword [ebx + 0x4c], 0x6f2666e0
mov edx, 0x6f2666e0
jmp 0x6f2498b2