Function at 0x5ddab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x793143
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
cmp eax, esi
je 0x5ddb0f
mov dword [eax], esi
cmp ecx, esi
je 0x5ddb16
mov byte [ecx], 1
cmp dword [0x8c0bbc], esi
jne 0x5ddb36
push str.d3d8.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x8c0bbc], eax
cmp eax, esi
je 0x5ddc6f
push 8
mov edi, 0xf
push str.d3d8.dll
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], esi
mov byte [esp + 0x7c], 0
call fcn.004016e0
mov dword [esp + 0x680], esi
mov eax, dword [0x88b148]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x58]
push eax
call edx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebx + 0x104]
mov byte [esp + 0x68c], 1
call fcn.00401530
cmp dword [esp + 0x6c], 0x10
jb 0x5ddbac
mov eax, dword [esp + 0x58]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x680], 0xffffffff
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
jb 0x5ddbdb
mov ecx, dword [esp + 0x74]
push ecx
call fcn.006441c7
add esp, 4
mov edx, dword [0x8c0bbc]
push str.Direct3DCreate8
push edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], esi
mov byte [esp + 0x7c], 0
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x5ddc6f
push 0xdc
call edi
mov dword [ebx + 0x148], eax
cmp eax, esi
jne 0x5ddc21
push 0x78
call edi
mov dword [ebx + 0x148], eax
cmp dword [ebx + 0x148], esi
je 0x5ddc6f
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c8]
mov ecx, ebx
call edx
mov eax, dword [0x886c5c]
cmp eax, esi
jne 0x5ddc76
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.SetupSupportRenderTargetFormats
mov ecx, 0x87c4d0
mov dword [ebx + 0x148], esi
call fcn.00404a10
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x5ddc6f
mov dword [eax], 8
xor al, al
jmp 0x5de557
cmp byte [ebx + 0x99], 0
je 0x5ddd12
push esi
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
cmp edi, esi
je 0x5ddcfc
push 0xc
push edi
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push edi
push 0
mov esi, eax
call dword [sym.imp.user32.dll_ReleaseDC]
cmp esi, 0x10
jne 0x5ddcbe
test byte [0x886c5c], 4
je 0x5ddcbe
mov dword [esp + 0x48], 0x17
xor esi, esi
jmp 0x5ddcc8
xor esi, esi
mov dword [esp + 0x48], 0x16
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx]
mov edx, dword [eax + 0x1cc]
push ecx
mov ecx, ebx
call edx
cmp dword [0x88b120], esi
jne 0x5ddd2d
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x148], esi
xor al, al
jmp 0x5de557
movzx eax, byte [0x886c5c]
and eax, 4
or eax, 0x58
shr eax, 2
mov dword [esp + 0x48], eax
jmp 0x5ddcc8
cmp dword [ebx + 0x84], 0x10
jne 0x5ddd1f
test al, 4
jne 0x5ddd23
test al, 1
jne 0x5ddcc0
mov dword [esp + 0x48], 0x17
jmp 0x5ddcc8
push 0xd4
lea eax, [esp + 0xe8]
push esi
push eax
call fcn.0064edd0
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0xe4]
push edx
push 1
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
push eax
mov edi, str.GetDeviceCaps_failed
call fcn.005fb350
add esp, 4
test al, al
je 0x5ddd81
mov edx, dword [ebx]
mov eax, dword [edx + 0x128]
mov ecx, ebx
call eax
xor al, al
jmp 0x5de557
lea eax, [esp + 0xe4]
call fcn.005dd9e0
test al, al
je 0x5ddd6e
mov ecx, dword [0x88b148]
mov byte [esp + 0x47], 0
cmp dword [ecx + 0x834], esi
je 0x5de543
push 0x42c
lea edx, [esp + 0x210]
push esi
push edx
call fcn.0064edd0
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x20c]
push edx
push 2
push esi
push eax
mov eax, dword [ecx + 0x14]
call eax
push str.compat_D3DVendorID
test eax, eax
jl 0x5de117
lea ecx, [esp + 0x58]
call fcn.00401280
mov dword [esp + 0x680], 2
mov edx, dword [0x88b148]
mov edi, dword [esp + 0x614]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.0046a510
or esi, 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
push str.compat_D3DDeviceID
lea ecx, [esp + 0x58]
call fcn.00401280
mov dword [esp + 0x680], 3
mov ecx, dword [0x88b148]
mov edi, dword [esp + 0x618]
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.0046a510
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
lea edx, [esp + 0x40c]
push edx
lea ecx, [esp + 0x74]
call fcn.00401280
push str.compat_D3DDeviceDescription
lea ecx, [esp + 0x58]
mov dword [esp + 0x684], 4
call fcn.00401280
lea ebx, [esp + 0x70]
lea esi, [esp + 0xc8]
mov byte [esp + 0x680], 5
call fcn.004389b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x680], 6
mov edx, dword [0x88b148]
push ecx
push edx
mov edi, eax
call fcn.0046a300
mov ecx, esi
call fcn.00406fb0
lea ecx, [esp + 0x54]
call fcn.004012f0
or esi, 0xffffffff
mov ecx, ebx
mov dword [esp + 0x680], esi
call fcn.004012f0
push str.compat_D3DDriverVersionA
lea ecx, [esp + 0x58]
call fcn.00401280
mov dword [esp + 0x680], 7
mov edi, dword [esp + 0x610]
mov ecx, dword [0x88b148]
lea eax, [esp + 0x54]
push eax
shr edi, 0x10
push ecx
call fcn.0046a510
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
push str.compat_D3DDriverVersionB
lea ecx, [esp + 0x58]
call fcn.00401280
lea edx, [esp + 0x54]
mov dword [esp + 0x680], 8
movzx edi, word [esp + 0x610]
push edx
mov eax, dword [0x88b148]
push eax
call fcn.0046a510
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
push str.compat_D3DDriverVersionC
lea ecx, [esp + 0x58]
call fcn.00401280
mov dword [esp + 0x680], 9
mov edi, dword [esp + 0x60c]
mov edx, dword [0x88b148]
lea ecx, [esp + 0x54]
push ecx
shr edi, 0x10
push edx
call fcn.0046a510
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
push str.compat_D3DDriverVersionD
lea ecx, [esp + 0x58]
call fcn.00401280
mov dword [esp + 0x680], 0xa
mov ecx, dword [0x88b148]
movzx edi, word [esp + 0x60c]
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.0046a510
lea ecx, [esp + 0x54]
mov dword [esp + 0x680], esi
call fcn.004012f0
mov eax, dword [esp + 0x60c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x618]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
lea esi, [esp + 0x1d4]
call fcn.00439900
add esp, 0x14
push str.compat_D3DDriverVersion
lea ecx, [esp + 0x58]
mov dword [esp + 0x684], 0xb
call fcn.00401280
mov ebx, esi
lea esi, [esp + 0xc8]
mov byte [esp + 0x680], 0xc
call fcn.004389b0
lea edx, [esp + 0x54]
mov byte [esp + 0x680], 0xd
mov ecx, dword [0x88b148]
push edx
push ecx
mov edi, eax
call fcn.0046a300
mov ecx, esi
call fcn.00406fb0
lea ecx, [esp + 0x54]
mov byte [esp + 0x680], 0xb
call fcn.004012f0
lea edx, [esp + 0x20c]
push edx
lea ecx, [esp + 0x74]
call fcn.00401280
push str.compat_D3DDriverName
lea ecx, [esp + 0x58]
mov byte [esp + 0x684], 0xe
call fcn.00401280
lea ebx, [esp + 0x70]
lea esi, [esp + 0xc8]
mov byte [esp + 0x680], 0xf
call fcn.004389b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x680], 0x10
mov edx, dword [0x88b148]
push ecx
push edx
mov edi, eax
call fcn.0046a300
mov ecx, esi
call fcn.00406fb0
lea ecx, [esp + 0x54]
call fcn.004012f0
mov ecx, ebx
call fcn.004012f0
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], 0xffffffff
call fcn.004012f0
mov ebx, dword [esp + 0x8c]
xor esi, esi
jmp 0x5de2d8
lea ecx, [esp + 0x1c4]
call fcn.00401280
lea eax, [esp + 0x1c0]
mov dword [esp + 0x680], 0x11
mov ecx, dword [0x88b148]
push eax
push ecx
xor edi, edi
call fcn.0046a510
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], 0xffffffff
call fcn.004012f0
push str.compat_D3DDeviceID
lea ecx, [esp + 0x1c4]
call fcn.00401280
lea edx, [esp + 0x1c0]
mov dword [esp + 0x680], 0x12
mov eax, dword [0x88b148]
push edx
push eax
call fcn.0046a510
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], 0xffffffff
call fcn.004012f0
push 0x81d238
lea ecx, [esp + 0x58]
call fcn.00403550
push str.compat_D3DDeviceDescription
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x684], 0x13
call fcn.00401280
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x680], 0x14
mov edx, dword [0x88b148]
push ecx
push edx
lea edi, [esp + 0x5c]
call fcn.0046a300
lea ecx, [esp + 0x1c0]
call fcn.004012f0
mov ecx, edi
mov dword [esp + 0x680], 0xffffffff
call fcn.00406fb0
push 0x81d238
lea ecx, [esp + 0x58]
call fcn.00403550
push str.compat_D3DDriverVersion
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x684], 0x15
call fcn.00401280
lea eax, [esp + 0x1c0]
mov byte [esp + 0x680], 0x16
mov ecx, dword [0x88b148]
push eax
push ecx
lea edi, [esp + 0x5c]
call fcn.0046a300
lea ecx, [esp + 0x1c0]
call fcn.004012f0
mov ecx, edi
mov dword [esp + 0x680], 0xffffffff
call fcn.00406fb0
push 0x81d238
lea ecx, [esp + 0x58]
call fcn.00403550
push str.compat_D3DDriverName
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x684], 0x17
call fcn.00401280
lea edx, [esp + 0x1c0]
mov byte [esp + 0x680], 0x18
mov eax, dword [0x88b148]
push edx
push eax
lea edi, [esp + 0x5c]
call fcn.0046a300
lea ecx, [esp + 0x1c0]
call fcn.004012f0
mov ecx, edi
mov dword [esp + 0x680], 0xffffffff
call fcn.00406fb0
push str.compat_D3DVSVersion
lea ecx, [esp + 0x1c4]
call fcn.00401280
mov dword [esp + 0x680], 0x19
fldz
mov edx, dword [0x88b148]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x1c8]
push ecx
push edx
call fcn.0046a5e0
or edi, 0xffffffff
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], edi
call fcn.004012f0
push str.compat_D3DPSVersion
lea ecx, [esp + 0x1c4]
call fcn.00401280
mov dword [esp + 0x680], 0x1a
fldz
mov ecx, dword [0x88b148]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x1c8]
push eax
push ecx
call fcn.0046a5e0
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], edi
call fcn.004012f0
push str.compat_D3DInterface
lea ecx, [esp + 0x1c4]
call fcn.00401280
lea edx, [esp + 0x1c0]
mov dword [esp + 0x680], 0x1b
mov eax, dword [0x88b148]
push edx
push eax
mov edi, 8
call fcn.0046a510
or edi, 0xffffffff
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], edi
call fcn.004012f0
push str.compat_IsVista
lea ecx, [esp + 0x1c4]
call fcn.00401280
mov dword [esp + 0x680], 0x1c
call fcn.00437cf0
movzx ecx, al
mov eax, dword [0x88b148]
push ecx
lea edx, [esp + 0x1c4]
push edx
push eax
call fcn.0046a440
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], edi
call fcn.004012f0
push str.compat_IsWin7
lea ecx, [esp + 0x1c4]
call fcn.00401280
mov dword [esp + 0x680], 0x1d
call fcn.00437da0
movzx ecx, al
mov eax, dword [0x88b148]
push ecx
lea edx, [esp + 0x1c4]
push edx
push eax
call fcn.0046a440
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x680], edi
call fcn.004012f0
push esi
lea ecx, [esp + 0x1e0]
push ecx
call fcn.00404480
mov dword [esp + 0x680], 0x1e
mov edx, dword [0x88b148]
mov ecx, dword [edx + 0x834]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x1dc]
push edx
push str.Is3DSupported
call eax
test al, al
je 0x5de4bd
lea eax, [esp + 0x1dc]
call fcn.0049ddb0
test al, al
jne 0x5de4bd
mov edx, dword [ebx]
mov eax, dword [edx + 0x128]
mov ecx, ebx
call eax
lea esi, [esp + 0x1dc]
call fcn.00404890
xor al, al
jmp 0x5de557
mov ecx, dword [0x88b148]
mov ecx, dword [ecx + 0x834]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1dc]
push eax
push str.NeedMatchDepthBufferBits
call edx
test al, al
je 0x5de4f1
lea eax, [esp + 0x1dc]
call fcn.0049ddb0
mov byte [esp + 0x47], al
mov edi, dword [esp + 0x50]
cmp edi, esi
je 0x5de52a
mov eax, dword [0x88b148]
mov ecx, dword [eax + 0x834]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1dc]
push eax
push str.Is3DRecommended
call edx
test al, al
je 0x5de52a
lea eax, [esp + 0x1dc]
call fcn.0049ddb0
mov byte [edi], al
lea esi, [esp + 0x1dc]
mov dword [esp + 0x680], 0xffffffff
call fcn.00404890
xor esi, esi
cmp byte [ebp + 0xc], 0
je 0x5de57d
mov eax, dword [ebx]
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret 0xc
push 0x34
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0064edd0
mov al, byte [ebx + 0x99]
mov edx, dword [ebx + 0x78]
xor ecx, ecx
add esp, 0xc
test al, al
setne cl
mov edi, 1
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], esi
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0xa8], ecx
test al, al
jne 0x5de60b
test dword [esp + 0xf8], 0x80000000
mov dword [esp + 0xc0], esi
je 0x5de604
mov ecx, dword [0x88b148]
movzx edx, byte [ecx + 0x6e1]
neg edx
sbb edx, edx
and edx, 0x80000000
mov dword [esp + 0xc4], edx
jmp 0x5de60b
mov dword [esp + 0xc4], esi
cmp byte [esp + 0x47], 0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xb4], edi
je 0x5de639
mov dword [esp + 0x48], 0x16
mov dword [esp + 0xb8], 0x4d
jmp 0x5de644
mov dword [esp + 0xb8], 0x50
xor edx, edx
test al, al
setne dl
mov dword [esp + 0xb0], edx
test al, al
je 0x5de672
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x5de734
call fcn.00437da0
test al, al
jne 0x5de704
mov eax, dword [ebx + 0x148]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
xor edi, edi
test esi, esi
jbe 0x5de704
xor eax, eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
push edi
push 0
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x5de6ff
mov eax, dword [ebx + 0x13c]
mov ecx, dword [esp + 0x70]
cmp ecx, dword [eax + 0xca0]
ja 0x5de6ff
mov edx, dword [esp + 0x74]
cmp edx, dword [eax + 0xca4]
ja 0x5de6ff
cmp ecx, dword [ebx + 0x7c]
jne 0x5de6ff
cmp edx, dword [ebx + 0x80]
jne 0x5de6ff
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x7c], ecx
je 0x5de7e2
inc edi
cmp edi, esi
jb 0x5de697
mov edx, dword [ebx + 0x78]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb4], 0
test dword [esp + 0x100], 0x10000
je 0x5de774
mov eax, dword [ebx + 0x148]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea esi, [ebx + 0x14c]
push esi
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x78]
push pe_nt_image_headers32
push ecx
push 1
push 0
push eax
mov dword [esp + 0x6c], esi
call edx
test eax, eax
jge 0x5de827
mov eax, dword [ebx + 0x148]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [ebx + 0x14c]
push ecx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x78]
push 0x20
push ecx
push 1
push 0
push eax
call edx
cmp eax, 0x88760868
jne 0x5de7fe
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5de7b4
mov dword [eax], 8
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.Create_Device___Device_Lost
mov ecx, 0x87c4d0
mov dword [ebx + 0x148], 0
call fcn.00404a10
xor al, al
jmp 0x5de557
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
jmp 0x5de729
push eax
mov edi, str.Create_Device
call fcn.005fb350
add esp, 4
test al, al
je 0x5de823
mov eax, dword [ebx]
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
xor al, al
jmp 0x5de557
mov esi, dword [esp + 0x50]
cmp dword [esi], 0
jne 0x5de85a
mov eax, dword [ebx + 0x148]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.Create_Device
mov ecx, 0x87c4d0
mov dword [ebx + 0x148], 0
call fcn.00404a10
xor al, al
jmp 0x5de557
push 0x25c
call fcn.006442a0
mov edi, eax
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x680], 0x1f
test edi, edi
je 0x5de89c
mov eax, dword [esi]
push edi
mov dword [esp + 0x50], eax
call fcn.005dc610
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x258], ecx
mov dword [edi], vtable.Sexy::D3DStateManager8.0
mov ecx, edi
jmp 0x5de89e
xor ecx, ecx
mov dword [esp + 0x680], 0xffffffff
mov dword [ebx + 0x74], ecx
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0xb4], 0
jne 0x5de94a
mov eax, dword [ebx + 0x7c]
mov ecx, dword [esp + 0x94]
cmp eax, ecx
mov dword [esp + 0x4c], eax
jg 0x5de8d7
mov dword [esp + 0x4c], ecx
mov eax, dword [ebx + 0x80]
mov edx, dword [esp + 0x98]
cmp eax, edx
jle 0x5de8ea
mov edx, eax
mov eax, dword [esi]
mov edi, dword [eax]
lea ecx, [ebx + 0x184]
push ecx
mov ecx, dword [esp + 0xbc]
push 0
push ecx
push edx
mov edx, dword [esp + 0x5c]
push edx
push eax
mov eax, dword [edi + 0x68]
call eax
push eax
mov edi, str.CreateDepthStencilSurface__InitD3D_D3D8_
call fcn.005fb350
add esp, 4
test al, al
jne 0x5ddd6e
mov edx, dword [ebx + 0x184]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0
push eax
mov eax, dword [ecx + 0x7c]
call eax
push eax
mov edi, str.SetRenderTarget_DepthStencilSurface__InitD3D_D3D8_
call fcn.005fb350
add esp, 4
test al, al
jne 0x5ddd6e
push 0xd4
lea ecx, [esp + 0xe8]
push 0
push ecx
call fcn.0064edd0
mov esi, dword [esi]
mov edx, dword [esi]
mov ecx, dword [edx + 0x1c]
add esp, 0xc
lea eax, [esp + 0xe4]
push eax
push esi
call ecx
push eax
mov edi, str.GetDeviceCaps_failed
call fcn.005fb350
add esp, 4
test al, al
jne 0x5ddd6e
lea edi, [ebx + 0x188]
mov ecx, 0x35
lea esi, [esp + 0xe4]
lea eax, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
call fcn.005dd9e0
test al, al
je 0x5ddd6e
push 0
xor eax, eax
mov edi, ebx
call fcn.005fa2a0
mov ebx, dword [ebx + 0x74]
call fcn.0060ebe0
test al, al
je 0x5ddc6f
mov ebx, dword [esp + 0x8c]
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov ecx, dword [esp + 0x48]
lea esi, [ebx + 0xa0]
push esi
push 0
mov dword [ebx + 0x94], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 0
push eax
call edx
push eax
mov edi, str.GetBackBuffer
call fcn.005fb350
add esp, 4
test al, al
jne 0x5de810
mov ecx, dword [esp + 0x50]
fld1
mov eax, dword [esi]
push 0
push ecx
fstp dword [esp]
push 0xff000000
push 1
mov dword [ebx + 0xa8], eax
mov eax, dword [ecx]
push 0
mov dword [ebx + 0xac], 0
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x90]
call eax
mov eax, dword [ebx + 0x13c]
lea edi, [ebx + 0x150]
mov ecx, 0xd
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xd90]
mov edx, dword [ecx]
add eax, 0xd78
mov eax, dword [eax]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x13c]
mov ecx, dword [eax + 0xd90]
mov edx, dword [eax + 0xd78]
add eax, 0xd78
lea esi, [esp + 0x8c]
lea edi, [esp + 0x70]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], edx
call fcn.005c1ac0
test al, al
je 0x5de555
mov esi, edi
call fcn.005dba60
mov eax, dword [eax]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x118]
mov ecx, ebx
call eax
call fcn.0046f660
jmp 0x5dea73