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

Disassembly:
sub esp, 0x160
mov eax, dword [0x5e687c]
push esi
push edi
mov esi, dword [eax + 8]
mov dword [esp + 0x10], esi
lea ecx, [esi + 1]
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4ce739
test esi, esi
jne 0x4ce739
push str.Enter
push 0x5bd3ac
push 0xadd
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push 4
call fcn.0047bec0
add esp, 0x14
mov eax, dword [0x5e9880]
mov edx, dword [0x5e687c]
push ebx
push eax
lea ecx, [esp + 0x70]
push str.NumVideoMemoryRasters:__d
push ecx
call dword [edx + 0x100]
lea eax, [esp + 0x78]
push eax
push str._rxD3D8VideoMemoryRasterListRestore
push 0xae5
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push 3
call fcn.0047bec0
mov eax, dword [0x5e9878]
add esp, 0x20
mov edi, 1
xor ebx, ebx
test eax, eax
mov dword [esp + 0xc], edi
je 0x4ceada
push ebp
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [0x5ebae4]
mov dword [esp + 0x14], edx
mov eax, dword [esi]
cmp eax, esi
lea ebp, [ecx + esi]
jne case.0x4ce7b7.3
xor eax, eax
mov al, byte [esi + 0x20]
cmp eax, 5
ja case.0x4ce7b7.3
jmp dword [eax*4 + 0x4ceb58]
push esi
call fcn.004769b0
add esp, 4
test ah, 0x60
je case.0x4ce7b7.3
mov ebp, dword [ebp + 4]
test ebp, ebp
je case.0x4ce7b7.3
mov eax, dword [0x5e6cb8]
mov edx, dword [ebp + 0x400]
push 0xb01
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
mov ecx, dword [eax]
push str.IDirect3DDevice8_SetPaletteEntries__RwD3DDevice__rasExt__palette__globalindex___PALETTEENTRY___rasExt__palette__entries__
push ebp
push edx
push eax
call dword [ecx + 0x108]
push eax
call fcn.004ad3b0
add esp, 0x10
mov ebx, eax
jmp case.0x4ce7b7.3
cmp dword [ebp], 0
jne case.0x4ce7b7.3
push esi
call fcn.004769b0
mov ecx, eax
add esp, 4
not eax
shr eax, 0xf
shr ecx, 8
mov edi, eax
mov al, byte [ebp + 0xa]
and ecx, 0xf
and edi, 1
test al, al
mov eax, dword [0x5e6cb8]
mov ecx, dword [ecx*8 + 0x5bcfe0]
mov edx, dword [eax]
je 0x4ce86a
push 0xb17
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateCubeTexture__RwD3DDevice__raster__width__levels__D3DUSAGE_RENDERTARGET___D3DFORMAT_colorFormat__D3DPOOL_DEFAULT___LPDIRECT3DCUBETEXTURE8___rasExt__texture__
push ebp
push 0
push ecx
mov ecx, dword [esi + 0xc]
push 1
push edi
push ecx
push eax
call dword [edx + 0x58]
jmp 0x4ce88c
push 0xb22
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateTexture__RwD3DDevice__raster__width__raster__height__levels__D3DUSAGE_RENDERTARGET___D3DFORMAT_colorFormat__D3DPOOL_DEFAULT___rasExt__texture__
push ebp
push 0
push ecx
mov ecx, dword [esi + 0x10]
push 1
push edi
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push eax
call dword [edx + 0x50]
push eax
call fcn.004ad3b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jge 0x4ceac5
cmp ebx, 0x8876017c
je case.0x4ce7b7.3
mov al, byte [ebp + 0xa]
mov ecx, dword [0x5ebf30]
test al, al
mov eax, dword [0x5e6cb8]
mov edx, dword [eax]
je 0x4ce8df
push 0xb30
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateCubeTexture__RwD3DDevice__raster__width___rasFormat__rwRASTERFORMATMIPMAP____0_:_1__0___RwD3D8AdapterInformation.mode.Format__D3DPOOL_DEFAULT___LPDIRECT3DCUBETEXTURE8___rasExt__texture__
push ebp
push 0
push ecx
mov ecx, dword [esi + 0xc]
push 0
push edi
push ecx
push eax
call dword [edx + 0x58]
jmp 0x4ce901
push 0xb3a
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateTexture__RwD3DDevice__raster__width__raster__height___rasFormat__rwRASTERFORMATMIPMAP____0_:_1__0___RwD3D8AdapterInformation.mode.Format__D3DPOOL_DEFAULT___rasExt__texture__
push ebp
push 0
push ecx
mov ecx, dword [esi + 0x10]
push 0
push edi
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push eax
call dword [edx + 0x50]
push eax
call fcn.004ad3b0
mov edx, dword [0x5ebf30]
add esp, 0x10
mov ebx, eax
push edx
call fcn.004ce310
add esp, 4
shr eax, 8
mov byte [esi + 0x23], al
mov eax, dword [0x5ebf34]
mov dword [esi + 0x14], eax
jmp case.0x4ce7b7.3
cmp dword [ebp], 0
jne 0x4ce9e9
mov ecx, dword [0x5ebcd4]
xor eax, eax
cmp ecx, 0x10
jne 0x4ce95a
push 0x49
call fcn.004b3060
add esp, 4
neg eax
sbb eax, eax
and al, 0xf9
add eax, 0x50
jmp 0x4ce99c
cmp ecx, 0x20
jne 0x4ce99c
push 0x4b
call fcn.004b3060
add esp, 4
test eax, eax
je 0x4ce974
mov eax, 0x4b
jmp 0x4ce99c
push 0x4f
call fcn.004b3060
add esp, 4
test eax, eax
je 0x4ce989
mov eax, 0x4f
jmp 0x4ce99c
push 0x47
call fcn.004b3060
add esp, 4
neg eax
sbb eax, eax
and al, 0xfa
add eax, 0x4d
mov edi, dword [esi + 0x10]
cmp edi, 1
jge 0x4ce9a9
mov edi, 1
mov esi, dword [esi + 0xc]
mov edx, 1
cmp esi, 1
jl 0x4ce9b8
mov edx, esi
mov ecx, dword [0x5e6cb8]
push 0xb70
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateDepthStencilSurface__RwD3DDevice__max_1__raster__width___max_1__raster__height___depthFormat__D3DMULTISAMPLE_NONE___LPDIRECT3DSURFACE8____rasExt__texture___
mov esi, dword [ecx]
push ebp
push 0
push eax
push edi
push edx
push ecx
call dword [esi + 0x68]
push eax
call fcn.004ad3b0
add esp, 0x10
mov ebx, eax
jmp case.0x4ce7b7.3
mov edx, dword [0x5e6cb4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x5e6cbc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebp], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
jmp case.0x4ce7b7.3
mov eax, dword [ebp + 0x24]
test eax, eax
je case.0x4ce7b7.3
mov eax, dword [ebp + 0x20]
mov ecx, 0xd
mov esi, 0x5ebce0
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x34]
xor edx, edx
test esi, esi
sete dl
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
xor eax, eax
lea esi, [ebp + 0x24]
test edx, edx
sete al
mov dword [esp + 0x40], eax
mov dword [esi], 0
mov eax, dword [0x5e6cb8]
push 0xba3
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push str.IDirect3DDevice8_CreateAdditionalSwapChain__RwD3DDevice__present___rasExt__swapChain__
lea edx, [esp + 0x48]
mov dword [esp + 0x68], 0
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x34]
push eax
call fcn.004ad3b0
add esp, 0x10
test eax, eax
jne case.0x4ce7b7.3
mov esi, dword [esi]
push ebp
push 0
push 0
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov ebp, dword [ebp]
mov ebx, eax
push ebp
mov ecx, dword [ebp]
call dword [ecx + 8]
test ebx, ebx
jge 0x4ceac5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ce78d
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
pop ebp
mov eax, dword [0x5e687c]
pop ebx
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x4ceb1e
push 0x80000005
call fcn.0047c0a0
push eax
push 0x5bd3ac
push 0xbbd
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4ceb4d
test esi, esi
jne 0x4ceb4d
push str.Exit
push 0x5bd3ac
push 0xbbd
push str.C:_daily_rwsdk_driver_d3d8_d3d8raster.c
push 4
call fcn.0047bec0
add esp, 0x14
mov eax, edi
pop edi
pop esi
add esp, 0x160
ret