Function at 0x6f263a10
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 [0x6f2664a0], 8
jne 0x6f263de8
mov ecx, dword [ebp - 0x2c]
cmp esi, 1
setne al
test ecx, ecx
sete dl
or al, dl
jne 0x6f263dd0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x6f263dd0
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 fcn.6f260140
mov edi, eax
test eax, eax
je 0x6f263a98
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
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
cmp dword [ebp - 0x1c], 0xffffffff
je 0x6f263afc
lea esi, [ebp - 0x1c]
lea esi, [esi]
nop
mov edi, dword [0x6f27af4c]
test edi, edi
jne 0x6f263add
jmp 0x6f263b20
mov eax, dword [edi + 4]
cmovns eax, dword [edi + 8]
mov edi, eax
test eax, eax
je 0x6f263b20
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [0x6f27af48]
test eax, eax
jne 0x6f263ad0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x6f263ac0
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov edi, 7
jmp 0x6f263a82
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x6f263afc
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 0x6f263afc
mov eax, dword [ebp - 0x1c]
mov edi, dword [0x6f27af4c]
mov dword [esi + 0x54], eax
test edi, edi
je 0x6f263ffb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov ebx, eax
jmp 0x6f263b95
lea ecx, [edi + 4]
lea edx, [edi + 8]
cmovs edx, ecx
mov eax, dword [edx]
test eax, eax
je 0x6f263e38
mov edi, eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [0x6f27af48]
test eax, eax
jne 0x6f263b80
mov ebx, dword [ebp - 0x38]
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, 0x7a120
mov edx, 0x18
mov edi, dword [esi + 0x54]
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], eax
mov eax, 0x402
mov word [esi + 0x4a], ax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x28], edx
mov dword [esi + 0x34], 0
mov dword [esi + 0x40], 0
mov ecx, dword [eax]
lea eax, [ebx + 0x10]
mov dword [esi + 0x44], 0
mov dword [ebp - 0x38], ecx
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], 3
mov dword [esp], 0x38
mov dword [esp + 8], ecx
call fcn.6f247270
mov ecx, dword [ebp - 0x1c]
mov edx, eax
test eax, eax
je 0x6f263ef6
mov dword [eax + 0x30], edi
movd xmm1, dword [ebx + 0x10]
movzx edi, word [ebp - 0x38]
mov dword [eax + 0x1c], ecx
movd xmm0, dword [ebx + 0xc]
mov dword [ebp - 0x38], ecx
punpckldq xmm0, xmm1
movq qword [eax + 0x20], xmm0
movq xmm0, qword [0x6f26fac8]
mov word [eax + 0x34], di
mov edi, dword [ebp - 0x30]
movq qword [eax + 0x28], xmm0
mov eax, dword [ebp - 0x2c]
mov dword [esi], ecx
mov dword [edi], ecx
mov eax, dword [eax]
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
mov dword [ebp - 0x34], edx
call fcn.6f247500
mov edx, dword [ebp - 0x34]
test eax, eax
mov ecx, dword [ebp - 0x38]
mov edi, eax
jne 0x6f263ec1
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._Users_gcenx_Documents_GitHub_wineskincx_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], 0x6f2613d0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp - 0x34]
sub esp, 0x18
test eax, eax
mov ecx, dword [ebp - 0x38]
mov dword [esi + 4], eax
je 0x6f263feb
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 [0x6f2664a0], 8
jne 0x6f263f45
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 + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], str.__p___p___ld__0x_08Ix__0x_08Ix__0x_08lx___n
mov dword [esp + 8], str.midiStreamOpen
mov dword [esp + 4], 0x6f2664a0
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.6f25fa60
jmp 0x6f263a41
mov ebx, dword [ebp - 0x38]
lea ecx, [esi + 0x58]
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], 1
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [edx], ecx
mov edi, dword [esi + 0x58]
test edi, edi
je 0x6f263ea3
mov dword [ebp - 0x38], esi
test byte [edi + 0xc], 1
je 0x6f263ea0
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov esi, eax
cmp edx, edi
je 0x6f263f1f
test edx, edx
je 0x6f263f98
test byte [edx + 0xc], 1
je 0x6f263f98
xor dword [eax + 0xc], 1
xor dword [edx + 0xc], 1
mov edx, dword [eax + 8]
xor dword [edx + 0xc], 1
mov ecx, eax
mov edi, dword [ecx]
test edi, edi
jne 0x6f263e62
mov esi, dword [ebp - 0x38]
mov eax, dword [0x6f27af4c]
and dword [eax + 0xc], 0xfffffffe
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f263bb9
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.6f247420
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 0x6f263a82
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 0x6f263b0c
mov edx, dword [eax + 8]
test edx, edx
je 0x6f26400b
test byte [edx + 0xc], 1
je 0x6f26400b
xor dword [eax + 0xc], 1
xor dword [edi + 0xc], 1
xor dword [edx + 0xc], 1
jmp 0x6f263e98
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [ebp - 0x30], 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 + 4], 0x6f2664a0
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.6f25fa60
mov edx, dword [ebp - 0x30]
jmp 0x6f263d7b
cmp dword [edi + 4], ecx
je 0x6f26405e
mov eax, dword [ecx]
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [eax]
mov edx, dword [eax]
or dword [eax + 0xc], 1
mov esi, dword [eax + 8]
test edx, edx
je 0x6f26404b
cmp eax, dword [edx + 4]
je 0x6f264056
mov dword [edx + 8], esi
mov edi, dword [esi + 4]
mov dword [eax + 8], edi
test edi, edi
je 0x6f263fd4
mov dword [edi], eax
mov edx, dword [eax]
movd xmm0, edx
movd xmm3, eax
punpckldq xmm0, xmm3
movq qword [esi], xmm0
mov dword [eax], esi
jmp 0x6f263e9a
mov dword [esp], ecx
call sym.winmm.dll_midiStreamClose
sub esp, 4
jmp 0x6f263b0c
lea eax, [ebp - 0x1c]
mov edx, 0x6f27af4c
mov dword [ebp - 0x34], eax
jmp 0x6f263e3b
cmp dword [edi + 8], ecx
je 0x6f26407f
mov eax, dword [ecx]
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [eax]
mov esi, dword [eax]
or dword [eax + 0xc], 1
mov edx, dword [eax + 4]
test esi, esi
je 0x6f2640b0
cmp eax, dword [esi + 4]
je 0x6f2640ab
mov dword [esi + 8], edx
mov edi, dword [edx + 8]
mov dword [eax + 4], edi
test edi, edi
je 0x6f26403f
mov dword [edi], eax
mov esi, dword [eax]
mov dword [edx + 8], eax
mov dword [edx], esi
mov dword [eax], edx
jmp 0x6f263e9a
mov dword [0x6f27af4c], esi
jmp 0x6f263fc6
mov dword [edx + 4], esi
jmp 0x6f263fc6
mov dword [eax + 8], ecx
mov eax, dword [ecx + 8]
mov dword [edi + 4], eax
test eax, eax
je 0x6f26406f
mov dword [eax], edi
mov esi, dword [edi]
mov dword [ecx + 8], edi
mov eax, ecx
mov dword [ecx], esi
mov dword [edi], ecx
mov ecx, edi
jmp 0x6f263fa3
mov dword [eax + 4], ecx
mov edx, dword [ecx + 4]
mov dword [edi + 8], edx
test edx, edx
je 0x6f264090
mov dword [edx], edi
mov eax, dword [edi]
movd xmm0, eax
movd xmm2, edi
mov eax, ecx
punpckldq xmm0, xmm2
movq qword [ecx], xmm0
mov dword [edi], ecx
mov ecx, edi
jmp 0x6f264012
mov dword [esi + 4], edx
jmp 0x6f264031
mov dword [0x6f27af4c], edx
jmp 0x6f264031