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

Disassembly:
sub esp, 0xb8
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
call fcn.004850d0
test al, al
je 0x4a6365
mov eax, dword [esp + 0xc8]
push ebx
push esi
mov esi, dword [esp + 0xcc]
xor ebx, ebx
push ebx
push esi
push eax
mov ecx, edi
call fcn.00485da0
mov ecx, dword [esp + 0xc8]
fild dword [ecx]
mov eax, dword [esi + 0xc]
fld qword [0x5d4fc0]
shl eax, 8
or eax, dword [esi]
fsub st(1), st(0)
mov dword [esp + 0x58], ebx
fxch st(1)
shl eax, 8
or eax, dword [esi + 4]
fstp dword [esp + 0x10]
mov dword [esp + 0x78], ebx
shl eax, 8
fisubr dword [ecx + 4]
or eax, dword [esi + 8]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x94], eax
fstp dword [esp + 0x20]
fild dword [ecx + 8]
fstp dword [esp + 0xc]
fild dword [ecx + 0xc]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fst dword [esp + 0x44]
fld dword [esp + 0x20]
fst dword [esp + 0x48]
fldz
fst dword [esp + 0x4c]
fld1
fst dword [esp + 0x50]
fxch st(1)
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fxch st(3)
fst dword [esp + 0x64]
fld dword [esp + 0x18]
fadd st(3)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x68]
fxch st(4)
fst dword [esp + 0x6c]
fxch st(2)
fst dword [esp + 0x70]
fxch st(2)
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fld dword [esp + 0xc]
fadd st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [esp + 0x84]
fxch st(4)
fst dword [esp + 0x88]
fxch st(1)
fst dword [esp + 0x8c]
fxch st(3)
fst dword [esp + 0x90]
fxch st(3)
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xac]
fxch st(4)
fst dword [esp + 0xa4]
fxch st(5)
fst dword [esp + 0xa8]
fxch st(3)
fstp dword [esp + 0xb0]
fxch st(3)
mov dword [esp + 0xb4], eax
fst dword [esp + 0xbc]
mov dword [esp + 0xb8], ebx
fstp dword [esp + 0xc0]
cmp dword [edi + 0x78], ebx
je 0x4a6315
fst dword [esp + 0x24]
push ebp
fstp dword [esp + 0x30]
lea ebx, [esp + 0x4c]
fxch st(1)
lea esi, [esp + 0x28]
fst dword [esp + 0x2c]
mov dword [esp + 0x14], 4
fstp dword [esp + 0x3c]
fst dword [esp + 0x34]
fstp dword [esp + 0x44]
fst dword [esp + 0x38]
fstp dword [esp + 0x40]
mov ebp, dword [edi + 0x74]
mov edi, dword [edi + 0x60]
test edi, edi
jne 0x4a6286
call fcn.0059ec50
mov ebp, dword [ebp + 4]
test edi, edi
je 0x4a6291
mov eax, dword [edi]
jmp 0x4a6293
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4a629d
call fcn.0059ec50
test edi, edi
jne 0x4a6311
call fcn.0059ec50
cmp ebp, dword [edi + 0x14]
jne 0x4a62b0
call fcn.0059ec50
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.00468030
mov edx, dword [eax]
mov dword [esi], edx
fld dword [esi]
fld qword [0x5d4fc0]
mov eax, dword [eax + 4]
fsub st(1), st(0)
mov edi, dword [esp + 0x18]
fxch st(1)
mov dword [esi + 4], eax
add esi, 8
fstp dword [esp + 0x10]
add ebx, 0x20
sub dword [esp + 0x14], 1
fld dword [esp + 0x10]
fst dword [esi - 8]
fld dword [esi - 4]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esi - 4]
fstp dword [ebx - 0x20]
fstp dword [ebx - 0x24]
jne 0x4a6277
xor ebx, ebx
pop ebp
jmp 0x4a631d
mov edi, dword [edi]
jmp 0x4a62a6
fstp st(0)
fstp st(1)
fstp st(0)
fstp st(0)
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push str.SetTexture_NULL
push ebx
push ebx
push eax
call edx
push eax
call fcn.004a44c0
mov edi, dword [edi + 0x20]
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
add esp, 8
push str.DrawPrimitive__Rect_
push ebx
push 4
lea ecx, [esp + 0x50]
push ecx
push 0x1c4
push 5
push edi
call edx
push eax
call fcn.004a44c0
add esp, 8
pop esi
pop ebx
pop edi
add esp, 0xb8
ret 0xc