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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557d56
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x58829c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov ebx, dword [sym.imp.msvcr120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x48
call ebx
add esp, 4
test eax, eax
je 0x47058c
mov dword [eax + 0x20], 0x437f0000
mov dword [eax + 0x3c], 0x437f0000
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
jmp 0x47058e
xor eax, eax
mov ecx, eax
mov dword [esi], eax
call fcn.004bd520
push 0x61c4
call ebx
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4705b8
mov ecx, eax
call fcn.0048f7e0
jmp 0x4705ba
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0048f900
mov eax, dword [esi + 0x20]
push 0x61c4
mov byte [eax + 0x18], 0
call ebx
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4705f3
mov ecx, eax
call fcn.0048f7e0
jmp 0x4705f5
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x24], eax
call fcn.0048f900
mov eax, dword [esi + 0x24]
mov byte [ebp - 0xd], 0
mov byte [eax + 0x18], 0
mov eax, dword [0x58d464]
mov ecx, dword [eax + 0x54]
cmp dword [ecx + 0x35c], 0x86
jle 0x470642
mov eax, dword [ecx + 0x364]
mov eax, dword [eax + 0x218]
cmp dword [eax], 0xffffffff
jle 0x470642
mov eax, dword [ecx + 0x344]
mov byte [ebp - 0xd], 1
jmp 0x470648
mov eax, dword [ecx + 0x348]
xorps xmm1, xmm1
mov dword [ebp - 0x38], vtable.phVector2d.0
mov dword [ebp - 0x34], 0
movss dword [ebp - 0x30], xmm1
mov dword [ebp - 4], 2
mov dword [ebp - 0x54], vtable.phVector2d.0
mov dword [ebp - 0x50], 0x44020000
mov dword [ebp - 0x4c], 0x44498000
mov dword [ebp - 0x60], vtable.phVector2d.0
mov dword [ebp - 0x5c], 0x43020000
mov dword [ebp - 0x58], 0xc3340000
xor ecx, ecx
mov byte [ebp - 4], 4
inc eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x48], vtable.phVector2d.0
mov dword [ebp - 0x2c], eax
movd xmm0, ecx
xor edi, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x1c], edi
mulss xmm0, dword [0x577ccc]
movss dword [ebp - 0x40], xmm0
lea esp, [esp]
push 0x204
call ebx
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4706e3
mov ecx, eax
call fcn.0046f9c0
mov ebx, eax
mov dword [ebp - 0x18], eax
jmp 0x4706e8
xor ebx, ebx
mov dword [ebp - 0x18], ebx
movd xmm0, edi
lea eax, [ebp - 0x48]
cvtdq2ps xmm0, xmm0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
mulss xmm0, dword [0x57781c]
movss dword [ebp - 0x44], xmm0
call fcn.00441d60
movss xmm4, dword [ebp - 0x6c]
movss xmm3, dword [ebp - 0x68]
movaps xmm2, xmm4
movss xmm5, dword [0x577514]
movaps xmm1, xmm3
movss dword [ebx + 0x54], xmm4
movss dword [ebx + 0x58], xmm3
movss xmm0, dword [ebx + 0x44]
mulss xmm0, xmm5
subss xmm2, xmm0
movss xmm0, dword [ebx + 0x48]
mulss xmm0, xmm5
subss xmm1, xmm0
movss dword [ebx + 0x60], xmm2
movss dword [ebx + 0x64], xmm1
movaps xmm1, xmm3
movss xmm0, dword [ebx + 0x48]
movss xmm2, dword [ebx + 0x44]
mulss xmm0, xmm5
mulss xmm2, xmm5
subss xmm1, xmm0
addss xmm2, xmm4
movss dword [ebx + 0x70], xmm1
movss dword [ebx + 0x6c], xmm2
movss xmm0, dword [ebx + 0x48]
movss xmm1, dword [ebx + 0x44]
mulss xmm0, xmm5
mulss xmm1, xmm5
addss xmm0, xmm3
addss xmm1, xmm4
movss dword [ebx + 0x7c], xmm0
movss dword [ebx + 0x78], xmm1
movss xmm0, dword [ebx + 0x44]
mulss xmm0, xmm5
subss xmm4, xmm0
movss xmm0, dword [ebx + 0x48]
mulss xmm0, xmm5
addss xmm0, xmm3
movss dword [ebx + 0x84], xmm4
movss dword [ebx + 0x88], xmm0
mov eax, dword [esi + 0x20]
lea esi, [eax + 0x98]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x10], edi
jne 0x470837
add edi, 0xa
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor edx, edx
mov dword [esi + 4], eax
add esp, 4
cmp dword [esi + 0x14], edx
jle 0x470822
lea ecx, [ecx]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi + 0x14]
jl 0x470810
push dword [esi + 0x18]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 4]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov dword [eax + ecx*4], ebx
inc dword [esi + 0x10]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x470952
mov eax, dword [edi + 0x28]
test eax, eax
je 0x47085e
mov edi, eax
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x470855
mov ecx, dword [esi + 0x10]
xor edx, edx
mov eax, dword [esi + 0x18]
mov dword [esi + 4], eax
test ecx, ecx
jle 0x470882
lea ecx, [ecx]
mov eax, dword [esi + 4]
cmp edi, dword [eax]
je 0x470885
add eax, 4
inc edx
mov dword [esi + 4], eax
cmp edx, ecx
jl 0x470870
or edx, 0xffffffff
mov dword [esi + 8], edx
cmp edx, 0xffffffff
je 0x4708aa
lea eax, [ecx - 1]
cmp edx, eax
jge 0x4708a7
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [esi + 0x10]
dec eax
cmp edx, eax
jl 0x470894
dec dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], eax
jne 0x47090a
add eax, 0xa
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor edx, edx
mov dword [esi + 4], eax
add esp, 4
cmp dword [esi + 0x14], edx
jle 0x4708f2
jmp 0x4708e0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi + 0x14]
jl 0x4708e0
push dword [esi + 0x18]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 4]
add esp, 4
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x10]
mov eax, dword [edi + 0x2c]
cmp eax, 2
je 0x470929
cmp eax, 0x3e0
jne 0x470a34
xor esi, esi
cmp dword [edi + 0x1c], esi
jle 0x470a34
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi + 0x24]
mov ecx, ebx
push dword [eax + esi*4]
call fcn.00491380
inc esi
cmp esi, dword [edi + 0x1c]
jl 0x470937
mov ebx, dword [ebp - 0x18]
jmp 0x470a34
mov ecx, dword [esi + 0x10]
xor edx, edx
mov eax, dword [esi + 0x18]
mov dword [esi + 4], eax
test ecx, ecx
jle 0x470973
mov eax, dword [esi + 4]
cmp ebx, dword [eax]
je 0x470976
add eax, 4
inc edx
mov dword [esi + 4], eax
cmp edx, ecx
jl 0x470961
or edx, 0xffffffff
mov dword [esi + 8], edx
cmp edx, 0xffffffff
je 0x47099b
lea eax, [ecx - 1]
cmp edx, eax
jge 0x470998
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [esi + 0x10]
dec eax
cmp edx, eax
jl 0x470985
dec dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], eax
jne 0x4709f7
lea edi, [eax + 0xa]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor edx, edx
mov dword [esi + 4], eax
add esp, 4
cmp dword [esi + 0x14], edx
jle 0x4709e2
jmp 0x4709d0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi + 0x14]
jl 0x4709d0
push dword [esi + 0x18]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 4]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov dword [eax + ecx*4], ebx
inc dword [esi + 0x10]
mov eax, dword [ebx + 0x2c]
cmp eax, 2
je 0x470a12
cmp eax, 0x3e0
jne 0x470a34
xor esi, esi
cmp dword [ebx + 0x1c], esi
jle 0x470a34
lea esp, [esp]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x14]
push dword [eax + esi*4]
call fcn.00491380
inc esi
cmp esi, dword [ebx + 0x1c]
jl 0x470a20
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [eax + 0x90], ebx
mov eax, dword [esi + 0x3c]
cmp dword [esi + 0x38], eax
jne 0x470a97
lea edi, [eax + 0xa]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor edx, edx
mov dword [esi + 0x2c], eax
add esp, 4
cmp dword [esi + 0x3c], edx
jle 0x470a82
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x2c]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi + 0x3c]
jl 0x470a70
push dword [esi + 0x40]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 0x2c]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], edi
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
mov dword [eax + ecx*4], ebx
inc dword [esi + 0x38]
mov eax, dword [esi + 0x38]
dec eax
mov dword [ebx + 0x1fc], eax
cmp eax, dword [ebp - 0x2c]
jg 0x470ac6
movss xmm0, dword [ebx + 0x54]
movss xmm1, dword [ebx + 0x58]
movss dword [ebp - 0x34], xmm0
movss dword [ebp - 0x30], xmm1
mov edi, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.msvcr120.dll_void____cdecl_operator_new_unsigned_int_]
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 5
jl 0x4706c0
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x1b
jl 0x4706a3
mov ecx, esi
call fcn.00470d30
push 0x21c
call ebx
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x470b16
push dword [esi + 0x24]
mov ecx, eax
call fcn.00454830
mov edi, eax
jmp 0x470b18
xor edi, edi
mov dword [esi + 0x48], edi
mov dword [ebp - 0x48], vtable.phVector2d.0
mov dword [ebp - 0x44], 0x449ec000
mov dword [ebp - 0x40], 0x43b40000
lea eax, [edi + 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
call fcn.00457080
mov byte [ebp - 4], 8
lea ecx, [edi + 0x40]
mov eax, dword [ecx]
sub esp, 8
mov dword [esp + 4], 0x43b40000
mov dword [esp], 0x449ec000
call dword [eax + 8]
movss xmm0, dword [ebp - 0x68]
sub esp, 8
mov eax, dword [edi]
mov ecx, edi
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x6c]
movss dword [esp], xmm0
call dword [eax + 0x78]
mov byte [ebp - 4], 4
push dword [esi + 0x48]
mov ecx, dword [esi + 0x24]
call fcn.00491150
movss xmm2, dword [0x5777e0]
movss xmm1, dword [0x577570]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x30]
mov eax, dword [esi + 0x48]
addss xmm0, dword [0x577954]
movss dword [esi + 8], xmm0
mulss xmm0, dword [0x577458]
mov eax, dword [eax + 0x200]
subss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm2
comiss xmm0, xmm1
jbe 0x470bd7
movaps xmm1, xmm0
jmp 0x470bdf
comiss xmm1, xmm2
jbe 0x470bdf
movaps xmm1, xmm2
movss dword [eax + 0x1f8], xmm1
cmp byte [esi + 0x54], 0
je 0x470c0d
cmp byte [ebp - 0xd], 0
je 0x470c0d
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x200]
mov dword [eax + 0x1f8], 0
mov dword [esi + 8], 0x458ca000
push 0x20
call ebx
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x470c84
mov dword [edi], 0x56c368
mov dword [edi + 4], 0x5752f0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
xor ecx, ecx
mov byte [ebp - 4], 0xa
mov eax, 0x1e
mov dword [edi + 0x18], 0x1e
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor ecx, ecx
mov dword [edi + 0x1c], eax
add esp, 4
cmp dword [edi + 0x18], ecx
jle 0x470c86
mov eax, dword [edi + 0x1c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, dword [edi + 0x18]
jl 0x470c72
jmp 0x470c86
xor edi, edi
mov byte [ebp - 4], 4
push 0x20
mov dword [esi + 0x84], edi
call ebx
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x470d07
mov dword [edi], 0x56c368
mov dword [edi + 4], 0x5752f0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
xor ecx, ecx
mov byte [ebp - 4], 0xc
mov eax, 0x1e
mov dword [edi + 0x18], 0x1e
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
xor ecx, ecx
mov dword [edi + 0x1c], eax
add esp, 4
cmp dword [edi + 0x18], ecx
jle 0x470d09
mov eax, dword [edi + 0x1c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, dword [edi + 0x18]
jl 0x470cf5
jmp 0x470d09
xor edi, edi
mov byte [ebp - 4], 4
mov dword [esi + 0x88], edi
call fcn.0053b260
mov dword [esi + 0x78], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret