Function at 0x67f85950
Capabilities:
Enumerate pe sections
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov esi, dword [ecx + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx + 4]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x2c], esi
mov esi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x30], esi
mov esi, dword [eax + 0x18]
test byte [0x67f8d018], 8
jne 0x67f85b10
test ebx, ebx
je 0x67f859a5
test byte [0x67f8d018], 1
jne 0x67f85ae0
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
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 ebx, eax
test eax, eax
je 0x67f85c07
mov dword [eax + 0x10], 1
mov dword [eax], sym._ddrawex1_QueryInterface_12
mov dword [eax + 4], 0x67f900e0
mov dword [eax + 8], 0x67f90140
mov dword [eax + 0xc], 0x67f901c0
lea eax, [ebp - 0x1c]
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call sym._DirectDrawCreate_12
sub esp, 0xc
mov edi, eax
test eax, eax
js 0x67f85a80
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + 0x14]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x67f93320
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov edi, eax
test eax, eax
js 0x67f85a80
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
call dword [eax + 0x50]
sub esp, 0xc
mov edi, eax
test eax, eax
js 0x67f85a80
mov eax, dword [ebp - 0x1c]
mov dword [esi], ebx
xor edi, edi
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x67f85a92
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x67f85aa4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov dword [esp + 8], ebx
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]
mov dword [esi], 0
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov dword [esp + 0xc], str.Implement_aggregation_in_ddrawexs_IDirectDraw_interface._n
mov dword [esp + 8], str.ddrawex_factory_CreateDirectDraw
mov dword [esp + 4], 0x67f8d018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x67f859a5
test edi, edi
je 0x67f85c00
mov eax, edi
mov dword [ebp - 0x38], ecx
shr eax, 0x10
mov dword [ebp - 0x34], edx
je 0x67f85be0
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x67f8f448
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.iface__p__guid__s__window__p__coop_level__lx__reserved__lx__outer_unknown__p__ddraw__p._n
mov dword [esp + 8], str.ddrawex_factory_CreateDirectDraw
mov dword [esp + 4], 0x67f8d018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f85994
movzx eax, di
mov dword [esp], 0x67f8f437
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
jmp 0x67f85b91
mov eax, 0x67f8f430
jmp 0x67f85b91
mov edi, 0x8007000e
jmp 0x67f85ace