Function at 0x61f01cb0
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, 0x58
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x2c], edi
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test byte [0x61f04018], 8
jne 0x61f01ea8
cmp ebx, 0x6052
ja case.0x61f01cfd.24578
cmp ebx, 0x6000
jbe 0x61f01d08
lea eax, [ebx - 0x6001]
cmp eax, 0x51
ja case.0x61f01cfd.24578
jmp dword [eax*4 + 0x61f061d4]
cmp ebx, 0xa
ja case.0x61f01cfd.24578
mov esi, 2
cmp ebx, 8
ja 0x61f01d2a
cmp ebx, 7
je 0x61f022b0
cmp ebx, 8
jne 0x61f01d3a
mov esi, 1
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
lea eax, [ebx - 1]
cmp eax, 5
jbe 0x61f01d25
lea esi, [esi]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._DefDriverProc_20
sub esp, 0x14
mov esi, eax
jmp 0x61f01d2a
lea eax, [edi + 0x28]
mov dword [edi + 4], 0x63647561
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x210001
mov dword [edi + 0x10], 0x1000000
mov dword [edi + 0x14], 0x1000000
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.MS_ADPCM
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
lea eax, [edi + 0x68]
sub esp, 0x18
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.Wine_MS_ADPCM_converter
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
lea eax, [edi + 0x168]
sub esp, 0x18
mov dword [esp + 0x14], 0x50
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.Brought_to_you_by_the_Wine_team...
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
lea eax, [edi + 0x208]
sub esp, 0x18
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.Refer_to_LICENSE_file
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
xor eax, eax
mov word [edi + 0x308], ax
sub esp, 0x18
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__08Ix__p__04x__08Ix__08Ix___n
mov dword [esp + 8], str.ADPCM_DriverProc
mov dword [esp + 4], 0x61f04018
mov dword [esp], 3
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x61f01ce2
lea esp, [ebp - 0x10]
mov esi, 8
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
cmp ecx, 1
je 0x61f024d8
cmp ecx, 2
je 0x61f02498
test ecx, ecx
je 0x61f02428
mov esi, 8
test byte [0x61f04018], 4
je 0x61f01d2a
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Unsupported_query__08lx_n
mov dword [esp + 8], str.ADPCM_FormatTagDetails
mov dword [esp + 4], 0x61f04018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x61f01d2a
test ecx, ecx
je 0x61f02350
cmp ecx, 1
je 0x61f022e0
mov esi, 8
test byte [0x61f04018], 4
je 0x61f01d2a
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Unsupported_query__08lx_n
mov dword [esp + 8], str.ADPCM_FormatDetails
mov dword [esp + 4], 0x61f04018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x61f01d2a
mov eax, dword [ecx + 0x10]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x2c]
test eax, 0xffffffcb
je 0x61f02010
test byte [0x61f04018], 1
je 0x61f02010
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_fdwConvert___08lx___ignoring_it_n
mov dword [esp + 8], 0x61f0631c
mov dword [esp + 4], 0x61f04018
mov dword [esp], 0
mov dword [ebp - 0x2c], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x24], eax
jmp 0x61f01d2a
cmp dword [edi + 0xc], 0xf
jbe 0x61f02130
cmp dword [edi + 0x14], 0xf
jbe 0x61f02130
mov ebx, dword [edi + 0x10]
mov esi, dword [edi + 8]
movzx eax, word [ebx]
cmp word [esi], ax
je 0x61f02130
mov eax, esi
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x61f02130
mov eax, dword [edi + 4]
test eax, 0x20000
jne 0x61f0209e
movzx eax, word [esi + 2]
mov word [ebx + 2], ax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x10]
test eax, 0x40000
jne 0x61f020b4
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x10]
test eax, 0x80000
jne 0x61f020d7
mov eax, dword [edi + 8]
cmp word [eax], 1
je 0x61f02777
mov ecx, 0x10
mov word [ebx + 0xe], cx
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x10]
test eax, 0x10000
jne 0x61f020f6
mov eax, dword [edi + 8]
cmp word [eax], 1
je 0x61f02767
mov eax, 1
mov word [ebx], ax
mov ebx, dword [edi + 0x10]
movzx eax, word [ebx]
cmp ax, 1
je 0x61f025b9
cmp ax, 2
jne 0x61f02130
cmp dword [edi + 0x14], 0x31
jbe 0x61f02130
mov eax, ebx
call dbg.init_wfx_adpcm
mov eax, dword [edi + 0x10]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
jne case.0x61f01cfd.24577
lea esi, [esi]
nop
mov esi, 0x200
jmp 0x61f01d2a
test byte [edi + 0x18], 2
jne 0x61f024b0
mov eax, dword [edi + 4]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x61f02130
mov eax, dword [edi + 8]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x61f02130
mov dword [esp + 8], 4
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 ebx, eax
test eax, eax
je 0x61f02798
mov edx, dword [edi + 4]
mov dword [edi + 0x20], eax
movzx eax, word [edx]
cmp ax, 1
je 0x61f024f0
cmp ax, 2
jne 0x61f02540
mov eax, dword [edi + 8]
cmp word [eax], 1
jne 0x61f02540
mov esi, dword [eax + 4]
cmp dword [edx + 4], esi
jne 0x61f02540
movzx eax, word [eax + 2]
cmp word [edx + 2], ax
jne 0x61f02540
cmp ax, 2
je 0x61f0278b
xor esi, esi
cmp ax, 1
jne 0x61f01d2a
mov dword [ebx], dbg.cvtMMms16K
jmp 0x61f01d2a
mov edx, dword [edi + 0x20]
mov dword [esp + 4], 0
xor esi, esi
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 0x61f01d2a
mov eax, dword [ecx + 4]
test eax, eax
je 0x61f023b0
cmp eax, 1
jne 0x61f02308
mov ebx, dword [edi + 4]
movzx eax, word [ebx]
cmp ax, 1
je 0x61f025fd
cmp ax, 2
jne case.0x61f01cfd.24596
mov edi, dword [edi + 8]
mov esi, 8
cmp word [edi], 1
jne 0x61f01d2a
movzx esi, word [ebx + 0xc]
movzx ebx, word [ebx + 2]
lea eax, [esi + esi]
cdq
idiv ebx
sub eax, 0xc
movzx edx, ax
movzx eax, word [edi + 0xc]
imul edx, eax
mov eax, dword [ecx + 0xc]
mov ebx, edx
xor edx, edx
div ebx
cmp dword [ecx + 0xc], ebx
jb 0x61f02130
imul esi, eax
mov dword [ecx + 8], esi
xor esi, esi
jmp 0x61f01d2a
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Wine_Driver
mov dword [esp + 4], str.MSACM_MS_ADPCM_filter__
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxA]
sub esp, 0x10
jmp 0x61f01d25
mov eax, dword [edi + 0x10]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x61f02130
xor eax, eax
mov dword [edi + 0xc], 1
xor esi, esi
mov word [edi + 0x18], ax
jmp 0x61f01d2a
mov esi, 8
test byte [0x61f04018], 4
je 0x61f01d2a
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_query__08lx_n
mov dword [esp + 8], str.ADPCM_StreamSize
mov dword [esp + 4], 0x61f04018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x61f01d2a
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 8]
mov word [eax], dx
mov eax, dword [edi + 8]
cmp eax, 1
je 0x61f026fb
cmp eax, 2
je 0x61f026a0
mov esi, 0xb
test byte [0x61f04018], 4
je 0x61f01d2a
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_tag__08lx_n
mov dword [esp + 8], str.ADPCM_FormatDetails
mov dword [esp + 4], 0x61f04018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x61f01d2a
mov ebx, dword [edi + 4]
movzx eax, word [ebx]
cmp ax, 1
je 0x61f02647
cmp ax, 2
jne case.0x61f01cfd.24596
mov eax, dword [edi + 8]
mov esi, 8
cmp word [eax], 1
mov dword [ebp - 0x2c], eax
jne 0x61f01d2a
movzx esi, word [ebx + 0xc]
movzx ebx, word [ebx + 2]
lea eax, [esi + esi]
cdq
idiv ebx
mov ebx, dword [ecx + 8]
xor edx, edx
lea edi, [eax - 0xc]
mov eax, ebx
div esi
cmp ebx, esi
jb 0x61f02130
cmp edx, 1
mov edx, eax
mov eax, dword [ebp - 0x2c]
movzx edi, di
sbb edx, 0xffffffff
xor esi, esi
movzx eax, word [eax + 0xc]
imul eax, edi
imul eax, edx
mov dword [ecx + 0xc], eax
jmp 0x61f01d2a
cmp dword [edi + 4], 1
ja 0x61f02130
mov eax, dword [edi + 4]
mov dword [edi + 0x10], 1
test eax, eax
je 0x61f02578
cmp eax, 1
jne case.0x61f01cfd.24577
mov ebx, str.Microsoft_ADPCM
lea edx, [edi + 0x18]
mov eax, 0x4d
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0x32
sub ebx, edi
mov dword [edi + 0x14], 8
jmp 0x61f0247f
movzx eax, word [edx + ebx - 0x16]
mov edx, ecx
mov word [edx], ax
lea ecx, [edx + 2]
test ax, ax
jne 0x61f02478
xor esi, esi
jmp 0x61f01e92
mov eax, dword [edi + 8]
test eax, eax
jne 0x61f024db
mov dword [edi + 4], 1
jmp 0x61f02432
mov dword [esp + 8], 0x247
mov dword [esp + 4], str..._dlls_msadp32.acm_msadp32.c
mov dword [esp], str.__adsi__fdwOpen__ACM_STREAMOPENF_ASYNC_
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x61f0214a
mov eax, dword [edi + 8]
cmp eax, 1
je 0x61f025f1
cmp eax, 2
je 0x61f0249f
jmp 0x61f02130
mov eax, dword [edi + 8]
cmp word [eax], 2
jne 0x61f02540
mov esi, dword [eax + 4]
cmp dword [edx + 4], esi
jne 0x61f02540
movzx eax, word [eax + 2]
cmp word [edx + 2], ax
jne 0x61f02540
cmp word [edx + 0xe], 0x10
jne 0x61f02540
test byte [0x61f04018], 1
je 0x61f02540
mov dword [esp + 0xc], str.We_dont_support_encoding_yet_n
mov dword [esp + 8], str.ADPCM_StreamOpen
mov dword [esp + 4], 0x61f04018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
nop
mov dword [esp + 8], ebx
mov esi, 8
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 dword [edi + 0x20], 0
sub esp, 0xc
jmp 0x61f01d2a
mov ebx, 0x61f060f6
lea edx, [edi + 0x18]
mov eax, 0x50
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0x10
sub ebx, edi
mov dword [edi + 0x14], 0x10
jmp 0x61f025a7
movzx eax, word [edx + ebx - 0x16]
mov edx, ecx
mov word [edx], ax
lea ecx, [edx + 2]
test ax, ax
jne 0x61f025a0
xor esi, esi
jmp 0x61f01e92
movzx edx, word [ebx + 0xe]
movzx eax, word [ebx + 2]
imul eax, edx
sar eax, 3
mov word [ebx + 0xc], ax
mov eax, dword [edi + 0x10]
movzx edx, word [eax + 0xc]
imul edx, dword [eax + 4]
mov dword [eax + 8], edx
mov eax, dword [edi + 0x10]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x61f02130
xor esi, esi
jmp 0x61f01e92
mov dword [edi + 4], 0
jmp 0x61f02432
mov edx, dword [edi + 8]
mov esi, 8
cmp word [edx], 2
jne 0x61f01d2a
movzx esi, word [edx + 0xc]
movzx edi, word [edx + 2]
lea eax, [esi + esi]
cdq
idiv edi
xor edx, edx
lea edi, [eax - 0xc]
mov eax, dword [ecx + 0xc]
div esi
cmp dword [ecx + 0xc], esi
jb 0x61f02130
movzx edx, word [ebx + 0xc]
movzx ebx, di
xor esi, esi
imul eax, edx
imul eax, ebx
mov dword [ecx + 8], eax
jmp 0x61f01d2a
mov edx, dword [edi + 8]
mov esi, 8
cmp word [edx], 2
jne 0x61f01d2a
movzx edi, word [edx + 0xc]
movzx esi, word [edx + 2]
lea eax, [edi + edi]
cdq
idiv esi
movzx edx, word [ebx + 0xc]
sub eax, 0xc
movzx eax, ax
imul eax, edx
xor edx, edx
mov ebx, eax
mov eax, dword [ecx + 8]
div ebx
cmp dword [ecx + 8], ebx
jb 0x61f02130
cmp edx, 1
sbb eax, 0xffffffff
xor esi, esi
imul edi, eax
mov dword [ecx + 0xc], edi
jmp 0x61f01d2a
mov eax, dword [edi + 4]
cmp eax, 7
ja 0x61f02130
cmp dword [edi + 0x14], 0x31
jbe 0x61f02130
lea eax, [eax + eax*2]
mov edx, dword [edi + 0x10]
mov eax, dword [eax*4 + 0x61f06420]
mov word [edx + 2], ax
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x61f06428]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x61f06424]
mov word [edx + 0xe], ax
mov eax, dword [edi + 0x10]
call dbg.init_wfx_adpcm
jmp 0x61f022f1
mov eax, dword [edi + 4]
cmp eax, 0xf
ja 0x61f02130
lea eax, [eax + eax*2]
mov edx, dword [edi + 0x10]
mov eax, dword [eax*4 + 0x61f06480]
mov word [edx + 2], ax
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x61f06488]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x61f06484]
mov word [edx + 0xe], ax
mov edx, dword [edi + 0x10]
movzx eax, word [edx + 2]
movzx ecx, word [edx + 0xe]
imul eax, ecx
sar eax, 3
mov word [edx + 0xc], ax
mov eax, dword [edi + 0x10]
movzx edx, word [eax + 0xc]
imul edx, dword [eax + 4]
mov dword [eax + 8], edx
jmp 0x61f022f1
mov edx, 2
mov word [ebx], dx
mov ebx, dword [edi + 0x10]
jmp 0x61f020f6
mov esi, 4
mov word [ebx + 0xe], si
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x10]
jmp 0x61f020d7
mov dword [ebx], dbg.cvtSSms16K
xor esi, esi
jmp 0x61f01d2a
mov esi, 7
jmp 0x61f01d2a