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

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xd0]
fld dword [esp + 0xcc]
mov edx, dword [eax + 4]
fstp dword [esp + 0x14]
push ebp
mov ebp, dword [eax + 8]
push esi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xdc]
mov esi, dword [ecx + 0xc]
shl esi, 8
or esi, dword [ecx]
push edi
mov edi, dword [eax]
mov eax, dword [eax + 0xc]
shl esi, 8
or esi, dword [ecx + 4]
add ebp, edi
shl esi, 8
or esi, dword [ecx + 8]
add eax, edx
cmp edi, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
jge 0x4a4fb1
cmp edx, eax
jge 0x4a4fb1
push ebx
mov ebx, dword [esp + 0xd4]
jmp 0x4a4da8
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
fld dword [esp + 0xd8]
sub eax, dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
mov dword [esp + 0x2c], eax
fsub qword [0x5d4fc0]
fstp dword [esp + 0x3c]
jmp 0x4a4dd4
mov eax, dword [esp + 0x2c]
mov ecx, ebp
sub ecx, edi
mov dword [esp + 0x14], eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push edi
call fcn.004981f0
fld dword [esp + 0x1c]
fsub qword [0x5d4fc0]
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ecx
fstp dword [esp + 0x10]
mov dword [esp + 0x80], esi
fld dword [esp + 0x10]
mov dword [esp + 0x84], ecx
fst dword [esp + 0x50]
mov dword [esp + 0xa0], esi
fld dword [esp + 0x3c]
mov dword [esp + 0xa4], ecx
fst dword [esp + 0x54]
fldz
fst dword [esp + 0x58]
fld1
fst dword [esp + 0x5c]
fld dword [esp + 0x4c]
fst dword [esp + 0x68]
fld dword [esp + 0x30]
fst dword [esp + 0x6c]
fxch st(5)
fst dword [esp + 0x70]
fild dword [esp + 0x14]
fadd st(5)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esp + 0x74]
fxch st(4)
fst dword [esp + 0x78]
fxch st(3)
fst dword [esp + 0x7c]
fxch st(2)
fstp dword [esp + 0x88]
fld dword [esp + 0x38]
fst dword [esp + 0x8c]
fild dword [esp + 0x20]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fst dword [esp + 0x90]
fxch st(5)
fstp dword [esp + 0x94]
fxch st(2)
fst dword [esp + 0x98]
fxch st(1)
fst dword [esp + 0x9c]
fld dword [esp + 0x48]
fst dword [esp + 0xa8]
fxch st(6)
fstp dword [esp + 0xac]
fxch st(4)
fstp dword [esp + 0xb0]
fxch st(2)
fstp dword [esp + 0xb4]
fxch st(1)
mov edx, dword [ebx]
fstp dword [esp + 0xb8]
push str.SetTexture_gTexture
fxch st(1)
fstp dword [esp + 0xc0]
push eax
mov eax, dword [edx + 0x8c]
fxch st(1)
fstp dword [esp + 0xd0]
push ecx
push ebx
fstp dword [esp + 0xdc]
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], ecx
call eax
push eax
call fcn.004a44c0
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x64]
add esp, 8
push str.DrawPrimitive__Tri__1
push 0
push 4
lea edx, [esp + 0x5c]
push edx
push 0x1c4
push 5
push ebx
call eax
push eax
call fcn.004a44c0
fld dword [esp + 0x18]
add edi, dword [esp + 0x28]
fadd dword [esp + 0x24]
add esp, 8
cmp edi, ebp
fstp dword [esp + 0x1c]
jl 0x4a4dd0
fild dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
fadd dword [esp + 0x24]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x24]
jl 0x4a4da0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc0
ret 0x14