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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [ebp + 0x1c], 2
push ebx
mov ebx, dword [ebp + 0x14]
sete cl
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
lea edi, [ecx + 1]
push edi
mov ecx, esi
call sym.awt.dll_public:_int___thiscall_D3DContext::IsTextureFilteringSupported_enum__D3DTEXTUREFILTERTYPE_
neg eax
sbb eax, eax
and eax, edi
cmp byte [ebp + 0x18], 0
mov dword [esp + 0x28], eax
je 0x10012907
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x24]
push edx
call fcn.1001c300
jmp 0x1001294e
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x10012928
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100b4c22
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1001290e
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x24]
push edx
push eax
push 0x100
push 0x100
call fcn.1001c470
mov edi, eax
test edi, edi
jns 0x1001297c
push 0x100ba84c
push 1
push 1
call fcn.100130d0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100b4c22
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x38]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0x20]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x2c]
sub eax, dword [ebp + 0x24]
fst qword [esp + 0x90]
mov dword [esp + 0x50], ecx
fld qword [ebp + 0x40]
mov dword [esp + 0x14], eax
fsub qword [ebp + 0x30]
push 8
fild dword [esp + 0x30]
mov ecx, esi
fdivrp st(2)
fdivrp st(1)
fstp qword [esp + 0xa4]
fild dword [esp + 0x20]
fst qword [esp + 0xbc]
fld qword [ebp + 0x48]
fsub qword [ebp + 0x38]
fild dword [esp + 0x18]
fdivrp st(2)
fdivrp st(1)
fstp qword [esp + 0x8c]
call sym.awt.dll_public:_long_int___thiscall_D3DContext::BeginScene_signed_char_
test eax, eax
js 0x10012d50
push 0
push edi
mov ecx, esi
call sym.awt.dll_public:_long_int___thiscall_D3DContext::SetTexture_struct_IDirect3DTexture9___unsigned_long_int_
mov edi, eax
test edi, edi
js 0x10012d4e
mov edx, dword [esp + 0x28]
mov ebx, dword [esi + 0x28]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x114]
push edx
push 5
push 0
push ebx
mov dword [esp + 0x78], ebx
call eax
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x114]
push edx
push 6
push 0
push ebx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x114]
push 3
push 1
push 0
push ebx
call edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0x114]
push 3
push 2
push 0
push ebx
call ecx
fld qword [ebp + 0x38]
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x2c]
jge 0x10012d4c
mov ebx, dword [esp + 0x1c]
fld qword [ebp + 0x48]
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x88]
mov eax, ebx
neg eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x30], ecx
jmp 0x10012a99
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x64], eax
cmp eax, dword [ebp + 0x2c]
jle 0x10012ab0
mov ebx, ecx
mov dword [esp + 0x14], ecx
jmp 0x10012ab4
mov dword [esp + 0x14], ebx
fld st(2)
fadd st(1)
fst qword [esp + 0xa8]
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x10012ace
fld st(2)
fsub st(4)
jmp 0x10012ad0
fld st(1)
mov ecx, dword [ebp + 0x20]
fst qword [esp + 0x70]
fld qword [ebp + 0x30]
mov dword [esp + 0x10], ecx
fst qword [esp + 0x78]
cmp ecx, dword [ebp + 0x28]
jge 0x10012d65
fstp st(2)
mov edi, dword [esp + 0x20]
fstp st(3)
mov eax, edi
fstp st(1)
neg eax
fild dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
fdiv qword [esp + 0xb8]
fstp qword [esp + 0xb0]
fld st(1)
fadd st(3)
fstp dword [esp + 0x60]
fxch st(2)
fstp dword [esp + 0x58]
fild dword [esp + 0x1c]
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fstp dword [esp + 0x4c]
jmp 0x10012b3f
fld qword [esp + 0x70]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edi]
mov dword [esp + 0x54], eax
cmp eax, dword [ebp + 0x28]
jle 0x10012b53
mov edi, dword [esp + 0x14]
fld st(1)
mov dword [esp + 0x38], edi
fld qword [esp + 0xa0]
fadd st(1), st(0)
fxch st(1)
fst qword [esp + 0x98]
fld qword [ebp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10012b7f
fstp st(1)
fsubrp st(2)
jmp 0x10012b83
fstp st(3)
fstp st(2)
cmp byte [ebp + 0x18], 0
fxch st(1)
fst qword [esp + 0x80]
fild dword [esp + 0x38]
fdiv qword [esp + 0x90]
fstp qword [esp + 0x38]
je 0x10012bc8
mov eax, dword [esp + 0x48]
fstp st(0)
push 0
fstp st(0)
push 0
push ebx
push edi
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push edx
push eax
call sym.awt.dll_long_int___cdecl_D3DBL_CopyImageToIntXrgbSurface_struct_SurfaceDataRasInfo___int__class_D3DResource___long_int__long_int__long_int__long_int__long_int__long_int_
add esp, 0x24
jmp 0x10012c4d
fild dword [esp + 0x10]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
fadd st(1)
call fcn.100b4c40
fild dword [esp + 0x18]
mov dword [esp + 0xdc], eax
fadd st(2)
call fcn.100b4c40
mov dword [esp + 0xe0], eax
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
call fcn.100b4c40
mov dword [esp + 0xcc], eax
call fcn.100b4c40
push 0
lea edx, [esp + 0xc8]
push edx
mov edx, dword [esp + 0x58]
push edx
lea edx, [esp + 0xe0]
push edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
fld qword [esp + 0xb0]
sub esp, 0x20
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x30]
mov edx, dword [esp + 0x40]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
fld qword [esp + 0x58]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x80]
fstp dword [esp + 0xc]
fld qword [esp + 0xa0]
fld qword [esp + 0x98]
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [esp + 0x78]
fstp dword [esp + 4]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
push ebx
fld dword [esp + 0x68]
push edi
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x7c]
fstp dword [esp]
push ecx
push edx
push eax
call fcn.10012500
mov ecx, dword [esi + 4]
add esp, 0x3c
push 0
call sym.awt.dll_public:_long_int___thiscall_D3DVertexCacher::Render_int_
fld qword [esp + 0x98]
mov ecx, dword [esp + 0x54]
fst qword [esp + 0x78]
mov edx, dword [esp + 0x5c]
add dword [esp + 0x14], edx
mov edi, eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebp + 0x28]
jl 0x10012b37
fstp st(0)
fld qword [ebp + 0x48]
fld qword [esp + 0x88]
fld qword [esp + 0xa8]
fxch st(2)
fxch st(1)
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
add ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
cmp eax, dword [ebp + 0x2c]
jl 0x10012a95
fstp st(2)
fstp st(0)
fstp st(0)
mov eax, edi
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b4c22
mov esp, ebp
pop ebp
ret
fstp st(0)
fstp st(4)
fstp st(3)
jmp 0x10012d2b