Function at 0x6f243ab0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test byte [0x6f266598], 8
jne 0x6f243c90
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x6f243c30
xor edx, edx
lea edi, [eax + 2]
mov word [eax], dx
movzx eax, word [eax + 2]
cmp ax, 0x20
jne 0x6f243b05
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x6f243af8
test ax, ax
je 0x6f243c30
mov dword [esp + 8], 0x1c
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_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6f243d98
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6f243cd0
mov dword [esp + 4], str.DriverProc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
sub esp, 8
test eax, eax
je 0x6f243c40
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
mov dword [esi + 0x10], 0
mov dword [esp], 0x6f270284
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x6f270280]
sub esp, 4
test eax, eax
je 0x6f243d6a
xor ecx, ecx
lea esi, [esi]
nop
xor edx, edx
cmp ebx, dword [eax + 8]
mov eax, dword [eax + 0x18]
sete dl
add ecx, edx
test eax, eax
jne 0x6f243bb0
test ecx, ecx
sete byte [ebp - 0x19]
mov dword [esp], 0x6f270284
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
sub esp, 4
test eax, eax
je 0x6f243be8
cmp byte [ebp - 0x19], 0
jne 0x6f243d20
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, esi
call sym._DRIVER_AddToList
test eax, eax
je 0x6f243d60
test byte [0x6f266598], 8
je 0x6f243c80
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.___p_n
mov dword [esp + 8], str.DRIVER_TryOpenDriver32
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f243c80
xor edi, edi
jmp 0x6f243b0e
mov edi, str.no_DriverProc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov dword [esp + 8], esi
xor esi, 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]
sub esp, 0xc
test byte [0x6f266598], 8
jne 0x6f243ce0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], str.__s___08IX___n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.DRIVER_TryOpenDriver32
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f243ac6
mov edi, str.Not_a_32_bit_lib
jmp 0x6f243c45
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_load_32_bit_module__s:__s_n
mov dword [esp + 8], str.DRIVER_TryOpenDriver32
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, edi
xor ecx, ecx
mov eax, esi
mov edi, str.load0_failed
call sym._DRIVER_AddToList
test eax, eax
je 0x6f243c45
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DRIVER_TryOpenDriver32
test eax, eax
je 0x6f243d73
or dword [esi + 4], 1
mov esi, eax
jmp 0x6f243c80
mov edi, str.load_failed
jmp 0x6f243c45
mov byte [ebp - 0x19], 1
jmp 0x6f243bc7
mov dword [esp + 8], 0
mov edi, str.load1_failed
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.winmm.dll_CloseDriver
sub esp, 0xc
jmp 0x6f243c45
xor ebx, ebx
mov edi, 0x6f272245
jmp 0x6f243c45