Function at 0x6f242cb0
Capabilities:
Get process heap flags

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, 0x48
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
test byte [0x6f266598], 8
jne 0x6f242e30
mov dword [esp], ebx
call sym._DRIVER_FindFromHDrvr
mov ebx, eax
test eax, eax
je 0x6f242df0
test byte [0x6f266598], 8
jne 0x6f242ed0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [ebx + 0xc]
sub esp, 0x14
test byte [0x6f266598], 8
jne 0x6f242e68
mov eax, ebx
call sym._DRIVER_RemoveFromList
test byte [ebx + 4], 1
je 0x6f242d3f
test byte [0x6f266598], 1
jne 0x6f242f20
mov edi, dword [ebx + 8]
mov dword [esp], 0x6f270284
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x6f270280]
sub esp, 4
test eax, eax
je 0x6f242f50
xor esi, esi
xor edx, edx
jmp 0x6f242d6f
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6f242d81
cmp edi, dword [eax + 8]
jne 0x6f242d68
test esi, esi
cmove esi, eax
mov eax, dword [eax + 0x18]
inc edx
test eax, eax
jne 0x6f242d6f
mov dword [ebp - 0x1c], edx
mov dword [esp], 0x6f270284
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [sym.imp.kernel32.dll_FreeLibrary]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
cmp edx, 1
je 0x6f242f78
mov eax, dword [ebx + 8]
mov dword [esp], eax
call ecx
sub esp, 4
mov dword [esp + 8], ebx
mov ebx, 1
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 edi
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
xor ebx, ebx
test byte [0x6f266598], 4
je 0x6f242ddc
mov dword [esp + 0xc], str.Failed_to_close_driver_n
mov dword [esp + 8], str.CloseDriver
mov dword [esp + 4], 0x6f266598
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___08IX___08IX___n
mov dword [esp + 8], str.CloseDriver
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f242cd9
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], str.After__call32_proc_p_drvrID_08Ix_hDrv_p_wMsg_04x_p1_08Ix_p2_08Ix____08Ix_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DRIVER_SendMessage
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, ebx
call sym._DRIVER_RemoveFromList
test byte [ebx + 4], 1
je 0x6f242d3f
jmp 0x6f242d32
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], str.Before_call32_proc_p_drvrID_08Ix_hDrv_p_wMsg_04x_p1_08Ix_p2_08Ix_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DRIVER_SendMessage
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f242cf8
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.WINE_GDF_SESSION:_Shouldnt_happen___p__n
mov dword [esp + 8], str.CloseDriver
mov dword [esp + 4], 0x6f266598
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6f242d3f
mov dword [esp], 0x6f270284
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [sym.imp.kernel32.dll_FreeLibrary]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
jmp 0x6f242dac
test byte [esi + 4], 1
je 0x6f242dac
test byte [0x6f266598], 8
jne 0x6f243060
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [esi + 0xc]
sub esp, 0x14
test byte [0x6f266598], 8
jne 0x6f243009
mov eax, esi
call sym._DRIVER_RemoveFromList
mov ecx, dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov dword [esp], eax
call ecx
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
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 edi
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
jmp 0x6f242dac
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], str.After__call32_proc_p_drvrID_08Ix_hDrv_p_wMsg_04x_p1_08Ix_p2_08Ix____08Ix_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DRIVER_SendMessage
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f242fc0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], str.Before_call32_proc_p_drvrID_08Ix_hDrv_p_wMsg_04x_p1_08Ix_p2_08Ix_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DRIVER_SendMessage
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f242f8f