Function at 0x6f259b30
Capabilities:
Create thread
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
mov ebx, ecx
push ecx
sub esp, 0x58
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
test byte [0x6f266648], 8
jne 0x6f259ee8
mov ecx, dword [ebp - 0x2c]
cmp esi, 1
setne dl
test ecx, ecx
sete al
or dl, al
jne 0x6f259ed0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x6f259ed0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._WINMM_CheckCallback
mov edi, eax
test eax, eax
je 0x6f259bb8
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x1c], 1
lea esi, [ebp - 0x1c]
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
cmp dword [ebp - 0x1c], 0xffffffff
je 0x6f259c1a
lea esi, [esi]
nop
mov edi, dword [0x6f270488]
test edi, edi
jne 0x6f259bfd
jmp 0x6f259c38
mov eax, dword [edi + 4]
cmovns eax, dword [edi + 8]
mov edi, eax
test eax, eax
je 0x6f259c38
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [0x6f270484]
test eax, eax
jne 0x6f259bf0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x6f259be0
mov dword [esp], 0x6f266580
mov edi, 7
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f259ba2
cmp dword [ebp - 0x1c], 0xffffffff
je 0x6f259c1a
mov dword [esp + 8], 0x68
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 0x6f259c1a
mov eax, dword [ebp - 0x1c]
mov edi, dword [0x6f270488]
mov dword [esi + 0x54], eax
test edi, edi
je 0x6f25a138
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov ebx, eax
jmp 0x6f259ca5
lea ecx, [edi + 4]
lea edx, [edi + 8]
cmovs edx, ecx
mov eax, dword [edx]
test eax, eax
je 0x6f259f38
mov edi, eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [0x6f270484]
test eax, eax
jne 0x6f259c90
mov ebx, dword [ebp - 0x38]
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, 0x402
mov edi, dword [esi + 0x54]
mov dword [esi + 0x24], 0x7a120
mov word [esi + 0x4a], ax
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov dword [esi + 0x28], 0x18
mov eax, dword [eax]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x10]
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp], 0x38
call sym._MMDRV_Alloc
mov ecx, dword [ebp - 0x1c]
mov edx, eax
test eax, eax
je 0x6f25a0ad
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x30], edi
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x28], 0
mov dword [edx + 0x24], eax
movzx eax, word [ebp - 0x38]
mov dword [edx + 0x2c], 1
mov word [edx + 0x34], ax
mov eax, dword [ebp - 0x30]
mov dword [esi], ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax]
mov dword [ebp - 0x34], edx
mov dword [edx], eax
lea eax, [edx + 0x1c]
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 3
call sym._MMDRV_Open
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
test eax, eax
mov edi, eax
jne 0x6f259fab
lea eax, [esi + 0xc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [esi + 0xc]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_winmm_winmm.c:_WINMM_MidiStream.lock
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x4c], eax
movzx eax, word [ebx + 0x16]
sub esp, 0x10
mov word [esi + 0x48], ax
lea eax, [esi + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], sym._MMSYSTEM_MidiStream_Player_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
mov dword [esi + 4], eax
je 0x6f25a0db
mov dword [ebp - 0x34], edx
mov dword [esp + 4], 0xf
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x34]
sub esp, 8
test byte [0x6f266648], 8
jne 0x6f25a00a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], 0x3c7
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 8], eax
movzx eax, word [esi + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x20]
mov dword [esp], eax
call sym.winmm.dll_DriverCallback
mov eax, edi
sub esp, 0x1c
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
lea esp, [ebp - 0x10]
mov edi, 0xb
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.__p___p___ld__0x_08Ix__0x_08Ix__0x_08lx___n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], str.midiStreamOpen
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6f266648
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x6f259b61
mov ebx, dword [ebp - 0x38]
lea eax, [esi + 0x58]
mov dword [esi + 0x58], edi
mov ecx, eax
mov dword [esi + 0x64], 1
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [edx], eax
mov eax, dword [esi + 0x58]
mov edx, ecx
test eax, eax
je 0x6f259f9d
test byte [eax + 0xc], 1
je 0x6f259f9d
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
cmp edi, eax
je 0x6f259fe0
test edi, edi
je 0x6f25a05d
test byte [edi + 0xc], 1
je 0x6f25a05d
xor dword [ecx + 0xc], 1
xor dword [edi + 0xc], 1
mov eax, dword [ecx + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
mov eax, dword [edx]
test eax, eax
jne 0x6f259f63
mov eax, dword [0x6f270488]
and dword [eax + 0xc], 0xfffffffe
jmp 0x6f259cb9
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym._MMDRV_Free
mov dword [esp + 8], 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
jmp 0x6f259ba2
mov edi, dword [ecx + 8]
test edi, edi
je 0x6f25a0f0
test byte [edi + 0xc], 1
je 0x6f25a0f0
xor dword [ecx + 0xc], 1
xor dword [eax + 0xc], 1
mov eax, dword [ecx + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
jmp 0x6f259f97
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov eax, dword [eax]
mov dword [ebp - 0x30], edx
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], str.____u__d__hMidi_p_ret_d_lpMidiStrm_p_n
mov dword [esp + 8], str.midiStreamOpen
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6f266648
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov edx, dword [ebp - 0x30]
jmp 0x6f259e83
mov edi, dword [eax + 4]
cmp edx, edi
je 0x6f25a153
mov edi, dword [edx]
and dword [edi + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, dword [eax + 8]
test edi, edi
je 0x6f25a148
cmp eax, dword [edi + 4]
je 0x6f25a172
mov dword [edi + 8], ecx
mov edi, dword [ecx + 4]
mov dword [eax + 8], edi
test edi, edi
je 0x6f25a09f
mov dword [edi], eax
mov dword [ecx + 4], eax
mov edi, dword [eax]
mov dword [ecx], edi
mov dword [eax], ecx
jmp 0x6f259f97
mov dword [esp + 8], esi
mov edi, 7
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
jmp 0x6f259ba2
mov dword [esp], ecx
mov edi, 7
call sym.winmm.dll_midiStreamClose
sub esp, 4
jmp 0x6f259ba2
mov edi, dword [eax + 8]
cmp edx, edi
je 0x6f25a187
mov edi, dword [edx]
and dword [edi + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
test edi, edi
je 0x6f25a17f
cmp eax, dword [edi + 4]
je 0x6f25a17a
mov dword [edi + 8], ecx
mov edi, dword [ecx + 8]
mov dword [eax + 4], edi
test edi, edi
je 0x6f25a12a
mov dword [edi], eax
mov dword [ecx + 8], eax
mov edi, dword [eax]
mov dword [ecx], edi
mov dword [eax], ecx
jmp 0x6f259f97
lea eax, [ebp - 0x1c]
mov edx, 0x6f270488
mov dword [ebp - 0x34], eax
jmp 0x6f259f3b
mov dword [0x6f270488], ecx
jmp 0x6f25a093
mov dword [ecx + 8], edi
mov edx, dword [edi + 8]
mov dword [eax + 4], edx
test edx, edx
je 0x6f25a162
mov dword [edx], eax
mov dword [edi + 8], eax
mov edx, dword [eax]
mov dword [edi], edx
mov edx, eax
mov dword [eax], edi
jmp 0x6f25a06a
mov dword [edi + 4], ecx
jmp 0x6f25a093
mov dword [edi + 4], ecx
jmp 0x6f25a11e
mov dword [0x6f270488], ecx
jmp 0x6f25a11e
mov dword [ecx + 4], edi
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
test edx, edx
je 0x6f25a196
mov dword [edx], eax
mov dword [edi + 4], eax
mov edx, dword [eax]
mov dword [edi], edx
mov edx, eax
mov dword [eax], edi
jmp 0x6f25a0fd