Function at 0x6f244e80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp word [eax], 0
mov dword [ebp - 0x34], edx
je 0x6f24519d
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6f244ea0
sub eax, ecx
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6f24509b
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._memcpy
mov dword [esp], esi
call dword [sym.imp.user32.dll_CharUpperW]
sub esp, 4
mov dword [esp + 8], 0x30
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x6f244f70
mov edi, 0x108
mov dword [esp + 8], esi
mov dword [esp + 4], 0
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_HeapFree]
mov eax, dword [ebp - 0x34]
sub esp, 0xc
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax + 0x18], sym._MCI_DefYieldProc_8
mov dword [eax + 0x1c], 3
mov eax, dword [edi + 0x24]
mov edi, 1
mov dword [ebx + 0x20], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6f266580
mov dword [ebp - 0x30], eax
call eax
mov eax, dword [0x6f2663a0]
mov dword [ebp - 0x28], 1
mov dword [0x6f2663a0], ebx
sub esp, 4
mov dword [ebx + 0x2c], eax
mov dword [ebp - 0x2c], ebx
mov ebx, edi
mov edi, dword [ebp - 0x30]
lea esi, [esi]
mov dword [esp], 0x6f266580
call edi
mov eax, dword [0x6f2663a0]
sub esp, 4
test eax, eax
jne 0x6f244fe7
jmp 0x6f245010
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x6f245010
cmp ebx, dword [eax]
jne 0x6f244fe0
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x28]
sub esp, 4
lea ebx, [eax + 1]
mov dword [ebp - 0x28], ebx
jmp 0x6f244fc0
mov ebx, dword [ebp - 0x2c]
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [ebx], eax
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x6f2665a8], 8
jne 0x6f2450d8
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
mov dword [ebp - 0x24], 0
call sym._MCI_OpenMciDriver
test eax, eax
je 0x6f2451a7
mov edi, dword [ebp - 0x20]
mov dword [ebx + 0x24], 0xfffe
mov eax, edi
and eax, 0xffff
mov dword [ebx + 0x28], eax
test byte [0x6f2665a8], 8
jne 0x6f245108
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x30
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f244f2b
mov edi, 0x108
mov eax, ebx
call sym._MCI_UnLoadMciDriver.part.0
jmp 0x6f244f30
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], str.wDevID_04X_n
mov dword [esp + 8], str.MCI_LoadMciDriver
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f245045
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov dword [ebp - 0x2c], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], str.Loaded_driver__p___s___type_is__d__cmdTable_08x_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MCI_LoadMciDriver
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 8], esi
mov dword [ebx + 4], edx
test byte [0x6f2665a8], 8
je 0x6f24508a
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.mcidev_d__uDevTyp_04X_wDeviceID_04X___n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MCI_LoadMciDriver
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f24508a
mov edx, 2
jmp 0x6f244eae
mov dword [esp + 4], 0x6f2733c0
mov edi, 0x117
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x6f2450c8
mov edi, 0x132
test byte [0x6f2665a8], 1
je 0x6f2450c8
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Couldnt_load_driver_for_type__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MCI_LoadMciDriver
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f2450c8