Function at 0x10002240
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
test byte [0x10004018], 8
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
jne 0x10001fc8
cmp ebx, 0x6052
ja case.0x10001e20.24578
cmp ebx, 0x6000
jbe 0x10001e28
lea eax, [ebx - 0x6001]
cmp eax, 0x51
ja case.0x10001e20.24578
jmp dword [eax*4 + 0x100061dc]
cmp ebx, 0xa
ja case.0x10001e20.24578
cmp ebx, 8
ja 0x10001fb0
cmp ebx, 7
je 0x10002330
cmp ebx, 8
jne 0x10001e55
mov ebx, 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [ebx - 1]
cmp eax, 5
jbe 0x10001e44
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.winmm.dll_DefDriverProc]
lea eax, [esi + 0x28]
mov dword [esi + 4], 0x63647561
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x210001
mov dword [esi + 0x10], 0x1000000
mov dword [esi + 0x14], 0x1000000
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 2
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
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, [esi + 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, [esi + 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, [esi + 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
mov word [esi + 0x308], 0
sub esp, 0x18
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
mov ebx, 2
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], str.__08Ix__p__04x__08Ix__08Ix___n
mov dword [esp + 8], str.ADPCM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x10001e05
lea esp, [ebp - 0xc]
mov ebx, 8
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
test edi, edi
je 0x10002460
cmp edi, 1
je 0x100023f8
test byte [0x10004018], 4
mov ebx, 8
je 0x10001e49
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Unsupported_query__08lx_n
mov dword [esp + 8], str.ADPCM_FormatDetails
mov dword [esp + 4], 0x10004018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001e49
mov eax, dword [edi + 0x10]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x2c]
test eax, 0xffffffcb
je 0x100020d0
test byte [0x10004018], 1
je 0x100020d0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_fdwConvert___08lx___ignoring_it_n
mov dword [esp + 8], str.ADPCM_StreamConvert
mov dword [esp + 4], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
lea esi, [esi]
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [ebx]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x24], eax
xor ebx, ebx
jmp 0x10001e49
cmp edi, 1
je 0x100025b8
cmp edi, 2
je 0x100025a8
test edi, edi
je 0x10002538
test byte [0x10004018], 4
mov ebx, 8
je 0x10001e49
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Unsupported_query__08lx_n
mov dword [esp + 8], str.ADPCM_FormatTagDetails
mov dword [esp + 4], 0x10004018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001e49
cmp dword [esi + 0xc], 0xf
jbe 0x10002268
cmp dword [esi + 0x14], 0xf
jbe 0x10002268
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 8]
mov ax, word [ebx]
cmp word [edi], ax
je 0x10002268
mov eax, edi
call dbg.ADPCM_GetFormatIndex
inc eax
je 0x10002268
mov eax, dword [esi + 4]
test eax, 0x20000
jne 0x100021b4
mov ax, word [edi + 2]
mov word [ebx + 2], ax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x10]
test eax, 0x40000
jne 0x100021ca
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x10]
test eax, 0x80000
jne 0x100021ea
mov eax, dword [esi + 8]
cmp word [eax], 1
je 0x1000285f
mov word [ebx + 0xe], 0x10
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x10]
test eax, 0x10000
jne 0x10002206
mov eax, dword [esi + 8]
cmp word [eax], 1
je 0x10002870
mov word [ebx], 1
mov ebx, dword [esi + 0x10]
mov ax, word [ebx]
cmp ax, 1
je 0x10002699
cmp ax, 2
jne 0x10002268
cmp dword [esi + 0x14], 0x31
jbe 0x10002268
mov eax, ebx
call dbg.init_wfx_adpcm
mov eax, dword [esi + 0x10]
xor ebx, ebx
call dbg.ADPCM_GetFormatIndex
inc eax
sete bl
shl ebx, 9
jmp 0x10001e49
test byte [esi + 0x18], 2
jne 0x1000288a
mov eax, dword [esi + 4]
call dbg.ADPCM_GetFormatIndex
inc eax
je 0x10002268
mov eax, dword [esi + 8]
call dbg.ADPCM_GetFormatIndex
inc eax
jne 0x10002360
lea esi, [esi]
mov ebx, 0x200
jmp 0x10001e49
mov edx, dword [esi + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
xor ebx, ebx
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
jmp 0x10001e49
mov eax, dword [edi + 4]
test eax, eax
je 0x100024c0
cmp eax, 1
jne 0x10002420
mov ecx, dword [esi + 4]
mov ax, word [ecx]
cmp ax, 1
je 0x10002738
cmp ax, 2
jne case.0x10001e20.24596
mov esi, dword [esi + 8]
cmp word [esi], 1
jne case.0x10001e20.24596
xor ebx, ebx
xor edx, edx
mov bx, word [ecx + 0xc]
mov dx, word [ecx + 2]
mov ecx, edx
lea eax, [ebx + ebx]
mov edx, eax
sar edx, 0x1f
idiv ecx
xor edx, edx
lea ecx, [eax - 0xc]
xor eax, eax
and ecx, 0xffff
mov ax, word [esi + 0xc]
imul ecx, eax
mov eax, dword [edi + 0xc]
div ecx
cmp dword [edi + 0xc], ecx
jb 0x10002268
imul ebx, eax
mov dword [edi + 8], ebx
xor ebx, ebx
jmp 0x10001e49
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 0x10001e44
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 edi, eax
test eax, eax
je 0x100028a7
mov edx, dword [esi + 4]
mov dword [esi + 0x20], eax
mov ax, word [edx]
cmp ax, 1
je 0x100025d0
cmp ax, 2
jne 0x10002620
mov eax, dword [esi + 8]
cmp word [eax], 1
jne 0x10002620
mov ecx, dword [eax + 4]
cmp dword [edx + 4], ecx
jne 0x10002620
mov ax, word [eax + 2]
cmp word [edx + 2], ax
jne 0x10002620
cmp ax, 2
je 0x1000287d
xor ebx, ebx
dec ax
jne 0x10001e49
mov dword [edi], dbg.cvtMMms16K
jmp 0x10001e49
mov eax, dword [esi + 0x10]
call dbg.ADPCM_GetFormatIndex
inc eax
je 0x10002268
mov dword [esi + 0xc], 1
mov word [esi + 0x18], 0
xor ebx, ebx
jmp 0x10001e49
test byte [0x10004018], 4
mov ebx, 8
je 0x10001e49
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], 0x10004018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001e49
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov word [eax], dx
mov eax, dword [esi + 8]
cmp eax, 1
je 0x100027eb
cmp eax, 2
je 0x10002790
test byte [0x10004018], 4
mov ebx, 0xb
je 0x10001e49
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], 0x10004018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001e49
mov ecx, dword [esi + 4]
mov ax, word [ecx]
cmp ax, 1
je 0x100026d2
cmp ax, 2
jne case.0x10001e20.24596
mov esi, dword [esi + 8]
cmp word [esi], 1
jne case.0x10001e20.24596
xor ebx, ebx
xor edx, edx
mov bx, word [ecx + 0xc]
mov dx, word [ecx + 2]
mov ecx, edx
lea eax, [ebx + ebx]
mov edx, eax
sar edx, 0x1f
idiv ecx
xor edx, edx
lea ecx, [eax - 0xc]
mov eax, dword [edi + 8]
div ebx
cmp dword [edi + 8], ebx
jb 0x10002268
cmp edx, 1
sbb eax, 0xffffffff
xor edx, edx
mov dx, word [esi + 0xc]
and ecx, 0xffff
imul ecx, edx
imul ecx, eax
xor ebx, ebx
mov dword [edi + 0xc], ecx
jmp 0x10001e49
cmp dword [esi + 4], 1
ja 0x10002268
mov eax, dword [esi + 4]
mov dword [esi + 0x10], 1
test eax, eax
je 0x10002658
dec eax
jne case.0x10001e20.24577
mov ebx, str.Microsoft_ADPCM
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0x32
mov dword [esi + 0x14], 8
lea edx, [esi + 0x18]
mov eax, 0x4d
sub ebx, esi
jmp 0x1000258f
mov ax, word [edx + ebx - 0x16]
mov edx, ecx
lea ecx, [edx + 2]
mov word [edx], ax
test ax, ax
jne 0x10002588
xor ebx, ebx
jmp 0x10001fa2
mov eax, dword [esi + 8]
test eax, eax
jne 0x100025bb
mov dword [esi + 4], 1
jmp 0x10002542
mov eax, dword [esi + 8]
cmp eax, 1
je 0x100026c6
cmp eax, 2
je 0x100025af
jmp 0x10002268
mov eax, dword [esi + 8]
cmp word [eax], 2
jne 0x10002620
mov ecx, dword [eax + 4]
cmp dword [edx + 4], ecx
jne 0x10002620
mov ax, word [eax + 2]
cmp word [edx + 2], ax
jne 0x10002620
cmp word [edx + 0xe], 0x10
jne 0x10002620
test byte [0x10004018], 1
je 0x10002620
mov dword [esp + 0xc], str.We_dont_support_encoding_yet_n
mov dword [esp + 8], str.ADPCM_StreamOpen
mov dword [esp + 4], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
nop
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov ebx, 8
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi + 0x20], 0
sub esp, 0xc
jmp 0x10001e49
mov ebx, 0x100060f6
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x14], 0x10
lea edx, [esi + 0x18]
mov eax, 0x50
sub ebx, esi
jmp 0x10002687
mov ax, word [ecx + ebx - 0x18]
mov edx, ecx
lea ecx, [edx + 2]
mov word [edx], ax
test ax, ax
jne 0x10002680
xor ebx, ebx
jmp 0x10001fa2
xor eax, eax
xor edx, edx
mov dx, word [ebx + 0xe]
mov ax, word [ebx + 2]
imul eax, edx
sar eax, 3
xor edx, edx
mov word [ebx + 0xc], ax
mov eax, dword [esi + 0x10]
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 4]
imul edx, ecx
mov dword [eax + 8], edx
jmp 0x10002226
mov dword [esi + 4], 0
jmp 0x10002542
mov edx, dword [esi + 8]
mov ebx, 8
cmp word [edx], 2
jne 0x10001e49
mov bx, word [edx + 0xc]
xor eax, eax
mov ax, bx
xor esi, esi
add eax, eax
mov si, word [edx + 2]
mov edx, eax
sar edx, 0x1f
idiv esi
sub eax, 0xc
xor edx, edx
mov dx, word [ecx + 0xc]
and eax, 0xffff
imul eax, edx
xor edx, edx
mov ecx, eax
mov eax, dword [edi + 8]
div ecx
cmp dword [edi + 8], ecx
jb 0x10002268
cmp edx, 1
sbb eax, 0xffffffff
and ebx, 0xffff
imul ebx, eax
mov dword [edi + 0xc], ebx
xor ebx, ebx
jmp 0x10001e49
mov edx, dword [esi + 8]
mov ebx, 8
cmp word [edx], 2
jne 0x10001e49
xor ebx, ebx
xor esi, esi
mov bx, word [edx + 0xc]
mov si, word [edx + 2]
lea eax, [ebx + ebx]
mov edx, eax
sar edx, 0x1f
idiv esi
xor edx, edx
lea esi, [eax - 0xc]
mov eax, dword [edi + 0xc]
div ebx
cmp dword [edi + 0xc], ebx
jb 0x10002268
xor edx, edx
xor ebx, ebx
mov dx, word [ecx + 0xc]
imul edx, eax
xor eax, eax
mov ax, si
imul eax, edx
mov dword [edi + 8], eax
jmp 0x10001e49
mov eax, dword [esi + 4]
cmp eax, 7
ja 0x10002268
cmp dword [esi + 0x14], 0x31
jbe 0x10002268
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x10]
mov eax, dword [eax*4 + 0x10006440]
mov word [edx + 2], ax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x10006448]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x10006444]
mov word [edx + 0xe], ax
mov eax, dword [esi + 0x10]
call dbg.init_wfx_adpcm
jmp 0x10002407
mov eax, dword [esi + 4]
cmp eax, 0xf
ja 0x10002268
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x10]
xor ecx, ecx
mov eax, dword [eax*4 + 0x100064a0]
mov word [edx + 2], ax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x100064a8]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x100064a4]
mov word [edx + 0xe], ax
xor eax, eax
mov edx, dword [esi + 0x10]
mov ax, word [edx + 2]
mov cx, word [edx + 0xe]
imul eax, ecx
sar eax, 3
mov word [edx + 0xc], ax
xor edx, edx
mov eax, dword [esi + 0x10]
mov dx, word [eax + 0xc]
mov ebx, dword [eax + 4]
imul edx, ebx
mov dword [eax + 8], edx
jmp 0x10002407
mov word [ebx + 0xe], 4
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x10]
jmp 0x100021ea
mov word [ebx], 2
mov ebx, dword [esi + 0x10]
jmp 0x10002206
mov dword [edi], dbg.cvtSSms16K
xor ebx, ebx
jmp 0x10001e49
mov dword [esp + 8], 0x247
mov dword [esp + 4], str..._wine_9.10_dlls_msadp32.acm_msadp32.c
mov dword [esp], str.__adsi__fdwOpen__ACM_STREAMOPENF_ASYNC_
call dword [sym.imp.ucrtbase.dll__assert]
mov ebx, 7
jmp 0x10001e49