Function at 0x6f254a50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get ntdll base address
Get process heap flags
Get process heap force 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 ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
test byte [0x6f2665a8], 8
jne 0x6f254ae0
cmp ebx, 0x7ff
jbe case.0x6f254a8e.2052
lea ecx, [ebx - 0x803]
cmp ecx, 0x78
ja case.0x6f254a8e.2069
jmp dword [ecx*4 + 0x6f273e28]
test esi, 0xf0000
je case.0x6f254a8e.2052
test byte [0x6f2665a8], 1
jne 0x6f255188
lea esi, [esi]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, ebx
call sym._MCI_MessageToString
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__08x___s___08Ix___08Ix__n
mov dword [esp + 8], str.mciSendCommandA
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f254a7b
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x6f2550f7
test esi, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
jne 0x6f255218
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], ecx
call sym._MCI_strdupAtoW
mov edx, dword [ebp - 0x24]
cmp ebx, 0x813
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], eax
je 0x6f255240
cmp ebx, 0x850
je 0x6f255240
cmp ebx, 0x870
je 0x6f254bb2
cmp ebx, 0x87b
jne 0x6f254c8e
test esi, 0x20000
jne 0x6f25524c
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword fs:[0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x6f254acc
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x6f2550f7
test esi, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
jne 0x6f255208
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
call sym._MCI_strdupAtoW
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [esp], eax
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
cmp ebx, 0x813
ja 0x6f255140
cmp ebx, 0x802
jbe case.0x6f254cd4.1
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
ja case.0x6f254cd4.1
jmp dword [ecx*4 + 0x6f27400c]
mov dword [esp + 8], 0x20
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 ecx, eax
test eax, eax
je 0x6f2550f7
mov dword [eax], edi
test esi, 1
je 0x6f254d1c
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, esi
and eax, 0x2000
mov dword [ebp - 0x24], eax
je 0x6f254d3a
mov eax, dword [edi + 8]
test esi, 0x1000
je 0x6f2552e0
mov dword [ecx + 0xc], eax
mov eax, esi
and eax, 0x200
mov dword [ebp - 0x28], eax
je 0x6f254d58
mov eax, dword [edi + 0xc]
test esi, 0x800
je 0x6f2552c8
mov dword [ecx + 0x10], eax
mov eax, esi
and eax, 0x400
mov dword [ebp - 0x2c], eax
jne 0x6f255228
mov eax, esi
shr eax, 0x10
je 0x6f254d7b
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x1c]
lea ebx, [ecx + 4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x803
mov dword [esp], eax
mov dword [ebp - 0x20], ebx
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 4]
lea edx, [eax - 4]
mov eax, dword [eax - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6f254dc3
test esi, 0x1000
je 0x6f2553f3
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x6f254dd6
and esi, 0x800
je 0x6f255372
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x6f255340
mov dword [esp + 8], edx
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 0x6f254acc
test esi, 0x80000
je case.0x6f254a8e.2052
mov dword [esp + 8], 0x10
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
test eax, eax
je 0x6f2550f7
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xc]
call sym._MCI_strdupAtoW
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
test esi, 1
je 0x6f254e66
mov eax, dword [edi]
mov dword [ecx], eax
test esi, 0x10000
je 0x6f254e74
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
test esi, 0x40000
je 0x6f254e82
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x841
mov dword [esp], eax
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x20]
mov esi, dword fs:[0x18]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x20]
sub esp, 0xc
jmp 0x6f254c0d
test esi, 0xc00
je case.0x6f254a8e.2052
mov dword [esp + 8], 0x18
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x6f2550f7
mov dword [eax], edi
test esi, 1
lea eax, [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
je 0x6f254f32
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], ecx
mov ebx, dword fs:[0x18]
mov dword [ecx + 0xc], eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x810
mov dword [esp], eax
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x20]
lea ebx, [eax - 4]
test edi, edi
je 0x6f2553a4
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword fs:[0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
jmp 0x6f2550e4
mov dword [esp + 8], 0x14
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x6f2550f7
test esi, 1
mov dword [eax], edi
mov edx, dword [ebp - 0x20]
je 0x6f25502e
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], ecx
mov ebx, dword fs:[0x18]
mov dword [ecx + 0xc], eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 8], eax
test esi, 0x20000
je 0x6f25506e
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ecx + 4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x80a
mov dword [esp], eax
mov dword [ebp - 0x20], ebx
call sym.winmm.dll_mciSendCommandW
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x20]
sub eax, 4
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x6f2552f0
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x20], edx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x6f254acc
mov edi, 0x108
test byte [0x6f2665a8], 1
je 0x6f254acc
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.message__04x_mapping_failed_n
mov dword [esp + 8], str.mciSendCommandA
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f254acc
cmp ebx, 0x850
je case.0x6f254cd4.16
jbe 0x6f255168
cmp ebx, 0x870
je case.0x6f254cd4.16
cmp ebx, 0x87b
jne case.0x6f254cd4.1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x6f254bdd
cmp ebx, 0x841
jne case.0x6f254cd4.1
and esi, 0x80000
je 0x6f254acc
jmp 0x6f254ea2
mov eax, ebx
call sym._MCI_MessageToString
mov dword [esp + 0xc], str.Message__s_needs_translation_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MCI_MapMsgAtoW
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp case.0x6f254a8e.2052
test byte [0x6f2665a8], 1
je 0x6f254acc
mov eax, ebx
call sym._MCI_MessageToString
mov dword [esp + 0xc], str.Message__s_needs_unmapping_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MCI_UnmapMsgAtoW
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f254acc
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x6f254c77
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x6f254b72
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], ecx
call sym._MCI_strdupAtoW
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x14], eax
jmp 0x6f254d68
test esi, 0x10000
je 0x6f254b9e
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 0x14], eax
jmp 0x6f254c8e
mov eax, dword [ebp - 0x20]
mov esi, dword fs:[0x18]
mov eax, dword [eax + 4]
jmp 0x6f254eaf
and esi, 0xc00
je 0x6f254acc
jmp 0x6f254f93
mov ebx, dword [ebp - 0x20]
jmp 0x6f255094
mov eax, esi
mov ebx, dword [ebp - 0x20]
and eax, 0x2000
mov dword [ebp - 0x24], eax
mov eax, esi
and eax, 0x200
mov dword [ebp - 0x28], eax
mov eax, esi
and eax, 0x400
mov dword [ebp - 0x2c], eax
jmp 0x6f254da1
mov dword [ebp - 0x20], ecx
call sym._MCI_strdupAtoW
mov ecx, dword [ebp - 0x20]
jmp 0x6f254d55
mov dword [ebp - 0x20], ecx
call sym._MCI_strdupAtoW
mov ecx, dword [ebp - 0x20]
jmp 0x6f254d37
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x6f2550a5
mov ecx, dword [ebx + 0x10]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
jmp 0x6f254de1
mov ecx, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
jmp 0x6f254dd6
mov esi, eax
mov eax, dword [eax - 4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x6f254fa1
mov ecx, dword [ebx + 8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
jmp 0x6f254dc3