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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58829c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1c]
push eax
mov edx, dword [eax]
mov eax, dword [edx + 0xc0]
call eax
mov eax, dword [edi + 0x1c]
push 1
push eax
fstp dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x174]
test al, al
je 0x4906d7
mov dword [edi + 0x20], 0
mov eax, dword [edi + 0x1c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x4906f0
mov dword [edi + 0x20], 1
mov eax, dword [edi + 0x1c]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x174]
test al, al
je 0x490709
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x1c]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x490722
mov dword [edi + 0x24], 1
mov ebx, dword [edi + 0xa8]
dec ebx
js 0x490969
nop
mov eax, dword [edi + 0xa8]
dec eax
cmp ebx, 0xffffffff
jge 0x490741
or ebx, 0xffffffff
jmp 0x490746
cmp ebx, eax
cmovg ebx, eax
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [edi + 0xb0]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0x9c]
mov eax, dword [edi + 0xb0]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0xd4]
mov ecx, dword [edi + 0xb0]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0xa4], 0
je 0x490962
cmp dword [edi + 0x90], eax
jne 0x4907a1
mov dword [edi + 0x90], 0
mov eax, dword [edi + 0xb4]
cmp eax, dword [ecx + ebx*4]
jne 0x4907b6
mov dword [edi + 0xb4], 0
mov eax, dword [edi + 0x94]
cmp eax, dword [ecx + ebx*4]
jne 0x4907cb
mov dword [edi + 0x94], 0
mov eax, dword [edi + 0x619c]
cmp eax, dword [ecx + ebx*4]
jne 0x4907e4
test eax, eax
je 0x4907e4
mov dword [edi + 0x619c], 0
mov eax, dword [edi + 0xb0]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x2c]
cmp eax, 2
je 0x490800
cmp eax, 0x3e0
jne 0x490923
cmp dword [esi + 0x1c], 0
jle 0x490923
lea ebx, [ebx]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, dword [edi + 0x90]
jne 0x490827
mov dword [edi + 0x90], 0
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, dword [edi + 0xb4]
jne 0x49083e
mov dword [edi + 0xb4], 0
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, dword [edi + 0x94]
jne 0x490855
mov dword [edi + 0x94], 0
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, dword [edi + 0x619c]
jne 0x490875
cmp dword [edi + 0x619c], 0
je 0x490875
mov dword [edi + 0x619c], 0
mov eax, dword [esi + 0x24]
xor edx, edx
mov ecx, dword [edi + 0xa8]
mov ebx, dword [eax]
mov eax, dword [edi + 0xb0]
mov dword [edi + 0x9c], eax
test ecx, ecx
jle 0x4908aa
mov eax, dword [edi + 0x9c]
cmp ebx, dword [eax]
je 0x4908ad
add eax, 4
inc edx
mov dword [edi + 0x9c], eax
cmp edx, ecx
jl 0x490892
or edx, 0xffffffff
mov dword [edi + 0xa0], edx
cmp edx, 0xffffffff
je 0x4908df
lea eax, [ecx - 1]
cmp edx, eax
jge 0x4908d9
nop
mov ecx, dword [edi + 0xb0]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [edi + 0xa8]
dec eax
cmp edx, eax
jl 0x4908c0
dec dword [edi + 0xa8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4908ee
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x1c]
xor edx, edx
dec eax
test eax, eax
jle 0x490913
jmp 0x490900
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [esi + 0x1c]
dec eax
cmp edx, eax
jl 0x490900
dec dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0
jg 0x490810
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi + 0xb0]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x490936
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0xa8]
mov edx, ebx
dec eax
cmp ebx, eax
jge 0x49095c
mov ecx, dword [edi + 0xb0]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [edi + 0xa8]
dec eax
cmp edx, eax
jl 0x490943
dec dword [edi + 0xa8]
dec ebx
jns 0x490730
mov eax, dword [edi + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x180]
cmp dword [edi + 0x28], 1
mov ebx, eax
jne 0x490a65
cmp dword [edi + 0xa8], 0
je 0x490a65
test ebx, ebx
je 0x490a65
cmp ebx, 1
je 0x490a65
cmp ebx, 2
je 0x490a65
mov eax, dword [edi + 0x90]
test eax, eax
je 0x490a65
push 0xffffffffffffffff
add eax, 0x17c
mov dword [ebp - 0x14], 0xf
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402280
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x2c], eax
mov esi, dword [eax]
mov eax, dword [edi + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x184]
mov ecx, dword [ebp - 0x2c]
push eax
push ebx
call dword [esi + 0x48]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov eax, dword [edi + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x184]
push eax
push ebx
mov ebx, dword [ebp - 0x2c]
mov ecx, ebx
call dword [esi + 0xac]
cmp dword [ebx + 0x190], 0x10
lea eax, [ebx + 0x17c]
mov ecx, dword [eax + 0x10]
jb 0x490a32
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
call fcn.00405ba0
test eax, eax
je 0x490a5d
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00405b00
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xb4]
lea ecx, [ebp - 0x28]
call fcn.00402680
mov dword [edi + 0x94], 0
mov dword [ebp - 0x38], vtable.phVector2d.0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x30]
mov eax, dword [edi + 0x1c]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x158]
cmp dword [edi + 0xb4], 0
jne 0x490bc2
xor bl, bl
mov dword [edi + 0xd4], 0xffffffff
cmp dword [edi + 0x619c], 0
je 0x490abd
mov dword [edi + 0x619c], 0
mov esi, dword [edi + 0xa8]
dec esi
js 0x490c27
lea ebx, [ebx]
mov eax, dword [edi + 0xb0]
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x30], 3
je 0x490bb9
mov dword [edx + 0x30], 0
test bl, bl
jne 0x490bb9
movss xmm0, dword [edx + 0x64]
lea ecx, [edx + 0x40]
movss xmm1, dword [ebp - 0x30]
comiss xmm0, xmm1
ja 0x490bb9
comiss xmm1, dword [ecx + 0x3c]
ja 0x490bb9
movss xmm1, dword [ebp - 0x34]
comiss xmm1, dword [ecx + 0x2c]
ja 0x490bb9
movss xmm0, dword [ecx + 0x20]
comiss xmm0, xmm1
ja 0x490bb9
cmp dword [edx + 0x34], 0
je 0x490bb1
lea ebx, [edi + 0xdc]
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
call fcn.00499b80
mov dword [edi + 0xd8], eax
cmp eax, 0xffffffff
je 0x490b77
mov dword [edi + 0xd4], 0
jmp 0x490bb1
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
call fcn.004998e0
mov dword [edi + 0xd8], eax
cmp eax, 0xffffffff
je 0x490bb1
mov dword [edi + 0xd4], 1
mov dword [edi + 0x94], edx
mov bl, 1
dec esi
jns 0x490ad0
jmp 0x490c27
cmp dword [edi + 0x619c], 0
je 0x490bd5
mov dword [edi + 0x619c], 0
mov ecx, dword [edi + 0xa8]
dec ecx
js 0x490c27
mov eax, dword [edi + 0xb0]
movss xmm2, dword [ebp - 0x30]
movss xmm1, dword [ebp - 0x34]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
cmp dword [eax + 0x30], 3
je 0x490c19
movss xmm0, dword [eax + 0x64]
comiss xmm0, xmm2
ja 0x490c19
comiss xmm2, dword [eax + 0x7c]
ja 0x490c19
comiss xmm1, dword [eax + 0x6c]
ja 0x490c19
movss xmm0, dword [eax + 0x60]
comiss xmm0, xmm1
jbe 0x490c21
sub edx, 4
dec ecx
jns 0x490bf1
jmp 0x490c27
mov dword [edi + 0x94], eax
mov eax, dword [edi + 0x94]
test eax, eax
je 0x490da4
cmp dword [edi + 0xb4], 0
jne 0x490da4
mov dword [eax + 0x30], 1
mov eax, dword [edi + 0x1c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x490d37
mov esi, dword [edi + 0x94]
mov dword [edi + 0xb4], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x490c8c
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x490c89
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x490c80
push ecx
jmp 0x490c8d
push esi
mov ecx, edi
call fcn.00491380
mov ecx, dword [edi + 0xb4]
movss xmm0, dword [ebp - 0x34]
mov dword [edi + 0x90], esi
push 0
mov eax, dword [ecx + 0x54]
sub esp, 0xc
mov dword [edi + 0xcc], eax
mov eax, dword [ecx + 0x58]
mov dword [edi + 0xd0], eax
mov eax, esp
subss xmm0, dword [edi + 0xcc]
movss dword [edi + 0xcc], xmm0
movss xmm0, dword [ebp - 0x30]
subss xmm0, dword [edi + 0xd0]
movss dword [edi + 0xd0], xmm0
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x54]
push 0
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xbc]
mov eax, dword [edi + 0x1c]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x490da4
push 1
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x54]
push 1
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0xbc]
movss xmm0, dword [edi + 0xbc]
addss xmm0, dword [ebp - 0x3c]
comiss xmm0, dword [edi + 0xc0]
movss dword [edi + 0xbc], xmm0
jbe 0x490dcc
mov dword [edi + 0xc4], 0
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x491076
cmp dword [eax + 0x30], 3
jne 0x490def
mov dword [edi + 0xb4], 0
jmp 0x491076
mov dword [edi + 0x90], eax
mov eax, dword [edi + 0x1c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x178]
test al, al
je 0x490e14
mov eax, dword [edi + 0xb4]
mov dword [eax + 0x30], 2
mov eax, dword [edi + 0x1c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x174]
test al, al
je 0x490ec0
mov ecx, dword [edi + 0xb4]
cmp dword [edi + 0x94], ecx
jne 0x490eb6
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp dword [edi + 0xc4], 1
jne 0x490e8d
mov ecx, dword [edi + 0xb4]
cmp dword [edi + 0xb8], ecx
jne 0x490e8d
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov dword [edi + 0xc4], 0
cmp dword [edi + 0xc4], 0
jne 0x490eaa
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc4], 1
mov eax, dword [edi + 0xb4]
mov dword [edi + 0xb8], eax
mov dword [edi + 0xb4], 0
cmp dword [edi + 0xb4], 0
je 0x491076
cmp dword [edi + 0x20], 0
je 0x491076
mov eax, dword [edi + 0xd4]
cmp eax, 0xffffffff
jne 0x490fe7
push 0
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, dword [edi + 0xb4]
cmp dword [ecx + 0x38], 0
je 0x491076
movss xmm1, dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x30]
subss xmm1, dword [edi + 0xcc]
subss xmm0, dword [edi + 0xd0]
mov dword [ebp - 0x1c], vtable.phVector2d.0
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x30], xmm0
movss xmm2, dword [ecx + 0x54]
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x18], xmm2
movss xmm2, dword [ecx + 0x58]
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x14], xmm2
add ecx, 0x40
mov byte [ebp - 4], 2
sub esp, 8
mov eax, dword [ecx]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call dword [eax + 8]
movss xmm0, dword [ebp - 0x30]
sub esp, 8
subss xmm0, dword [ebp - 0x2c]
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [ebp - 0x3c]
movss dword [esp], xmm0
call dword [eax + 0x78]
movss xmm0, dword [ebp - 0x30]
sub esp, 8
subss xmm0, dword [ebp - 0x2c]
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [ebp - 0x3c]
movss dword [esp], xmm0
call dword [eax + 0xe4]
jmp 0x491076
test eax, eax
jne 0x49102c
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0xb4]
push dword [edi + 0xd8]
add ecx, 0x40
call fcn.00499e30
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xe0]
cmp dword [edi + 0xd4], 1
jne 0x491076
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 8], xmm0
mov ecx, dword [edi + 0xb4]
push dword [edi + 0xd8]
add ecx, 0x40
call fcn.0049a0b0
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0xe0]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret