Function at 0x10002490
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
test byte [0x10004018], 8
jne 0x100021b8
cmp esi, 0x6052
ja case.0x10002000.24578
cmp esi, 0x6000
jbe 0x10002010
lea eax, [esi - 0x6001]
cmp eax, 0x51
ja case.0x10002000.24578
jmp dword [eax*4 + 0x100061b0]
cmp esi, 0xa
ja case.0x10002000.24578
cmp esi, 8
ja 0x100021a0
cmp esi, 7
je 0x10002530
cmp esi, 8
jne 0x1000203d
mov edi, 1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [esi - 1]
cmp eax, 5
jbe 0x1000202c
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], esi
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, [edi + 0x28]
mov dword [edi + 4], 0x63647561
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x220001
mov dword [edi + 0x10], 0x3320000
mov dword [edi + 0x14], 0x4000000
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.Microsoft_IMA_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.Microsoft_IMA_ADPCM_CODEC
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 edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
mov edi, 2
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
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 0x10001fe5
lea esp, [ebp - 0xc]
mov edi, 8
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret 0x14
test ebx, ebx
je 0x10002660
cmp ebx, 1
je 0x100025f0
mov edi, 8
test byte [0x10004018], 4
je 0x10002031
mov dword [esp + 0x10], ebx
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 0x10002031
mov eax, dword [ebx + 0x10]
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2c]
test eax, 0xffffffcb
je 0x100022c0
test byte [0x10004018], 1
je 0x100022c0
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
mov eax, dword [ebx + 0x2c]
lea esi, [esi]
test al, 0x10
je 0x100022ca
xor eax, eax
mov word [esi + 4], ax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 4], eax
call dword [esi]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
jmp 0x10002031
cmp ebx, 1
je 0x100027a0
cmp ebx, 2
je 0x10002790
test ebx, ebx
je 0x10002720
mov edi, 8
test byte [0x10004018], 4
je 0x10002031
mov dword [esp + 0x10], ebx
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 0x10002031
cmp dword [edi + 0xc], 0xf
jbe 0x10002480
cmp dword [edi + 0x14], 0xf
jbe 0x10002480
mov esi, dword [edi + 0x10]
mov ebx, dword [edi + 8]
movzx eax, word [esi]
cmp word [ebx], ax
je 0x10002480
mov eax, ebx
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x10002480
mov eax, dword [edi + 4]
test eax, 0x20000
jne 0x100023ae
movzx eax, word [ebx + 2]
mov word [esi + 2], ax
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x10]
test eax, 0x40000
jne 0x100023c4
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x10]
test eax, 0x80000
jne 0x100023e7
mov eax, dword [edi + 8]
cmp word [eax], 1
je 0x10002a0d
mov eax, 0x10
mov word [esi + 0xe], ax
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x10]
test eax, 0x10000
jne 0x10002406
mov eax, dword [edi + 8]
cmp word [eax], 1
je 0x10002a21
mov ecx, 1
mov word [esi], cx
mov esi, dword [edi + 0x10]
movzx eax, word [esi]
cmp ax, 1
je 0x10002889
cmp ax, 0x11
jne 0x10002480
cmp dword [edi + 0x14], 0x13
jbe 0x10002480
mov eax, esi
call dbg.init_wfx_ima_adpcm
test byte [0x10004018], 8
jne 0x10002ad0
mov eax, dword [edi + 0x10]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
sete al
movzx eax, al
shl eax, 9
mov edi, eax
jmp 0x10002031
test byte [edi + 0x18], 2
jne 0x10002bdc
mov eax, dword [edi + 4]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x10002480
mov eax, dword [edi + 8]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
jne 0x10002560
lea esi, [esi]
nop
mov edi, 0x200
jmp 0x10002031
mov edx, dword [edi + 0x20]
mov dword [esp + 4], 0
xor edi, edi
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 0x10002031
mov eax, dword [ebx + 4]
test eax, eax
je 0x100026c0
cmp eax, 1
jne 0x10002618
mov ecx, dword [edi + 4]
movzx eax, word [ecx]
cmp ax, 1
je 0x100028c4
cmp ax, 0x11
jne case.0x10002000.24596
mov eax, dword [edi + 8]
mov edi, 8
cmp word [eax], 1
jne 0x10002031
movzx esi, word [eax + 0xc]
movzx eax, word [ecx + 0x12]
xor edx, edx
mov edi, dword [ebx + 0xc]
imul esi, eax
mov eax, edi
div esi
cmp edi, esi
jb 0x10002480
movzx edx, word [ecx + 0xc]
xor edi, edi
imul edx, eax
mov dword [ebx + 8], edx
jmp 0x10002031
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Wine_Driver
mov dword [esp + 4], str.MSACM_IMA_ADPCM_filter__
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxA]
sub esp, 0x10
jmp 0x1000202c
mov dword [esp + 8], 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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10002bd2
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
movzx edx, word [eax]
cmp dx, 1
je 0x100027c0
cmp dx, 0x11
jne 0x100025b8
mov edx, dword [edi + 8]
cmp word [edx], 1
je 0x10002a31
mov dword [esp + 8], ebx
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
mov edi, 8
sub esp, 0xc
jmp 0x10002031
mov eax, dword [edi + 0x10]
call dbg.ADPCM_GetFormatIndex
cmp eax, 0xffffffff
je 0x10002480
xor eax, eax
mov dword [edi + 0xc], 1
mov word [edi + 0x18], ax
xor edi, edi
jmp 0x10002031
mov edi, 8
test byte [0x10004018], 4
je 0x10002031
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 0x10002031
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 8]
mov word [eax], dx
mov eax, dword [edi + 8]
cmp eax, 1
je 0x100029a1
cmp eax, 0x11
je 0x10002950
mov edi, 0xb
test byte [0x10004018], 4
je 0x10002031
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 0x10002031
mov ecx, dword [edi + 4]
movzx eax, word [ecx]
cmp ax, 1
je 0x10002902
cmp ax, 0x11
jne case.0x10002000.24596
mov esi, dword [edi + 8]
mov edi, 8
cmp word [esi], 1
jne 0x10002031
movzx edi, word [ecx + 0xc]
mov eax, dword [ebx + 8]
xor edx, edx
div edi
cmp dword [ebx + 8], edi
jb 0x10002480
cmp edx, 1
movzx ecx, word [ecx + 0x12]
sbb eax, 0xffffffff
xor edi, edi
mov edx, eax
movzx eax, word [esi + 0xc]
imul eax, ecx
imul eax, edx
mov dword [ebx + 0xc], eax
jmp 0x10002031
cmp dword [edi + 4], 1
ja 0x10002480
mov eax, dword [edi + 4]
mov dword [edi + 0x10], 1
test eax, eax
je 0x10002848
cmp eax, 1
jne case.0x10002000.24577
mov ebx, str.IMA_ADPCM
lea edx, [edi + 0x18]
mov eax, 0x49
mov dword [edi + 8], 0x11
mov dword [edi + 0xc], 0x14
sub ebx, edi
mov dword [edi + 0x14], 8
jmp 0x10002777
movzx eax, word [edx + ebx - 0x16]
mov edx, ecx
mov word [edx], ax
lea ecx, [edx + 2]
test ax, ax
jne 0x10002770
xor edi, edi
jmp 0x1000218a
mov eax, dword [edi + 8]
test eax, eax
jne 0x100027a3
mov dword [edi + 4], 1
jmp 0x1000272a
mov eax, dword [edi + 8]
cmp eax, 1
je 0x100028b8
cmp eax, 0x11
je 0x10002797
jmp 0x10002480
mov edx, dword [edi + 8]
cmp word [edx], 0x11
jne 0x100025b8
mov ecx, dword [edx + 4]
cmp dword [eax + 4], ecx
jne 0x100025b8
movzx ecx, word [edx + 2]
cmp word [eax + 2], cx
jne 0x100025b8
cmp word [eax + 0xe], 0x10
jne 0x100025b8
movzx esi, word [edx + 0x12]
test byte [0x10004018], 8
jne 0x10002b04
lea eax, [esi - 1]
test al, 3
jne 0x100025b8
mov edx, dword [edi + 8]
shr eax, 1
add eax, 4
movzx ecx, word [edx + 2]
movzx edx, word [edx + 0xc]
imul eax, ecx
cmp eax, edx
jb 0x100025b8
mov eax, dword [edi + 4]
cmp word [eax + 0xe], 0x10
je 0x10002b31
xor edx, edx
xor edi, edi
mov word [ebx + 4], dx
jmp 0x10002031
mov ebx, 0x100060da
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 0x10002877
movzx eax, word [ecx + ebx - 0x18]
mov edx, ecx
mov word [edx], ax
lea ecx, [edx + 2]
test ax, ax
jne 0x10002870
xor edi, edi
jmp 0x1000218a
cmp dword [edi + 0xc], 0x13
jbe 0x10002480
movzx edx, word [esi + 0xe]
movzx eax, word [esi + 2]
imul eax, edx
sar eax, 3
mov word [esi + 0xc], ax
mov eax, dword [edi + 0x10]
movzx edx, word [eax + 0xc]
imul edx, dword [eax + 4]
mov dword [eax + 8], edx
jmp 0x10002433
mov dword [edi + 4], 0
jmp 0x1000272a
mov esi, dword [edi + 8]
mov edi, 8
cmp word [esi], 0x11
jne 0x10002031
movzx edi, word [esi + 0xc]
mov eax, dword [ebx + 0xc]
xor edx, edx
div edi
cmp dword [ebx + 0xc], edi
jb 0x10002480
movzx edx, word [ecx + 0xc]
movzx ecx, word [esi + 0x12]
xor edi, edi
imul edx, ecx
imul edx, eax
mov dword [ebx + 8], edx
jmp 0x10002031
mov esi, dword [edi + 8]
mov edi, 8
cmp word [esi], 0x11
jne 0x10002031
movzx eax, word [esi + 0x12]
movzx ecx, word [ecx + 0xc]
xor edx, edx
mov edi, dword [ebx + 8]
imul ecx, eax
mov eax, edi
div ecx
cmp edi, ecx
jb 0x10002480
cmp edx, 1
movzx edx, word [esi + 0xc]
sbb eax, 0xffffffff
xor edi, edi
imul eax, edx
mov dword [ebx + 0xc], eax
jmp 0x10002031
mov eax, dword [edi + 4]
cmp eax, 7
ja 0x10002480
lea eax, [eax + eax*2]
mov edx, dword [edi + 0x10]
mov eax, dword [eax*4 + 0x10006560]
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 + 0x10006568]
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 + 0x10006564]
mov word [edx + 0xe], ax
mov eax, dword [edi + 0x10]
call dbg.init_wfx_ima_adpcm
jmp 0x10002601
mov eax, dword [edi + 4]
cmp eax, 0xf
ja 0x10002480
lea eax, [eax + eax*2]
mov edx, dword [edi + 0x10]
mov eax, dword [eax*4 + 0x100065c0]
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 + 0x100065c8]
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 + 0x100065c4]
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 0x10002601
mov eax, 4
mov word [esi + 0xe], ax
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x10]
jmp 0x100023e7
mov ebx, 0x11
mov word [esi], bx
mov esi, dword [edi + 0x10]
jmp 0x10002406
mov ecx, dword [edx + 4]
cmp dword [eax + 4], ecx
jne 0x100025b8
movzx ecx, word [edx + 2]
cmp word [eax + 2], cx
jne 0x100025b8
movzx edx, word [edx + 0xe]
sub edx, 8
test dx, 0xfff7
jne 0x100025b8
movzx esi, word [eax + 0x12]
test byte [0x10004018], 8
jne 0x10002b4e
sub esi, 1
test esi, 3
jne 0x100025b8
mov edx, dword [edi + 4]
mov eax, esi
shr eax, 1
movzx ecx, word [edx + 2]
add eax, 4
movzx edx, word [edx + 0xc]
imul eax, ecx
cmp eax, edx
jb 0x100025b8
mov eax, dword [edi + 8]
cmp word [eax + 0xe], 0x10
je 0x10002b7b
cmp word [eax + 0xe], 8
jne 0x10002837
cmp word [eax + 2], 1
je 0x10002baa
cmp word [eax + 2], 2
jne 0x10002837
jmp 0x100025b8
mov eax, dword [edi + 0x10]
movzx eax, word [eax + 0x12]
mov dword [esp + 0xc], str.setting_spb_u_n
mov dword [esp + 8], str.ADPCM_FormatSuggest
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002433
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.spb_u_n
mov dword [esp + 8], str.ADPCM_StreamOpen
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002803
cmp word [eax + 2], 2
je 0x10002b98
cmp word [eax + 2], 1
jne 0x10002837
mov dword [ebx], dbg.cvtMM16imaK
jmp 0x10002837
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.spb_u_n
mov dword [esp + 8], str.ADPCM_StreamOpen
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002a6e
cmp word [eax + 2], 2
je 0x10002bc0
cmp word [eax + 2], 1
jne 0x10002837
mov dword [ebx], dbg.cvtMMimaK
jmp 0x10002aa8
mov dword [ebx], dbg.cvtSS16imaK
cmp word [eax + 0xe], 0x10
je 0x10002b38
jmp 0x10002837
mov dword [ebx], dbg.cvtMMimaK
cmp word [eax + 0xe], 8
je 0x10002abe
jmp 0x10002837
mov dword [ebx], dbg.cvtSSima16K
cmp word [eax + 0xe], 0x10
je 0x10002b82
jmp 0x10002aa8
mov edi, 7
jmp 0x10002031
mov dword [esp + 8], 0x2d1
mov dword [esp + 4], str..._wine_9.6_dlls_imaadp32.acm_imaadp32.c
mov dword [esp], str.__adsi__fdwOpen__ACM_STREAMOPENF_ASYNC_
call dword [sym.imp.ucrtbase.dll__assert]
nop
nop
nop
nop
nop
nop
nop