Function at 0x100013f2
Capabilities:
Inspect section memory permissions

Disassembly:
jmp 0x100069d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
imul eax, eax, 0xc78
sub esp, 0x208
push ebx
mov ebx, dword [eax + ecx + 0x30]
push esi
push edi
lea edi, [eax + ecx]
push ebx
lea edx, [esp + 0x10]
push 0x10044bc8
push edx
xor esi, esi
call fcn.1002cc1c
push ebx
lea eax, [esp + 0x1c]
push eax
push str.DXDDCapsFlags
call fcn.10001339
add esp, 0x18
test bl, 1
je 0x10006a5b
lea ecx, [esp + 0xc]
push str.DDCAPS_3D
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
mov esi, 1
test bl, 2
je 0x10006a9f
lea edx, [esp + 0xc]
push str.DDCAPS_ALIGNBOUNDARYDEST
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 2
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 4
je 0x10006ae3
lea eax, [esp + 0xc]
push str.DDCAPS_ALIGNSIZEDEST
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 4
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bl, 8
je 0x10006b27
lea ecx, [esp + 0xc]
push str.DDCAPS_ALIGNBOUNDARYSRC
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x10
je 0x10006b6b
lea edx, [esp + 0xc]
push str.DDCAPS_ALIGNSIZESRC
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x20
je 0x10006baf
lea eax, [esp + 0xc]
push str.DDCAPS_ALIGNSTRIDE
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x20
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x40
je 0x10006bf3
lea ecx, [esp + 0xc]
push str.DDCAPS_BLT
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x40
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bl, bl
jns 0x10006c39
lea edx, [esp + 0xc]
push str.DDCAPS_BLTQUEUE
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x80
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 1
je 0x10006c80
lea eax, [esp + 0xc]
push str.DDCAPS_BLTFOURCC
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x100
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bh, 2
je 0x10006cc7
lea ecx, [esp + 0xc]
push str.DDCAPS_BLTSTRETCH
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x200
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 4
je 0x10006d0e
lea edx, [esp + 0xc]
push str.DDCAPS_GDI
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 8
je 0x10006d55
lea eax, [esp + 0xc]
push str.DDCAPS_OVERLAY
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x800
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bh, 0x10
je 0x10006d9c
lea ecx, [esp + 0xc]
push str.DDCAPS_OVERLAYCANTCLIP
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x1000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 0x40
je 0x10006de3
lea edx, [esp + 0xc]
push str.DDCAPS_OVERLAYSTRETCH
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x4000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, bh
jns 0x10006e29
lea eax, [esp + 0xc]
push str.DDCAPS_PALETTE
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x8000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x10000
je 0x10006e73
lea ecx, [esp + 0xc]
push str.DDCAPS_PALETTEVSYNC
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x10000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x20000
je 0x10006ebd
lea edx, [esp + 0xc]
push str.DDCAPS_READSCANLINE
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x20000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x40000
je 0x10006f07
lea eax, [esp + 0xc]
push str.DDCAPS_RESERVED1
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x40000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x80000
je 0x10006f51
lea ecx, [esp + 0xc]
push str.DDCAPS_VBI
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x80000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x100000
je 0x10006f9b
lea edx, [esp + 0xc]
push str.DDCAPS_ZBLTS
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x100000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x200000
je 0x10006fe5
lea eax, [esp + 0xc]
push str.DDCAPS_ZOVERLAYS
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x200000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x400000
je 0x1000702f
lea ecx, [esp + 0xc]
push str.DDCAPS_COLORKEY
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x400000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x800000
je 0x10007079
lea edx, [esp + 0xc]
push str.DDCAPS_ALPHA
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x800000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x1000000
je 0x100070c3
lea eax, [esp + 0xc]
push str.DDCAPS_COLORKEYHWASSIST
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x1000000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x2000000
je 0x1000710d
lea ecx, [esp + 0xc]
push str.DDCAPS_NOHARDWARE
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x2000000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x4000000
je 0x10007157
lea edx, [esp + 0xc]
push str.DDCAPS_BLTCOLORFILL
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x4000000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x8000000
je 0x100071a1
lea eax, [esp + 0xc]
push str.DDCAPS_BANKSWITCHED
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x8000000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x10000000
je 0x100071eb
lea ecx, [esp + 0xc]
push str.DDCAPS_BLTDEPTHFILL
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x10000000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x20000000
je 0x10007235
lea edx, [esp + 0xc]
push str.DDCAPS_CANCLIP
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x20000000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x40000000
je 0x1000727f
lea eax, [esp + 0xc]
push str.DDCAPS_CANCLIPSTRETCHED
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x40000000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, ebx
jns 0x100072c5
lea ecx, [esp + 0xc]
push str.DDCAPS_CANBLTSYSMEM
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x80000000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
mov ebx, dword [edi + 0x34]
push ebx
lea edx, [esp + 0x10]
push 0x10044bc8
push edx
call fcn.1002cc1c
push ebx
lea eax, [esp + 0x1c]
push eax
push str.DXDDCaps2Flags
call fcn.10001339
add esp, 0x18
test bl, 1
je 0x1000732f
lea ecx, [esp + 0xc]
push str.DDCAPS2_CERTIFIED
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 2
je 0x10007373
lea edx, [esp + 0xc]
push str.DDCAPS2_NO2DDURING3DSCENE
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 2
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 4
je 0x100073b7
lea eax, [esp + 0xc]
push str.DDCAPS2_VIDEOPORT
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 4
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bl, 8
je 0x100073fb
lea ecx, [esp + 0xc]
push str.DDCAPS2_AUTOFLIPOVERLAY
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x10
je 0x1000743f
lea edx, [esp + 0xc]
push str.DDCAPS2_CANBOBINTERLEAVED
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x20
je 0x10007483
lea eax, [esp + 0xc]
push str.DDCAPS2_CANBOBNONINTERLEAVED
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x20
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bl, 0x40
je 0x100074c7
lea ecx, [esp + 0xc]
push str.DDCAPS2_COLORCONTROLOVERLAY
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x40
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bl, bl
jns 0x1000750d
lea edx, [esp + 0xc]
push str.DDCAPS2_COLORCONTROLPRIMARY
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x80
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 1
je 0x10007554
lea eax, [esp + 0xc]
push str.DDCAPS2_CANDROPZ16BIT
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x100
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bh, 2
je 0x1000759b
lea ecx, [esp + 0xc]
push str.DDCAPS2_NONLOCALVIDMEM
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x200
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 4
je 0x100075e2
lea edx, [esp + 0xc]
push str.DDCAPS2_NONLOCALVIDMEMCAPS
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 8
je 0x10007629
lea eax, [esp + 0xc]
push str.DDCAPS2_NOPAGELOCKREQUIRED
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x800
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test bh, 0x10
je 0x10007670
lea ecx, [esp + 0xc]
push str.DDCAPS2_WIDESURFACES
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x1000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test bh, 0x20
je 0x100076b7
lea edx, [esp + 0xc]
push str.DDCAPS2_CANFLIPODDEVEN
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x2000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test bh, bh
jns 0x100076fd
lea eax, [esp + 0xc]
push str.DDCAPS2_COPYFOURCC
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x8000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x20000
je 0x10007747
lea ecx, [esp + 0xc]
push str.DDCAPS2_PRIMARYGAMMA
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x20000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x80000
je 0x10007791
lea edx, [esp + 0xc]
push str.DDCAPS2_CANRENDERWINDOWED
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x80000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x100000
je 0x100077db
lea eax, [esp + 0xc]
push str.DDCAPS2_CANCALIBRATEGAMMA
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x100000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x200000
je 0x10007825
lea ecx, [esp + 0xc]
push str.DDCAPS2_FLIPINTERVAL
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x200000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x400000
je 0x1000786f
lea edx, [esp + 0xc]
push str.DDCAPS2_FLIPNOVSYNC
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x400000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x800000
je 0x100078b9
lea eax, [esp + 0xc]
push str.DDCAPS2_CANMANAGETEXTURE
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x800000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x1000000
je 0x10007903
lea ecx, [esp + 0xc]
push str.DDCAPS2_TEXMANINNONLOCALVIDMEM
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x1000000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x2000000
je 0x1000794d
lea edx, [esp + 0xc]
push str.DDCAPS2_STEREO
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x2000000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x4000000
je 0x10007997
lea eax, [esp + 0xc]
push str.DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x4000000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x8000000
je 0x100079e1
lea ecx, [esp + 0xc]
push str.DDCAPS2_RESERVED1
push ecx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea edx, [esp + 0x120]
push str._s_04d
push edx
call fcn.1002cc1c
push 0x8000000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x10000000
je 0x10007a2b
lea edx, [esp + 0xc]
push str.DDCAPS2_CANMANAGERESOURCE
push edx
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea eax, [esp + 0x120]
push str._s_04d
push eax
call fcn.1002cc1c
push 0x10000000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.10001339
add esp, 0x24
inc esi
test ebx, 0x20000000
je 0x10007a75
lea eax, [esp + 0xc]
push str.DDCAPS2_DYNAMICTEXTURES
push eax
call fcn.1002cc1c
push esi
push str.DXDDCaps
lea ecx, [esp + 0x120]
push str._s_04d
push ecx
call fcn.1002cc1c
push 0x20000000
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10001339
add esp, 0x24
inc esi
push esi
lea ecx, [esp + 0x10]
push 0x100442d0
push ecx
call fcn.1002cc1c
push esi
lea edx, [esp + 0x1c]
push edx
push str.DXDDCapsItemNo
call fcn.10001339
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0x208
ret