Function at 0x6f245fc0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov ebx, dword [0x6f266658]
test ebx, ebx
je 0x6f246186
test byte [0x6f2665a8], 8
jne 0x6f24614f
mov eax, 0x6f2663c8
xor ebx, ebx
jmp 0x6f245ffd
inc ebx
add eax, 0x14
cmp ebx, 0x14
je 0x6f246140
mov ecx, dword [eax]
test ecx, ecx
jne 0x6f245ff0
lea edi, [ebx + ebx*4]
mov dword [esp], esi
shl edi, 2
lea ecx, [edi + 0x6f2663c0]
mov dword [edi + 0x6f2663c0], edx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.kernel32.dll_LockResource]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
mov dword [ecx + 4], esi
mov esi, ebx
mov dword [ecx + 8], eax
test byte [0x6f2665a8], 8
jne 0x6f2461a2
lea eax, [ebx + ebx*4]
xor ecx, ecx
mov edx, dword [eax*4 + 0x6f2663c8]
cmp word [edx], 0
je 0x6f246073
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x6f246050
sub eax, edx
add eax, 2
add edx, eax
movzx eax, word [edx + 4]
add edx, 6
test ax, ax
jne 0x6f246090
inc ecx
cmp word [edx], 0
jne 0x6f24604e
mov eax, 2
add edx, eax
movzx eax, word [edx + 4]
add edx, 6
test ax, ax
je 0x6f24606c
lea esi, [esi]
lea esi, [esi]
cmp ax, 6
jne 0x6f246048
movzx edi, cx
mov dword [esp + 4], 0
lea edx, [edi*4]
mov dword [esp + 8], edx
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]
mov ecx, eax
lea eax, [ebx + ebx*4]
sub esp, 0xc
xor ebx, ebx
lea eax, [eax*4 + 0x6f2663c0]
mov edx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], edi
cmp word [edx], 0
je 0x6f24611b
lea esi, [esi]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6f2460f0
sub eax, edx
add eax, 2
add eax, edx
movzx edi, word [eax + 4]
add eax, 6
test di, di
jne 0x6f246130
movzx edi, bx
inc ebx
mov dword [ecx + edi*4], edx
mov edx, eax
cmp word [edx], 0
jne 0x6f2460e8
mov eax, 2
add eax, edx
movzx edi, word [eax + 4]
add eax, 6
test di, di
je 0x6f24610c
nop
cmp di, 6
jne 0x6f246113
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov esi, 0xffff
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x6f2732c7
mov dword [esp + 8], str.MCI_SetCommandTable
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x1c]
jmp 0x6f245fe6
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [0x6f266658], 1
call sym._MCI_GetCommandTable
mov edx, dword [ebp - 0x1c]
jmp 0x6f245fd9
mov dword [esp], 0x6f2665a8
call sym.___wine_dbg_get_channel_flags
mov ecx, dword [ebp - 0x1c]
test al, 8
je 0x6f24603c
test byte [0x6f2665a8], 8
jne 0x6f246388
lea eax, [ebx + ebx*4]
mov eax, dword [eax*4 + 0x6f2663c8]
test eax, eax
je case.0x6f2463e7.0
mov dword [ebp - 0x28], 0
mov edi, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
movzx edx, word [edi]
inc dword [ebp - 0x1c]
test dx, dx
je 0x6f2463d0
mov eax, dword [ebp - 0x20]
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x6f246200
mov ecx, dword [edi + 2]
mov dword [ebp - 0x20], eax
add edi, 8
mov dword [ebp - 0x24], ecx
movzx ecx, word [edi - 2]
cmp cx, 0xc
ja case.0x6f2463e7.0
movzx eax, cx
jmp dword [eax*4 + 0x6f273318]
cmp cx, 6
jne 0x6f2461eb
mov eax, dword [ebp - 0x20]
lea esi, [esi]
cmp word [eax], 0
je 0x6f2463c6
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6f246248
sub edx, eax
add edx, 2
add edx, eax
cmp word [edx + 4], 6
lea eax, [edx + 6]
jne 0x6f246238
jmp 0x6f24603c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x6f2461eb
test byte [0x6f2665a8], 2
je 0x6f24603c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Ooops:__d_is_not_valid_n
mov dword [esp + 8], str.MCI_DumpCommandTable
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f24603c
mov eax, dword [ebp - 0x24]
test eax, eax
je case.0x6f2463e7.0
mov dword [ebp - 0x1c], 0
jmp 0x6f2461eb
test dx, dx
jne case.0x6f2463e7.0
mov edx, dword [ebp - 0x24]
test edx, edx
jne case.0x6f2463e7.0
mov eax, dword [ebp - 0x28]
test eax, eax
je case.0x6f2463e7.0
mov dword [ebp - 0x28], 0
jmp 0x6f2461eb
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne case.0x6f2463e7.0
mov dword [ebp - 0x28], 1
jmp 0x6f2461eb
test dx, dx
je case.0x6f2463e7.0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x6f2462d2
jmp case.0x6f2463e7.0
mov eax, dword [ebp - 0x20]
test dx, dx
jne case.0x6f2463e7.0
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x6f246238
jmp case.0x6f2463e7.0
test dx, dx
jne 0x6f2461eb
jmp case.0x6f2463e7.0
test dx, dx
jne case.0x6f2463e7.0
cmp dword [ebp - 0x1c], 1
jne case.0x6f2463e7.0
mov dword [ebp - 0x1c], 1
jmp 0x6f2461eb
test dx, dx
jne case.0x6f2463e7.0
mov eax, dword [ebp - 0x24]
test eax, eax
jne case.0x6f2463e7.0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x6f2462b3
jmp case.0x6f2463e7.0
mov eax, dword [edi + 0x6f2663c0]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Dumping_cmdTbl_d__lpTable_p_devType_d__n
mov dword [esp + 8], str.MCI_IsCommandTableValid
mov dword [esp + 4], 0x6f2665a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f2461c6
mov edx, 2
jmp 0x6f246256
mov eax, dword [edi + 2]
movzx ecx, word [edi + 6]
add edi, 8
mov dword [ebp - 0x24], eax
cmp cx, 9
ja case.0x6f2463e7.0
jmp dword [ecx*4 + 0x6f27334c]