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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1104
call fcn.00515ce0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 8]
cmp ecx, esi
mov dword [esp + 0x50], eax
jne 0x485a84
mov ecx, dword [edi + 0x7c]
mov dword [esp + 0x64], esi
cmp ecx, esi
je 0x485a8c
mov dword [esp + 0x64], 1
cmp eax, esi
jne 0x485a98
mov dword [esp + 0x50], 0x2fa
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0xc0]
push eax
push edi
lea edx, [esp + 0x98]
push ecx
push edx
call fcn.00489810
fild dword [esp + 0x60]
movsx eax, word [edi + 0x66]
fstp qword [esp + 0x88]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x18]
fild dword [esp + 0x54]
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
fmul qword [esp + 0x78]
fmul qword [0x51fd28]
fstp qword [esp + 0x38]
jbe 0x48648e
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x28]
lea ecx, [edi - 8]
mov dword [esp + 0x54], ecx
mov edx, dword [ebp + 0x14]
mov cl, byte [edx]
mov eax, ecx
and eax, 0xff
shr eax, 6
sub eax, 0
je 0x4862ca
dec eax
je 0x485e95
dec eax
jne 0x486451
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0xf0]
push edx
mov edx, dword [ebp + 8]
add ecx, 0xfffffff0
push eax
push ecx
push edx
call fcn.0048b230
mov ecx, dword [esp + 0x100]
add esp, 0x10
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xf4]
inc eax
mov dword [esp + 0x6c], ecx
xor edx, edx
mov dword [esp + 0x20], eax
lea ecx, [eax - 1]
mov dword [esp + 0x58], edx
cmp ecx, edx
mov dword [esp + 0x50], edx
jle 0x485e45
lea ecx, [esp + 0xf8]
mov dword [esp + 0x44], ecx
mov edx, dword [ecx - 8]
mov eax, dword [ecx - 4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edi, 1
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x485bd4
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x24]
push edx
push ecx
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
call fcn.0043d2a0
add esp, 0x18
mov edi, eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.00489bf0
add esp, 0x14
lea eax, [esp + 0x90]
lea ecx, [esp + 0xc]
push 1
push eax
push ecx
call sub.CRLUTL110.dll__UTLTransformPoint_12
fild dword [esp + 0xc]
fild dword [esp + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
call sub.MSVCRT.dll__ftol
fstp st(0)
fstp st(0)
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
test edi, edi
fmul qword [0x51fd28]
fstp qword [esp + 0x18]
jne 0x485c44
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
fld qword [esp + 0x18]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x485e16
fld qword [esp + 0x18]
fcomp qword [0x51be98]
fnstsw ax
test ah, 0x40
jne 0x485e16
fld qword [esp + 0x18]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x485e16
fld qword [esp + 0x38]
fdiv qword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x40]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub edx, eax
add edi, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], edi
fild dword [esp + 0x40]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
add ecx, eax
mov al, byte [esp + 0x14]
test al, 1
fstp st(0)
mov dword [esp + 0x10], ecx
jne 0x485d63
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jne 0x485d12
mov eax, dword [esp + 0x24]
mov dword [ebx + esi*8], eax
mov ecx, dword [esp + 0x28]
mov dword [ebx + esi*8 + 4], ecx
mov edx, dword [esp + 0xc]
inc esi
mov dword [ebx + esi*8], edx
mov eax, dword [esp + 0x10]
mov dword [ebx + esi*8 + 4], eax
jmp 0x485d5e
mov edx, dword [esp + 0x68]
mov dword [ebx + esi*8], edx
mov edx, dword [esp + 0x6c]
mov dword [ebx + esi*8 + 4], edx
lea edx, [eax + 1]
inc esi
cmp edx, ecx
jg 0x485d4f
mov eax, dword [esp + 0x58]
lea ecx, [ebx + esi*8]
sub eax, edx
lea edi, [esp + edx*8 + 0xf0]
inc eax
add esi, eax
mov edx, dword [edi]
add edi, 8
mov dword [ecx], edx
mov edx, dword [edi - 4]
mov dword [ecx + 4], edx
add ecx, 8
dec eax
jne 0x485d3c
mov eax, dword [esp + 0xc]
mov dword [ebx + esi*8], eax
mov ecx, dword [esp + 0x10]
mov dword [ebx + esi*8 + 4], ecx
mov edi, dword [esp + 0xc]
inc esi
cmp esi, 1
jbe 0x485d78
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [eax + 8]
mov edi, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
fld qword [esp + 0x18]
fsub qword [esp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
xor esi, esi
inc eax
xor cx, cx
fstp qword [esp + 0x18]
mov dword [esp + 0x14], eax
mov cl, al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], edi
cmp cx, word [eax + 0x64]
jb 0x485dbd
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
movsx eax, word [eax + edx*2 + 0x66]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x40]
cmp edi, eax
fmul qword [esp + 0x78]
fmul qword [0x51fd28]
fstp qword [esp + 0x38]
jne 0x485df0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
cmp ecx, eax
je 0x485e06
fld qword [esp + 0x18]
fcomp qword [0x51be98]
fnstsw ax
test ah, 0x40
jne 0x485e16
jmp 0x485c6c
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fld qword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
fsub qword [esp + 0x18]
mov ecx, dword [esp + 0x44]
inc edx
lea edi, [eax - 1]
add ecx, 8
cmp edx, edi
mov dword [esp + 0x58], edx
fstp qword [esp + 0x38]
mov dword [esp + 0x44], ecx
jl 0x485b7b
test byte [esp + 0x14], 1
jne 0x4861a1
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [ebx + esi*8], edx
mov edx, dword [esp + 0x50]
mov dword [ebx + esi*8 + 4], ecx
inc esi
lea edi, [edx + 1]
cmp edi, eax
jge 0x4861a1
sub eax, edi
lea ecx, [ebx + esi*8]
lea edx, [esp + edi*8 + 0xf0]
add esi, eax
mov edi, dword [edx]
add edx, 8
mov dword [ecx], edi
mov edi, dword [edx - 4]
mov dword [ecx + 4], edi
add ecx, 8
dec eax
jne 0x485e7d
jmp 0x4861a1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x18]
dec eax
cmp dword [esp + 0x34], eax
je 0x485ec6
test byte [edx + 1], 0xc0
jne 0x485f50
test cl, 8
jne 0x485f50
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
push edi
call fcn.00489b70
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x74]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
call fcn.00489bf0
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0xec]
lea eax, [esp + 0xbc]
push edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx + 0x80]
push ecx
push eax
call fcn.0048aad0
add esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x30], edx
test eax, eax
mov edi, 1
je 0x485f9e
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.0043d2a0
add esp, 0x18
mov edi, eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.00489bf0
add esp, 0x14
lea eax, [esp + 0x90]
lea ecx, [esp + 0xc]
push 1
push eax
push ecx
call sub.CRLUTL110.dll__UTLTransformPoint_12
fild dword [esp + 0xc]
fild dword [esp + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
call sub.MSVCRT.dll__ftol
fstp st(0)
fstp st(0)
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
test edi, edi
fmul qword [0x51fd28]
fstp qword [esp + 0x18]
jne 0x48600e
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
fld qword [esp + 0x18]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x48616e
fld qword [esp + 0x18]
fcomp qword [0x51be98]
fnstsw ax
test ah, 0x40
jne 0x48616e
mov edi, dword [esp + 0x24]
fld qword [esp + 0x18]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x486172
fld qword [esp + 0x38]
fdiv qword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x20]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edx
add eax, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
fild dword [esp + 0x20]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
add ecx, eax
mov al, byte [esp + 0x14]
test al, 1
fstp st(0)
mov dword [esp + 0x10], ecx
jne 0x4860c5
mov dword [ebx + esi*8], edi
mov edx, dword [esp + 0x28]
mov dword [ebx + esi*8 + 4], edx
mov eax, dword [esp + 0xc]
inc esi
mov dword [ebx + esi*8], eax
mov ecx, dword [esp + 0x10]
mov dword [ebx + esi*8 + 4], ecx
inc esi
cmp esi, 1
jbe 0x4860d6
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [eax + 8]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
fld qword [esp + 0x18]
fsub qword [esp + 0x38]
mov edx, dword [esp + 0x10]
xor esi, esi
inc eax
xor cx, cx
mov dword [esp + 0x14], eax
mov cl, al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
fstp qword [esp + 0x18]
cmp cx, word [eax + 0x64]
mov dword [esp + 0x28], edx
jb 0x48610f
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
movsx eax, word [eax + edx*2 + 0x66]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x20]
cmp ecx, eax
fmul qword [esp + 0x78]
fmul qword [0x51fd28]
fstp qword [esp + 0x38]
jne 0x486146
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
cmp edx, eax
je 0x48615c
fld qword [esp + 0x18]
fcomp qword [0x51be98]
fnstsw ax
test ah, 0x40
jne 0x486172
jmp 0x48603a
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jmp 0x486172
mov edi, dword [esp + 0x24]
fld qword [esp + 0x38]
fsub qword [esp + 0x18]
test byte [esp + 0x14], 1
fstp qword [esp + 0x38]
jne 0x4861a1
mov dword [ebx + esi*8], edi
mov eax, dword [esp + 0x28]
mov dword [ebx + esi*8 + 4], eax
mov ecx, dword [esp + 0x2c]
inc esi
mov dword [ebx + esi*8], ecx
mov edx, dword [esp + 0x30]
mov dword [ebx + esi*8 + 4], edx
inc esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x34]
dec eax
cmp ecx, eax
je 0x4861ba
mov ecx, dword [ebp + 0x14]
test byte [ecx + 1], 0xc0
jne 0x4862b2
mov edx, dword [ebp + 0x14]
test byte [edx], 8
jne 0x4862b2
cmp esi, 1
jbe 0x4861d7
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [eax + 8]
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
test eax, eax
mov dword [esp + 0x4c], ecx
je 0x4862b5
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4862b5
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x5c]
xor esi, esi
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.00489b70
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.00489bf0
mov eax, dword [ebp + 0x14]
add esp, 0x2c
mov cl, byte [eax]
and cl, 0xc0
cmp cl, 0x40
je 0x48625c
mov edx, dword [ebp + 0xc]
test byte [edx], 0x40
jne 0x48625c
mov esi, 1
mov eax, dword [ebp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x908]
push 0x4804
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0xd0]
push ebx
lea eax, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x74]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x70]
push eax
mov eax, dword [edx + 0x80]
push ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00489c30
add esp, 0x38
mov esi, 1
jmp 0x4862b5
mov edi, dword [ebp + 0x10]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jmp 0x486451
cmp esi, 1
jbe 0x4862db
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [eax + 8]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x88]
push eax
mov eax, dword [ebp + 0x14]
movsx edx, word [ecx + 0x66]
mov dword [esp + 0x24], edx
mov ecx, dword [ebp + 0x18]
fild dword [esp + 0x24]
mov edx, dword [esp + 0x38]
push ecx
push edx
xor esi, esi
fmul qword [esp + 0x84]
push eax
push edi
mov dword [esp + 0x28], esi
fmul qword [0x51fd28]
fstp qword [esp + 0x4c]
call fcn.004899d0
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
push edi
call fcn.00489a40
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
add esp, 0x28
mov dword [esp + 0x48], edx
test eax, eax
je 0x486451
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x486451
mov eax, dword [ebp + 0x14]
test byte [eax], 8
jne 0x486451
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x34]
dec ecx
cmp edx, ecx
jae 0x486451
test byte [eax + 1], 0xc0
je 0x486451
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x70]
mov dword [esp + 0x44], esi
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
push edi
call fcn.00489ac0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x8c]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
call fcn.00489bf0
mov ecx, dword [ebp + 0x14]
add esp, 0x30
mov dl, byte [ecx + 1]
and dl, 0xc0
cmp dl, 0x40
je 0x4863f8
mov eax, dword [ebp + 0xc]
test byte [eax], 0x40
jne 0x4863f8
mov dword [esp + 0x44], 1
mov ecx, dword [ebp + 0x1c]
push 1
push ecx
lea edx, [esp + 0x908]
push 0x4803
push edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0xd0]
push ebx
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x70]
add eax, 0x10
push edx
mov edx, dword [ecx + 0x7c]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00489c30
add esp, 0x38
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
inc eax
inc edx
add edi, 8
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x54]
add edx, 8
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [ebp + 0x10], edi
mov dword [esp + 0x54], edx
jb 0x485afa
cmp esi, 1
jbe 0x48648e
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [eax + 8]
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret