Function at 0x6f263230
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 eax, dword [ecx]
mov dword [ebp - 0x2c], eax
test byte [0x6f2664a0], 8
jne 0x6f2634e8
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.6f25f900
test eax, eax
je 0x6f2634d0
mov dword [esp], esi
call sym.winmm.dll_midiStreamStop
mov ebx, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x12
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_PostThreadMessageA]
mov eax, dword [ebx + 0x4c]
sub esp, 0x10
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x20]
sub esp, 4
test eax, eax
je 0x6f263590
mov esi, dword [ebx + 8]
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x24], esi
je 0x6f263518
mov dword [ebp - 0x30], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], 0x3c8
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
movzx eax, word [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x20]
mov dword [esp], eax
call sym.winmm.dll_DriverCallback
mov eax, dword [ebx + 0xc]
sub esp, 0x1c
mov dword [eax + 0x18], 0
lea eax, [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebx + 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x60]
sub esp, 4
test eax, eax
je 0x6f2635e0
mov edx, dword [ebx + 0x5c]
mov esi, dword [ebp - 0x2c]
test edx, edx
je 0x6f263680
lea esi, [esi]
mov ecx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x6f263380
mov edi, dword [ecx]
mov dword [ebp - 0x2c], esi
mov edx, dword [ecx + 8]
test edi, edi
je 0x6f2636d0
cmp dword [edi + 4], ecx
je 0x6f263900
mov dword [edi + 8], edx
test edx, edx
je 0x6f2633b4
lea esi, [esi]
mov dword [edx], edi
mov edi, dword [ecx]
test byte [ecx + 0xc], 1
jne 0x6f263668
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x30], ecx
je 0x6f263422
mov eax, dword [ebx + 0x58]
mov dword [ecx], eax
mov esi, dword [ebx + 0x5c]
mov dword [ecx + 4], esi
mov esi, dword [ebx + 0x60]
mov dword [ecx + 8], esi
mov esi, dword [ebx + 0x64]
mov dword [ecx + 0xc], esi
test eax, eax
je 0x6f2636e0
mov esi, dword [ebp - 0x30]
cmp esi, dword [eax + 4]
je 0x6f2637f8
mov dword [eax + 8], ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x6f263401
mov dword [eax], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x6f263700
mov dword [eax], ecx
cmp dword [ebp - 0x30], edi
je 0x6f2637e0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x6f26361c
test edi, edi
je 0x6f26360d
test edx, edx
je 0x6f263438
test byte [edx + 0xc], 1
jne 0x6f263618
mov eax, dword [edi + 4]
cmp eax, edx
je 0x6f263810
test eax, eax
je 0x6f263a09
mov edx, dword [eax + 0xc]
test dl, 1
jne 0x6f263690
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], esi
test esi, esi
je 0x6f263720
test byte [esi + 0xc], 1
je 0x6f263720
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 4]
and esi, 1
mov dword [ebp - 0x34], esi
mov esi, dword [eax + 0xc]
and esi, 0xfffffffe
mov ecx, esi
mov esi, dword [ebp - 0x34]
or esi, ecx
mov dword [eax + 0xc], esi
and dword [edi + 0xc], 0xfffffffe
mov eax, dword [ebp - 0x30]
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [edi]
test ecx, ecx
je 0x6f263920
cmp dword [ecx + 4], edi
je 0x6f263993
mov eax, dword [0x6f27af4c]
mov dword [ecx + 8], edx
mov esi, dword [edx + 8]
mov dword [edi + 4], esi
test esi, esi
je 0x6f2634bf
mov dword [esi], edi
mov ecx, dword [edi]
mov dword [edx + 8], edi
mov dword [edx], ecx
mov dword [edi], edx
jmp 0x6f263621
lea esp, [ebp - 0x10]
mov eax, 5
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p___n
mov dword [esp + 8], str.midiStreamClose
mov dword [esp + 4], 0x6f2664a0
mov dword [esp], 3
call fcn.6f25fa60
jmp 0x6f263256
test byte [0x6f2664a0], 1
jne 0x6f2635a8
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], 0x3c8
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
movzx eax, word [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x20]
mov dword [esp], eax
call sym.winmm.dll_DriverCallback
sub esp, 0x1c
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.winmm.dll_midiOutClose
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jmp 0x6f26330a
mov dword [ebp - 0x30], edx
mov dword [esp + 0xc], str.leak_from_call_within_function_callback_n
mov dword [esp + 8], str.midiStreamClose
mov dword [esp + 4], 0x6f2664a0
mov dword [esp], 0
call fcn.6f25fa60
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x30]
jmp 0x6f263525
mov edx, dword [ebx + 0x5c]
mov edi, dword [ebx + 0x58]
test edx, edx
je 0x6f263a01
test edi, edi
je 0x6f2636f0
mov eax, dword [ebp - 0x30]
cmp eax, dword [edi + 4]
je 0x6f263800
mov dword [edi + 8], edx
mov ecx, dword [ebp - 0x30]
jmp 0x6f2633b0
test edx, edx
je 0x6f26361c
lea esi, [esi]
and dword [edx + 0xc], 0xfffffffe
mov eax, dword [0x6f27af4c]
test eax, eax
je 0x6f263629
and dword [eax + 0xc], 0xfffffffe
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f26356e
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x30], ecx
jne 0x6f2633ca
jmp 0x6f26361c
mov edi, dword [ebx + 0x58]
mov ecx, dword [ebp - 0x30]
jmp 0x6f26338e
and edx, 0xfffffffe
mov dword [eax + 0xc], edx
mov edx, dword [edi]
or dword [edi + 0xc], 1
test edx, edx
je 0x6f2639ab
cmp dword [edx + 4], edi
je 0x6f2639c7
mov dword [edx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x6f2636be
mov dword [ecx], edi
mov edx, dword [edi]
mov dword [eax + 8], edi
mov dword [eax], edx
mov dword [edi], eax
mov eax, ecx
jmp 0x6f263457
mov dword [0x6f27af4c], edx
jmp 0x6f2633a5
mov dword [0x6f27af4c], ecx
jmp 0x6f2633f8
mov dword [0x6f27af4c], edx
jmp 0x6f263605
cmp dword [ebp - 0x30], edi
jne 0x6f263417
mov edi, dword [ebp - 0x34]
mov eax, dword [0x6f27af4c]
test edi, edi
jne 0x6f263621
mov edi, ecx
jmp 0x6f26342a
mov edx, dword [eax + 8]
test edx, edx
je 0x6f2637c8
test byte [edx + 0xc], 1
je 0x6f2637c8
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x6f263908
mov ecx, dword [eax]
and dword [edx + 0xc], 0xfffffffe
or dword [eax + 0xc], 1
test ecx, ecx
je 0x6f2639a0
cmp eax, dword [ecx + 4]
je 0x6f2639b5
mov dword [ecx + 8], edx
mov esi, dword [edx + 4]
mov dword [eax + 8], esi
test esi, esi
je 0x6f26376c
mov dword [esi], eax
mov ecx, dword [eax]
movd xmm0, ecx
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [edx], xmm0
mov dword [eax], edx
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov esi, dword [edx + 0xc]
mov ecx, dword [edx + 4]
and eax, 1
and esi, 0xfffffffe
or eax, esi
mov dword [ebp - 0x30], ecx
mov dword [edx + 0xc], eax
and dword [edi + 0xc], 0xfffffffe
test ecx, ecx
jne 0x6f26348f
jmp 0x6f263496
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x6f2637c8
test byte [ecx + 0xc], 1
jne 0x6f263885
lea esi, [esi]
or dword [eax + 0xc], 1
mov edx, edi
mov eax, dword [edi]
test eax, eax
je 0x6f263618
mov edi, eax
jmp 0x6f26342e
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x6f26361c
mov edi, ecx
jmp 0x6f26342a
mov dword [eax + 4], ecx
jmp 0x6f2633f8
mov dword [edi + 4], edx
jmp 0x6f263605
mov eax, dword [edi + 8]
test eax, eax
je 0x6f263a09
mov edx, dword [eax + 0xc]
test dl, 1
je 0x6f263865
and edx, 0xfffffffe
mov dword [eax + 0xc], edx
mov edx, dword [edi]
or dword [edi + 0xc], 1
test edx, edx
je 0x6f2639e7
cmp dword [edx + 4], edi
je 0x6f2639f9
mov dword [edx + 8], eax
mov ecx, dword [eax + 4]
mov dword [edi + 8], ecx
test ecx, ecx
je 0x6f263851
mov dword [ecx], edi
mov edx, dword [edi]
movd xmm0, edx
movd xmm3, edi
punpckldq xmm0, xmm3
movq qword [eax], xmm0
mov dword [edi], eax
mov eax, ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x6f2637b0
test byte [edx + 0xc], 1
je 0x6f2637b0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x6f263930
test byte [ecx + 0xc], 1
je 0x6f263930
mov esi, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x30], esi
mov esi, dword [eax + 0xc]
and edx, 1
and esi, 0xfffffffe
or edx, esi
mov dword [eax + 0xc], edx
and dword [edi + 0xc], 0xfffffffe
and dword [ecx + 0xc], 0xfffffffe
mov edx, dword [edi]
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x6f2639bd
cmp dword [edx + 4], edi
je 0x6f2639cf
mov dword [edx + 8], eax
mov eax, dword [0x6f27af4c]
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi + 4]
mov dword [edi + 8], ecx
test ecx, ecx
je 0x6f2638dd
mov dword [ecx], edi
mov edx, dword [edi]
mov esi, dword [ebp - 0x30]
movd xmm0, edx
movd xmm2, edi
punpckldq xmm0, xmm2
movq qword [esi], xmm0
mov dword [edi], esi
jmp 0x6f263621
mov dword [edi + 4], edx
jmp 0x6f2633a5
mov esi, dword [ebp - 0x30]
test byte [esi + 0xc], 1
je 0x6f263740
jmp 0x6f26346f
mov dword [0x6f27af4c], edx
mov eax, edx
jmp 0x6f2634b1
mov ecx, dword [eax]
and dword [edx + 0xc], 0xfffffffe
or dword [eax + 0xc], 1
test ecx, ecx
je 0x6f2639dc
cmp eax, dword [ecx + 4]
je 0x6f2639f1
mov dword [ecx + 8], edx
mov esi, dword [edx + 8]
mov dword [eax + 4], esi
test esi, esi
je 0x6f26395c
mov dword [esi], eax
mov ecx, dword [eax]
mov dword [edx + 8], eax
mov esi, dword [edi + 8]
mov dword [edx], ecx
mov dword [eax], edx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], esi
mov ecx, dword [esi + 8]
mov edx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0xc]
and edx, 0xfffffffe
and eax, 1
or edx, eax
mov dword [esi + 0xc], edx
and dword [edi + 0xc], 0xfffffffe
test ecx, ecx
jne 0x6f2638aa
jmp 0x6f2638ae
mov eax, dword [0x6f27af4c]
mov dword [ecx + 4], edx
jmp 0x6f2634b1
mov dword [0x6f27af4c], edx
jmp 0x6f26375e
mov dword [0x6f27af4c], eax
jmp 0x6f2636b0
mov dword [ecx + 4], edx
jmp 0x6f26375e
mov dword [0x6f27af4c], eax
jmp 0x6f2638cc
mov dword [edx + 4], eax
jmp 0x6f2636b0
mov dword [edx + 4], eax
mov eax, dword [0x6f27af4c]
jmp 0x6f2638cc
mov dword [0x6f27af4c], edx
jmp 0x6f26394e
mov dword [0x6f27af4c], eax
jmp 0x6f263843
mov dword [ecx + 4], edx
jmp 0x6f26394e
mov dword [edx + 4], eax
jmp 0x6f263843
mov ecx, dword [ebp - 0x30]
jmp 0x6f26338e
mov eax, dword [4]
ud2