Function at 0x10d5e530
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10e2ef11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov eax, dword [ebp]
mov ebx, ecx
push esi
mov ecx, ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x68], 0
call dword [eax + 0x28]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x10], eax
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x50], esi
call dword [eax + 0x24]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0xc], eax
call dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test eax, eax
mov ecx, 5
mov dword [esp + 0x20], ecx
je 0x10d5e5b8
cmp eax, 0xa
je 0x10d5e5b8
cmp eax, 1
je 0x10d5e5b8
mov dword [esp + 0x20], eax
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x10]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x18], eax
call dword [edx + 0x14]
mov edi, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x1c], edi
call dword [eax + 0x1c]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x4140]
test eax, eax
je 0x10d5e63c
test edi, edi
je 0x10d5e63c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
test eax, eax
je 0x10d5e63c
mov eax, dword [edi]
push str.NvidiaLogo_T.PlaySeal_T
push 0
push 0
mov ecx, edi
call dword [eax + 0x4c]
mov ecx, eax
call fcn.109c3600
push eax
call fcn.109b8b50
add esp, 8
test eax, eax
jne 0x10d5e63c
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jl 0x10d5e63c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jg 0x10d5e646
mov eax, esi
xor ecx, ecx
test eax, eax
jle 0x10d5e657
lea esp, [esp]
sar eax, 1
inc ecx
test eax, eax
jg 0x10d5e650
cmp dword [esp + 0x20], ecx
jle 0x10d5e661
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4730]
test eax, eax
je 0x10d5e676
mov eax, dword [eax + 0x168]
jmp 0x10d5e678
xor eax, eax
mov ecx, dword [0x10fceeec]
test ecx, ecx
mov dword [esp + 0x40], eax
jne 0x10d5e6f6
test eax, eax
jne 0x10d5e6f6
mov eax, dword [0x110b8afc]
test eax, eax
je 0x10d5e6f6
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x10d5e6f6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp esi, eax
jge 0x10d5e6da
jmp 0x10d5e6b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov ecx, esi
sar edx, cl
sar eax, cl
mov ecx, dword [esp + 0x24]
imul edx, eax
push edx
push ecx
call fcn.109ae660
add edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
inc esi
cmp esi, eax
jl 0x10d5e6b0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10d5e745
mov edx, dword [0x10f43370]
push str.Uploading_Lightmap___
push edx
call fcn.109baf50
add esp, 8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10d5e71b
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x10d5e71b
mov eax, dword [ecx]
push 0
call dword [eax + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
cmp eax, 5
jne 0x10d5e7b7
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0xbc]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffb
add edi, 0x1a
jmp 0x10d5e7e3
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10d5e785
mov eax, dword [ecx]
push 0
call dword [eax + 0x40]
mov edx, dword [eax]
lea ecx, [edi + edi*2]
shl ecx, 1
push ecx
push 0
push 0
mov ecx, eax
call dword [edx + 0x4c]
mov ecx, eax
call fcn.109c3600
push eax
mov eax, dword [0x10f43370]
push str.Uploading_Cubemap:_Texture__s___Size__i_
push eax
call fcn.109baf50
add esp, 0x10
jmp 0x10d5e6f6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10d5e71b
mov edx, dword [ecx]
push edi
push 0
push 0
call dword [edx + 0x4c]
mov ecx, eax
call fcn.109c3600
push eax
mov eax, dword [0x10f43370]
push str.Uploading_Texture:_Texture__s___Size__i_
push eax
call fcn.109baf50
add esp, 0x10
jmp 0x10d5e71b
cmp eax, 3
jne 0x10d5e7c3
mov edi, 0x31545844
jmp 0x10d5e7e3
cmp eax, 7
jne 0x10d5e7cf
mov edi, 0x33545844
jmp 0x10d5e7e3
mov esi, dword [esp + 0x24]
xor eax, eax
cmp esi, 8
setne al
dec eax
and eax, 0x35545844
mov edi, eax
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x41c0]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], 0
lea esp, [esp]
mov eax, dword [esp + 0x54]
sar eax, cl
cmp eax, edx
jg 0x10d5e81b
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
sar esi, cl
cmp esi, dword [eax + 0x41c4]
jle 0x10d5e82e
mov eax, dword [esp + 0x20]
inc ecx
cmp ecx, eax
jl 0x10d5e800
mov dword [esp + 0x38], 1
jmp 0x10d5e800
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x10d5e842
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
sar esi, cl
sar eax, cl
mov ecx, 1
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c], eax
je 0x10d5e8b2
cmp esi, edx
jle 0x10d5e87f
mov esi, edx
mov dword [esp + 0x58], esi
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x41c4]
cmp eax, ecx
jle 0x10d5e890
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10]
cdq
idiv dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10d5fcc6
test esi, esi
je 0x10d5fcc6
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10d5ecb0
mov edx, dword [ecx]
call dword [edx + 0x40]
lea ebp, [ebx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
test eax, eax
je 0x10d5e90b
cmp dword [ebx + 0x34], esi
jne 0x10d5e901
mov ecx, dword [ebx + 0x38]
cmp ecx, dword [esp + 0x2c]
jne 0x10d5e901
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
jne 0x10d5e901
cmp dword [ebx + 0x40], 1
jne 0x10d5e901
cmp dword [ebx + 0x44], edi
je 0x10d5e977
test eax, eax
je 0x10d5e90b
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [esp + 0x24], 5
jne 0x10d5e930
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
push 5
call dword [eax + 0xbc]
test eax, eax
jne 0x10d5e930
mov edi, 0x17
mov dword [esp + 0x44], edi
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push 0
push ebp
push 1
push edi
push 0
push 1
push ecx
push esi
push eax
call dword [edx + 0x5c]
mov ecx, dword [ebx + 4]
push 0
push str.CreateTexture_failed__s_.
push eax
call fcn.10d4f890
test eax, eax
jne 0x10d5e930
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + 0x48]
push 4
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
call fcn.109b8e40
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], eax
je 0x10d5eb7b
lea ebp, [ebx + 0x48]
mov esi, eax
push 4
mov ecx, ebp
mov dword [ebp + 4], 0
mov dword [ebp + 8], esi
call fcn.109b8e40
push esi
push 4
mov ecx, ebp
call fcn.10923200
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x50]
push edx
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
jge 0x10d5ea0a
lea esi, [esp + 0x60]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0
je 0x10d5e9dd
mov eax, dword [eax]
jmp 0x10d5e9e2
mov eax, 0x10e43c3c
push eax
mov eax, dword [0x10f43374]
push str.LockRect_failed__s_.
push eax
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
cmp edi, 0x17
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
jne 0x10d5ea36
mov ebp, dword [esp + 0x54]
shl ebp, 2
mov edx, ebp
imul edx, dword [esp + 0x10]
push edx
call fcn.1097a670
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x10d5eab6
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
call dword [eax + 0x44]
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
push ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push eax
push ebp
push ecx
push edx
push ebp
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.10d61310
add esp, 0x14
push eax
mov eax, dword [esp + 0x4c]
push ebx
mov ecx, esi
call dword [eax + 0x44]
mov ebx, dword [esp + 0x80]
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edi*4], edx
inc edi
cmp edi, eax
jl 0x10d5ea40
cmp dword [esp + 0x44], 0x17
jne 0x10d5eb6b
mov ebp, dword [esp + 0x58]
cmp ebp, 0x100
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
jne 0x10d5eae5
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x10d5eae5
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x10d5eb00
push 0x173
push str..D3D9Resource.cpp
push str._USize__256____VSize__256___DownSample
call fcn.109bb190
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jle 0x10d5eb5b
mov dword [esp + 0x28], eax
test ebp, ebp
jle 0x10d5eb4c
mov ecx, ebp
mov edi, edi
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
movzx dx, byte [esp + 0x3e]
movzx bp, ah
shr al, 3
movzx ax, al
and edx, 0xfff8
shl edx, 5
and ebp, 0xfffc
add edx, ebp
add edi, 2
add esi, 8
dec ecx
lea edx, [eax + edx*8]
mov word [edi - 2], dx
jne 0x10d5eb10
mov ebp, dword [esp + 0x58]
lea eax, [ebp*8]
add esi, eax
dec dword [esp + 0x28]
jne 0x10d5eb08
mov ecx, dword [0x10f43380]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x50]
jmp 0x10d5fd19
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x10d5fd19
lea esp, [esp]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [edx + 0x44]
mov edi, eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov esi, eax
mov eax, dword [ebx + 0x48]
cmp dword [eax + ebp*4], esi
mov dword [esp + 0x3c], esi
je 0x10d5ec9e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [edi]
mov dword [esp + 0x94], ecx
mov ecx, edi
mov dword [esp + 0x98], edx
call dword [eax + 0x20]
add eax, dword [esp + 0x18]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x9c], eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x38]
push 0
lea edx, [esp + 0x98]
push edx
add eax, ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
jge 0x10d5ec73
lea esi, [esp + 0x60]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 1
je 0x10d5ec42
mov eax, dword [eax]
jmp 0x10d5ec47
mov eax, 0x10e43c3c
push eax
mov eax, dword [0x10f43374]
push str.LockRect_failed__s_.
push eax
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
push 0
push eax
mov eax, dword [esp + 0x54]
push ecx
push eax
push 0
mov ecx, edi
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x50]
mov edx, dword [ebx + 0x48]
mov dword [edx + ebp*4], esi
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x10d5eb90
jmp 0x10d5fd19
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10d5ee90
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x10d5ee90
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xbc]
test eax, eax
je 0x10d5ee90
mov eax, dword [ebx + 0x30]
test eax, eax
lea ebp, [ebx + 0x30]
je 0x10d5ed1a
cmp dword [ebx + 0x34], esi
jne 0x10d5ed10
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x38], ecx
jne 0x10d5ed10
mov edx, dword [ebx + 0x3c]
cmp edx, dword [esp + 0x14]
jne 0x10d5ed10
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [esp + 0x20]
jne 0x10d5ed10
cmp dword [ebx + 0x44], edi
je 0x10d5ed86
test eax, eax
je 0x10d5ed1a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x54], eax
je 0x10d5ed40
mov ecx, dword [0x10f43374]
push str.Cubemaps_must_be_square
push ecx
call fcn.109baf50
add esp, 8
jmp 0x10d5ed40
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x4108]
test ecx, ecx
je 0x10d5ed57
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x14]
jmp 0x10d5ed5c
mov ecx, 1
mov eax, dword [eax + 0x4750]
mov edx, dword [eax]
push 0
push ebp
push 1
push edi
push 0
push ecx
push esi
push eax
call dword [edx + 0x64]
mov ecx, dword [ebx + 4]
push 0
push str.CreateCubeTexture_failed__s_.
push eax
call fcn.10d4f890
test eax, eax
jne 0x10d5ed40
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x4108]
mov eax, dword [esp + 0x20]
test ecx, ecx
mov ecx, dword [esp + 0x14]
jne 0x10d5ed9e
lea eax, [ecx + 1]
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jge 0x10d5fd19
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x38]
lea ebx, [ebx]
xor edi, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edi
call dword [edx + 0x40]
mov ebp, eax
test ebp, ebp
je 0x10d5ee67
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x50]
push edx
push esi
push edi
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x10d5ee3e
lea esi, [esp + 0x60]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 2
je 0x10d5ee0d
mov eax, dword [eax]
jmp 0x10d5ee12
mov eax, 0x10e43c3c
push eax
mov eax, dword [0x10f43374]
push str.LockRect_failed__s_.
push eax
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp]
push 0
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x44]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
push esi
push edi
push eax
call dword [edx + 0x50]
inc edi
cmp edi, 6
jl 0x10d5edc2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
inc eax
inc esi
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
jl 0x10d5edc0
jmp 0x10d5fd19
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp eax, ecx
je 0x10d5f0aa
mov eax, dword [ebx + 4]
cmp dword [eax + 0x54], ecx
mov dword [esp + 0x44], 0x15
jne 0x10d5eebf
cmp dword [eax + 0x58], ecx
je 0x10d5f06e
mov dword [esp + 0x44], 0x17
mov eax, dword [ebx + 0x2c]
cmp eax, ecx
lea ebp, [ebx + 0x2c]
je 0x10d5ef00
cmp dword [ebx + 0x34], esi
jne 0x10d5eef6
mov edx, dword [ebx + 0x38]
cmp edx, dword [esp + 0x2c]
jne 0x10d5eef6
mov edx, dword [ebx + 0x3c]
cmp edx, dword [esp + 0x14]
jne 0x10d5eef6
mov edx, dword [ebx + 0x40]
cmp edx, dword [esp + 0x20]
jne 0x10d5eef6
mov edx, dword [esp + 0x44]
cmp dword [ebx + 0x44], edx
je 0x10d5efd7
cmp eax, ecx
je 0x10d5ef00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0
sub edi, eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x4750]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push 0
push ebp
push 0
push edx
mov edx, dword [esp + 0x3c]
push 1
push edi
push edx
push esi
push eax
call dword [ecx + 0x5c]
test eax, eax
jge 0x10d5ef72
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x4750]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x10d5ef5f
mov edx, dword [0x10f43374]
push str.EvictManagedResources_failed.
push edx
call fcn.109baf50
add esp, 8
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x10d5ef12
jmp 0x10d5f06e
mov ebp, dword [ebp]
mov eax, dword [ebp]
lea ecx, [ebx + 0x24]
push ecx
push 0
push ebp
call dword [eax + 0x48]
test eax, eax
jge 0x10d5efd7
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 3
je 0x10d5efa5
mov eax, dword [eax]
jmp 0x10d5efaa
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.GetSurfaceLevel_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov esi, dword [esp + 0x58]
mov eax, dword [ebx + 0x28]
test eax, eax
lea edi, [ebx + 0x28]
je 0x10d5f00f
cmp dword [ebx + 0x34], esi
jne 0x10d5f005
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x38], ecx
jne 0x10d5f005
mov edx, dword [esp + 0x14]
cmp dword [ebx + 0x3c], edx
jne 0x10d5f005
mov ecx, dword [esp + 0x20]
cmp dword [ebx + 0x40], ecx
je 0x10d5fd19
test eax, eax
je 0x10d5f00f
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor esi, esi
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x4750]
mov eax, dword [eax + 0x46fc]
mov edx, dword [ecx]
push 0
push edi
push 1
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x74]
push eax
push ecx
call dword [edx + 0x74]
test eax, eax
jge 0x10d5fd19
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jge 0x10d5f068
mov eax, dword [0x10f43374]
push str.EvictManagedResources_failed.
push eax
call fcn.109baf50
add esp, 8
inc esi
cmp esi, 4
jl 0x10d5f011
mov eax, dword [ebx + 0x24]
test eax, eax
mov dword [esp + 0x6c], 1
je 0x10d5f083
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10d5f090
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10d5f09d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
jmp 0x10d5fd13
mov ebp, dword [esp + 0x1c]
cmp ebp, ecx
je 0x10d5fcbe
mov ecx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x34], eax
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x24]
push eax
call dword [edx + 0xbc]
test eax, eax
jne 0x10d5f1f7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10d612f0
add esp, 4
test eax, eax
jne 0x10d5f0fe
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x6c]
test eax, eax
je 0x10d5f1f7
cmp dword [esp + 0x24], 5
jne 0x10d5f172
mov eax, dword [esp + 0x38]
test eax, eax
mov edi, 0x1a
mov dword [esp + 0x44], edi
je 0x10d5f131
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x54]
shl eax, 2
push eax
call fcn.1097a670
mov ecx, dword [esp + 0x58]
shl ecx, 2
jmp 0x10d5f148
mov ecx, dword [esp + 0x2c]
imul ecx, esi
shl ecx, 2
push ecx
call fcn.1097a670
lea ecx, [esi*4]
mov edx, dword [ebp]
add esp, 4
push 0
push 5
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov ecx, ebp
push eax
call dword [edx + 0x44]
mov dword [esp + 0x88], 1
jmp 0x10d5f1f7
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
push 0
push 3
call dword [eax + 0xbc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
neg eax
sbb eax, eax
inc eax
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x4c]
mov ecx, eax
call fcn.10a24fb0
mov dword [esp + 0x24], eax
sub eax, 3
je 0x10d5f1e6
sub eax, 2
je 0x10d5f1c3
mov eax, dword [0x10f43374]
push str.ConvertDXT_returned_unknown_texture_format
push eax
call fcn.109baf50
add esp, 8
jmp 0x10d5f1f7
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push 5
call dword [edx + 0xbc]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffb
add edi, 0x1a
mov dword [esp + 0x28], 1
jmp 0x10d5f1f3
mov edi, 0x31545844
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], edi
mov eax, dword [ebx + 0x2c]
test eax, eax
mov dword [esp + 0x10], 0
je 0x10d5f239
cmp dword [ebx + 0x34], esi
jne 0x10d5f22f
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x38], ecx
jne 0x10d5f22f
mov edx, dword [esp + 0x14]
cmp dword [ebx + 0x3c], edx
jne 0x10d5f22f
mov ecx, dword [esp + 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x10d5f22f
cmp dword [ebx + 0x44], edi
je 0x10d5f2f5
test eax, eax
je 0x10d5f239
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x4750]
mov edx, dword [eax]
push 0
lea ecx, [ebx + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edi
push 0
sub ecx, ebp
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push esi
push eax
call dword [edx + 0x5c]
mov ebp, dword [esp + 0x18]
cmp ebp, 2
jl 0x10d5f27c
cmp eax, 0x8876017c
je 0x10d5f2b8
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x30]
push edx
push str.CreateTexture_failed__s_.
push eax
mov dword [esp + 0x3c], 0
call fcn.10d4f890
test eax, eax
je 0x10d5f2c7
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10d5f2ac
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x20], eax
inc ebp
cmp ebp, 3
mov dword [esp + 0x18], ebp
jl 0x10d5f241
jmp 0x10d5f2c7
mov dword [esp + 0x10], 1
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x10d5f2db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x54], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ebx + 0x58], edx
jne 0x10d5fd19
mov eax, dword [ebx + 0x54]
test eax, eax
mov ebp, dword [esp + 0x14]
lea edi, [ebx + 0x54]
jne 0x10d5f384
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
push 0
push edi
push 2
push ecx
mov ecx, dword [esp + 0x30]
push 0
sub ecx, ebp
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push eax
call dword [edx + 0x5c]
test eax, eax
jge 0x10d5f384
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 4
je 0x10d5f356
mov eax, dword [eax]
jmp 0x10d5f35b
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.Create_temporary_texture_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x4144]
test edx, edx
mov dword [esp + 0x30], eax
je 0x10d5f887
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x10d5f887
test eax, eax
je 0x10d5f887
mov ecx, eax
call fcn.10a21d70
test eax, eax
je 0x10d5f887
mov esi, dword [ebx + 0x58]
cmp esi, ebp
jle 0x10d5f5e6
cmp esi, dword [ebx + 0x5c]
jg 0x10d5f5e6
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push 0
dec esi
push 0
lea ecx, [esp + 0x7c]
mov ebp, esi
sub ebp, edx
mov edx, dword [eax]
push ecx
push ebp
push eax
mov dword [esp + 0x50], esi
call dword [edx + 0x4c]
test eax, eax
jge 0x10d5f44d
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 5
je 0x10d5f41b
mov eax, dword [eax]
jmp 0x10d5f420
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.LockRect_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push 0
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x84]
push edx
push esi
call dword [eax + 0x44]
mov eax, dword [edi]
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x50]
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push ebp
push eax
call dword [edx + 0x48]
test eax, eax
jge 0x10d5f4d3
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 6
je 0x10d5f4a5
mov eax, dword [eax]
jmp 0x10d5f4aa
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.GetSurfaceLevel_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebp
push eax
call dword [ecx + 0x48]
test eax, eax
jge 0x10d5f532
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 7
je 0x10d5f505
mov eax, dword [eax]
jmp 0x10d5f50a
mov eax, 0x10e43c3c
push eax
mov eax, dword [0x10f43374]
push str.GetSurfaceLevel_failed__s_.
push eax
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esp + 0x48]
push 0
push ecx
push eax
call dword [edx + 0x78]
test eax, eax
jge 0x10d5f5a0
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 8
je 0x10d5f572
mov eax, dword [eax]
jmp 0x10d5f577
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.UpdateSurface_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebx + 0x5c]
jne 0x10d5f5d1
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], 0
mov dword [ebx + 0x64], 1
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0x68], 1
mov eax, dword [edx + 8]
mov dword [ebx + 0x60], eax
cmp dword [ebx + 0x58], ebp
jne 0x10d5f869
mov edi, dword [edi]
mov eax, dword [edi]
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push edi
call dword [eax + 0x4c]
test eax, eax
jge 0x10d5f653
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 9
je 0x10d5f625
mov eax, dword [eax]
jmp 0x10d5f62a
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.LockRect_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
push eax
call fcn.10d612f0
add esp, 4
test eax, eax
je 0x10d5f6a2
cmp edi, 4
jge 0x10d5f676
mov edi, 4
mov eax, dword [esp + 0x2c]
cmp eax, 4
jge 0x10d5f684
mov eax, 4
mov ecx, dword [esp + 0x24]
cdq
and edx, 3
add eax, edx
mov esi, eax
push edi
push ecx
sar esi, 2
call fcn.109ae660
add esp, 8
shl eax, 2
jmp 0x10d5f6b0
mov edx, dword [esp + 0x24]
push edi
push edx
call fcn.109ae660
add esp, 8
cmp dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
jne 0x10d5f6db
imul eax, esi
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x64]
xor eax, eax
mov edx, ecx
shr ecx, 2
and edx, 3
rep stosd dword es:[edi], eax
mov ecx, edx
rep stosb byte es:[edi], al
jmp 0x10d5f713
test esi, esi
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x28], ebp
jle 0x10d5f713
jmp 0x10d5f6f0
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
xor eax, eax
mov edx, ecx
shr ecx, 2
and edx, 3
rep stosd dword es:[edi], eax
mov ecx, edx
rep stosb byte es:[edi], al
add ebp, dword [esp + 0x60]
dec esi
mov dword [esp + 0x28], ebp
jne 0x10d5f6f0
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x54]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
call dword [edx + 0x48]
test eax, eax
jge 0x10d5f77f
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0xa
je 0x10d5f751
mov eax, dword [eax]
jmp 0x10d5f756
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.GetSurfaceLevel_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0
push eax
call dword [ecx + 0x48]
test eax, eax
jge 0x10d5f7df
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0xb
je 0x10d5f7b2
mov eax, dword [eax]
jmp 0x10d5f7b7
mov eax, 0x10e43c3c
push eax
mov eax, dword [0x10f43374]
push str.GetSurfaceLevel_failed__s_.
push eax
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esp + 0x24]
push 0
push ecx
push eax
call dword [edx + 0x78]
test eax, eax
jge 0x10d5f84d
lea esi, [esp + 0x48]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0xc
je 0x10d5f81f
mov eax, dword [eax]
jmp 0x10d5f824
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.UpdateSurface_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebx + 0x5c]
jge 0x10d5fd19
mov ecx, dword [esp + 0x30]
push eax
call fcn.10a25300
inc dword [ebx + 0x58]
jmp 0x10d5fd19
cmp ebp, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
jge 0x10d5fc31
xor esi, esi
mov dword [esp + 0x3c], esi
jmp 0x10d5f8a0
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x2c]
mov edi, dword [edi]
push 0
mov ecx, esi
sar eax, cl
sar ebp, cl
push 0
lea ecx, [esp + 0x50]
push ecx
push esi
mov dword [esp + 0x80], eax
mov eax, dword [edi]
push edi
mov dword [esp + 0xa4], ebp
call dword [eax + 0x4c]
test eax, eax
jge 0x10d5f925
lea esi, [esp + 0x94]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0xd
je 0x10d5f8f4
mov eax, dword [eax]
jmp 0x10d5f8f9
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.LockRect_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0x94]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10d5fb30
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
cmp ecx, 3
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ebp
je 0x10d5f952
cmp ecx, 7
je 0x10d5f952
cmp ecx, 8
jne 0x10d5f98c
cmp eax, 4
jge 0x10d5f960
mov esi, 4
mov dword [esp + 0x18], esi
cmp ebp, 4
mov eax, ebp
jge 0x10d5f96c
mov eax, 4
cdq
and edx, 3
add eax, edx
mov ebp, eax
push esi
sar ebp, 2
push ecx
mov dword [esp + 0x38], ebp
call fcn.109ae660
mov edi, eax
add esp, 8
shl edi, 2
jmp 0x10d5f998
push eax
push ecx
call fcn.109ae660
add esp, 8
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x10d5fad8
mov ecx, dword [esp + 0x34]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x5c], edi
mov esi, ecx
je 0x10d5fa6e
test ebp, ebp
jle 0x10d5fad8
mov eax, dword [esp + 0x8c]
dec eax
imul eax, dword [esp + 0x54]
shl eax, 2
mov dword [esp + 0x7c], eax
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x10d5fa5b
mov ebx, dword [esp + 0x84]
shl ebx, 2
mov edi, edx
lea esp, [esp]
mov eax, dword [ecx]
mov edx, eax
shr edx, 0x10
movzx bp, dh
movzx dx, dl
mov dword [esp + 0x74], eax
shr al, 4
add esi, 2
and ebp, 0xfff0
shl ebp, 4
add ecx, ebx
and edx, 0xfff0
add ebp, edx
movzx dx, ah
movzx ax, al
shl ebp, 4
and edx, 0xfff0
add ebp, edx
add ebp, eax
dec edi
mov word [esi - 2], bp
jne 0x10d5fa00
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x40]
add ecx, eax
dec edx
mov dword [esp + 0x40], edx
jne 0x10d5f9e5
jmp 0x10d5fad8
test ebp, ebp
jle 0x10d5fad8
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x10d5fad2
mov ebp, eax
mov eax, dword [ecx]
mov edx, eax
shr edx, 0x10
movzx di, dh
movzx dx, dl
mov dword [esp + 0x60], eax
add ecx, 4
add esi, 2
and edi, 0xfff0
shl edi, 4
and edx, 0xfff0
add edi, edx
mov dl, al
shr dl, 4
movzx dx, dl
movzx ax, ah
shl edi, 4
add edi, edx
and eax, 0xfff0
add edi, eax
dec ebp
mov word [esi - 2], di
jne 0x10d5fa80
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x5c]
dec dword [esp + 0x40]
jne 0x10d5fa76
cmp dword [esp + 0x48], edi
jne 0x10d5faf6
mov ecx, dword [esp + 0x34]
imul edi, ebp
mov edx, dword [esp + 0x4c]
push edi
push ecx
push edx
call fcn.10902f60
add esp, 0xc
jmp 0x10d5fb6b
test ebp, ebp
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
jle 0x10d5fb6b
mov dword [esp + 0x5c], ebp
mov ebp, eax
lea esp, [esp]
push edi
push ebp
push esi
call fcn.10902f60
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
add esp, 0xc
add esi, edx
add ebp, edi
dec eax
mov dword [esp + 0x5c], eax
jne 0x10d5fb10
jmp 0x10d5fb6b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x10d5fc06
mov ebp, dword [eax + 0x414c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
xor ecx, ecx
cmp esi, ebp
setge cl
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push eax
push esi
mov ecx, edi
call dword [edx + 0x44]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10d5fc06
mov ecx, dword [0x10f43380]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
mov dword [esp + 0x34], 0
jge 0x10d5fc06
mov eax, dword [esp + 0x88]
test eax, eax
je 0x10d5fbe4
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x70]
mov ecx, dword [0x10f43380]
imul eax, esi
mov edx, dword [ecx]
push 0x10e4401c
shl eax, 2
push eax
call dword [edx]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push 0
push edi
add esi, esi
push esi
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
inc eax
push eax
call dword [edx + 0x44]
jmp 0x10d5fc06
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
mov edx, dword [ecx]
inc eax
push eax
call dword [edx + 0x4c]
mov ecx, eax
call fcn.10a24fb0
mov eax, dword [ebx + 0x54]
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edi, [ebx + 0x54]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
inc esi
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], esi
jl 0x10d5f8a0
mov ecx, dword [0x10f43380]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x4750]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [eax]
push ecx
mov ecx, dword [edi]
push ecx
push eax
call dword [edx + 0x7c]
test eax, eax
jge 0x10d5fcae
lea esi, [esp + 0xa4]
call fcn.10d5e290
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0xb8], 0xe
je 0x10d5fc7d
mov eax, dword [eax]
jmp 0x10d5fc82
mov eax, 0x10e43c3c
mov edx, dword [0x10f43374]
push eax
push str.UpdateTexture_failed__s_.
push edx
call fcn.109baf50
add esp, 0xc
lea ecx, [esp + 0xa4]
mov dword [esp + 0xb8], 0xffffffff
call fcn.10902a90
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], 0
jmp 0x10d5fd19
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x2c], ecx
jmp 0x10d5fd19
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
test eax, eax
je 0x10d5fd11
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x4c]
test eax, eax
je 0x10d5fd11
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x4c]
mov ecx, eax
call fcn.109c36f0
push eax
mov eax, dword [0x10f43370]
push str.ERROR__ZERO_USIZE_OR_VSIZE_ON_TEXTURE:__s
push eax
call fcn.109baf50
add esp, 0xc
xor eax, eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x24]
test eax, eax
pop edi
jne 0x10d5fd2f
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x10d5fd2f
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x10d5fd3e
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebx + 0x10], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x44], ecx
mov ecx, dword [esp + 0xac]
pop esi
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x3c], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret 4