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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f6267
mov eax, dword fs:[0]
push eax
sub esp, 0x368
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [ebx + 0x110]
add eax, 0x110
push eax
lea eax, [esp + 0x100]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [ebx + 0x118]
lea ecx, [ebx + 0xf8]
push eax
lea edi, [ebx + 0xb0]
movsd qword [esp + 0x3c], xmm0
call fcn.004a8ae0
lea ecx, [esp + 0xfc]
call fcn.004a88b0
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x56e062
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [edi]
lea eax, [ecx + 0x110]
push eax
movq qword [esp + 0x60], xmm0
movq xmm0, qword [edi + 8]
push eax
lea eax, [ecx + 0xc8]
movq qword [esp + 0x6c], xmm0
movq xmm0, qword [edi + 0x10]
push eax
lea ecx, [esp + 0x68]
movq qword [esp + 0x78], xmm0
call fcn.004a91c0
fstp st(0)
movsd xmm0, qword [edi]
subsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0xe4], xmm0
movsd xmm0, qword [edi + 8]
subsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0xec], xmm0
movsd xmm0, qword [edi + 0x10]
subsd xmm0, qword [esp + 0x6c]
lea ecx, [esp + 0xe4]
movsd qword [esp + 0xf4], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x56dde0
mov eax, 2
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx + 0xf8]
push eax
lea eax, [ebx + 0xe0]
push eax
lea eax, [ebx + 0xc8]
push eax
lea ecx, [esp + 0x120]
call fcn.004e3930
lea ecx, [esp + 0x114]
call fcn.004e38b0
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.004a8d80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov edi, eax
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x114]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
fldz
sub esp, 0x10
fst qword [esp + 8]
lea ecx, [esp + 0xb4]
fstp qword [esp]
call fcn.004ae130
fld qword [esp + 0x34]
push eax
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x1d0]
fld qword [esp + 0x40]
mov dword [esp + 0x394], 0
fstp qword [esp]
call fcn.00590060
sub esp, 0x10
cmp byte [esi + 0x48], 0
mov byte [esp + 0x390], 2
mov dword [esp + 0xb4], vtable.CGeom2d_Abs.0
je 0x56deda
fld qword [0x616648]
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
fstp qword [esp + 8]
fldz
mov edx, dword [eax + 0x30]
mov ecx, edi
fstp qword [esp]
call edx
jmp 0x56def9
fld qword [ebx + 0x18]
lea ecx, [esp + 0x1cc]
fld qword [ebx + 0x10]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.0058fcb0
mov edi, dword [esp + 0x14]
fld qword [0x5ff780]
push 0
sub esp, 8
fstp qword [esp]
push edi
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x170]
call fcn.0055fb30
mov byte [esp + 0x380], 3
test edi, edi
je 0x56df32
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
movsd xmm0, qword [0x5fc740]
movsd xmm1, qword [esp + 0x44]
mov ebx, dword [esp + 0x1b4]
mov edi, dword [esp + 0x1a8]
xorpd xmm1, xmm0
movsd qword [esp + 0x44], xmm1
movsd xmm1, qword [esp + 0x4c]
xorpd xmm1, xmm0
movsd qword [esp + 0x4c], xmm1
movsd xmm1, qword [esp + 0x54]
xorpd xmm1, xmm0
lea ecx, [esp + 0x114]
mov dword [esp + 0x18], ebx
movsd qword [esp + 0x54], xmm1
call fcn.004e38b0
test ebx, ebx
jle 0x56e042
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x14], 0
add edi, 0x10
mov dword [esp + 0x2c], ecx
mov eax, dword [esi + 0x38]
movsd xmm0, qword [edi - 8]
movsd xmm1, qword [edi - 0x10]
add eax, ebx
movsd qword [eax + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm1
movsd qword [eax + 0x10], xmm0
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x114]
add ecx, ebx
push edx
call fcn.004a95b0
mov eax, dword [esi + 0x38]
movsd xmm0, qword [esp + 0x44]
addsd xmm0, qword [eax + ebx]
mov ecx, dword [esp + 0x14]
add eax, ebx
movsd qword [eax], xmm0
movsd xmm0, qword [eax + 8]
addsd xmm0, qword [esp + 0x4c]
movsd qword [eax + 8], xmm0
movsd xmm0, qword [eax + 0x10]
addsd xmm0, qword [esp + 0x54]
movsd qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x3c]
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
add eax, ecx
add ecx, 0x10
add ebx, 0x18
add edi, 0x28
sub dword [esp + 0x2c], 1
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm1
mov dword [esp + 0x14], ecx
jne 0x56dfa5
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x15c]
mov dword [esi + 0x40], ebx
mov byte [esi + 0x49], 1
mov byte [esp + 0x380], 2
call fcn.00552180
jmp 0x56e73b
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
lea ecx, [eax + 0x110]
push ecx
add eax, 0xc8
push eax
lea eax, [ebx + 0xf8]
push eax
push edi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xa0]
push ecx
movsd qword [esp + 0xb4], xmm0
movsd qword [esp + 0xac], xmm0
movsd qword [esp + 0xa4], xmm0
movsd qword [esp + 0xf4], xmm0
movsd qword [esp + 0xec], xmm0
movsd qword [esp + 0xe4], xmm0
call fcn.0057acc0
add esp, 0x18
test al, al
je 0x56e2db
movq xmm0, qword [esp + 0x8c]
movq qword [esp + 0xb4], xmm0
movq xmm0, qword [esp + 0x94]
movq qword [esp + 0xbc], xmm0
movq xmm0, qword [esp + 0x9c]
mov byte [esp + 0xa8], 1
mov dword [esp + 0xac], 0
mov dword [esp + 0xa4], vtable.CGeom_Point.0
movq qword [esp + 0xc4], xmm0
mov dword [esp + 0xb0], 0xa
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x26c]
mov dword [esp + 0x388], 4
call fcn.004edcf0
push ebx
lea ecx, [esp + 0x268]
push ecx
mov ecx, esi
mov byte [esp + 0x388], 6
mov dword [esp + 0xac], vtable.CGeom_Abs.0
call fcn.0056ba40
cmp eax, 3
je 0x56e2db
test eax, eax
jne 0x56e73b
mov edi, dword [esi + 0x40]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x3c], edi
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov ebx, eax
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x30], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov ecx, eax
add esp, 8
xor eax, eax
cmp edi, 4
mov dword [esp + 0x28], ecx
jl 0x56e277
lea eax, [ecx + 8]
lea edi, [ebx + 0x18]
sub ebx, ecx
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffffc
shr ecx, 2
inc ecx
mov dword [esp + 0x14], ecx
add ecx, ecx
xor edx, edx
add ecx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ecx
jmp 0x56e209
mov ebx, dword [esp + 0x34]
mov ecx, dword [esi + 0x3c]
fld qword [ecx + edx]
add ecx, edx
fstp qword [edi - 0x18]
add eax, 0x20
fld qword [ecx + 8]
add edi, 0x20
fstp qword [eax - 0x28]
mov ecx, dword [esi + 0x3c]
fld qword [ecx + edx + 0x10]
lea ecx, [ecx + edx + 0x10]
fstp qword [ebx + eax - 0x20]
lea ebx, [edx + 0x30]
fld qword [ecx + 8]
add edx, 0x40
fstp qword [eax - 0x20]
mov ecx, dword [esi + 0x3c]
fld qword [ebx + ecx - 0x10]
lea ecx, [ebx + ecx - 0x10]
fstp qword [edi - 0x28]
fld qword [ecx + 8]
fstp qword [eax - 0x18]
mov ecx, dword [esi + 0x3c]
fld qword [ecx + ebx]
add ecx, ebx
sub dword [esp + 0x14], 1
fstp qword [edi - 0x20]
fld qword [ecx + 8]
fstp qword [eax - 0x10]
jne 0x56e205
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp eax, edi
jge 0x56e2b0
sub ebx, dword [esp + 0x28]
mov edx, eax
shl edx, 4
lea ecx, [ecx + eax*8]
sub edi, eax
lea esp, [esp]
mov eax, dword [esi + 0x3c]
fld qword [eax + edx]
add eax, edx
fstp qword [ecx + ebx]
add edx, 0x10
fld qword [eax + 8]
add ecx, 8
sub edi, 1
fstp qword [ecx - 8]
jne 0x56e290
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x268]
push eax
mov ecx, esi
call fcn.0056b430
cmp eax, 3
jne 0x56e2f8
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 8
mov eax, 3
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 0x40]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x20], edi
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov dword [esp + 0x20], eax
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov ebx, eax
xor eax, eax
add esp, 8
cmp edi, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
jl 0x56e3e6
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
sub ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffffc
shr ecx, 2
inc ecx
mov dword [esp + 0x34], ecx
add ecx, ecx
xor edx, edx
add edi, 0x18
add ecx, ecx
lea eax, [ebx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x3c]
fld qword [ecx + edx]
mov ebx, dword [esp + 0x24]
fstp qword [edi - 0x18]
add ecx, edx
fld qword [ecx + 8]
add eax, 0x20
fstp qword [eax - 0x28]
mov ecx, dword [esi + 0x3c]
fld qword [edx + ecx + 0x10]
lea ecx, [edx + ecx + 0x10]
fstp qword [ebx + eax - 0x20]
lea ebx, [edx + 0x30]
fld qword [ecx + 8]
add edx, 0x40
fstp qword [eax - 0x20]
mov ecx, dword [esi + 0x3c]
fld qword [ecx + ebx - 0x10]
lea ecx, [ecx + ebx - 0x10]
fstp qword [edi - 8]
add edi, 0x20
fld qword [ecx + 8]
fstp qword [eax - 0x18]
mov ecx, dword [esi + 0x3c]
fld qword [ecx + ebx]
add ecx, ebx
sub dword [esp + 0x34], 1
fstp qword [edi - 0x20]
fld qword [ecx + 8]
fstp qword [eax - 0x10]
jne 0x56e378
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
cmp eax, edi
jge 0x56e423
mov edx, eax
lea ecx, [ebx + eax*8]
mov eax, dword [esp + 0x1c]
sub eax, ebx
shl edx, 4
sub edi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x3c]
fld qword [eax + edx]
mov ebx, dword [esp + 0x24]
add eax, edx
fstp qword [ecx + ebx]
fld qword [eax + 8]
add edx, 0x10
fstp qword [ecx]
add ecx, 8
sub edi, 1
jne 0x56e400
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
mov dword [esi + 0x40], 0
jle 0x56e51c
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], 0
jle 0x56e50a
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x2c]
movsd xmm0, qword [ebx + edx]
movsd xmm1, qword [0x5fc860]
movsd qword [esp + 0x3c], xmm0
subsd xmm0, qword [edi + eax]
andpd xmm0, xmm1
movsd xmm1, qword [0x5ff758]
comisd xmm1, xmm0
jbe 0x56e4fc
fld qword [esp + 0x3c]
sub esp, 8
lea eax, [esp + 0xec]
fstp qword [esp]
push eax
lea ecx, [esp + 0x270]
call fcn.0059d920
mov ecx, dword [esi + 0x40]
movq xmm0, qword [eax]
mov edx, dword [esi + 0x38]
lea ecx, [ecx + ecx*2]
movq qword [edx + ecx*8], xmm0
movq xmm0, qword [eax + 8]
movq qword [edx + ecx*8 + 8], xmm0
movq xmm0, qword [eax + 0x10]
lea ecx, [edx + ecx*8]
movq qword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x40]
movsd xmm0, qword [edi]
mov ecx, dword [esp + 0x28]
fld qword [ebx + ecx]
shl eax, 4
add eax, dword [esi + 0x3c]
fstp qword [eax]
movsd qword [eax + 8], xmm0
inc dword [esi + 0x40]
mov eax, dword [esp + 0x24]
mov byte [esi + 0x49], 1
add edi, 8
sub dword [esp + 0x34], 1
jne 0x56e460
add ebx, 8
sub dword [esp + 0x14], 1
jne 0x56e43f
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x2c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ebx, dword [esi + 0x40]
add esp, 0x10
test ebx, ebx
jne 0x56e568
mov byte [esi + 0x49], bl
lea eax, [ebx + 3]
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x3c], edi
jle 0x56e734
mov eax, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jge 0x56e718
lea edx, [edi + 1]
mov eax, edi
lea edi, [edi + edi*2]
add edi, edi
shl eax, 4
add edi, edi
mov dword [esp + 0x2c], edx
add edi, edi
lea edx, [ecx + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], edx
jmp 0x56e5c4
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x38]
xorps xmm0, xmm0
movsd qword [esp + 0x84], xmm0
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [ecx + eax]
subsd xmm0, qword [edx + eax]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [ecx + eax + 8]
subsd xmm0, qword [edx + eax + 8]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [ecx + eax + 0x10]
subsd xmm0, qword [edx + eax + 0x10]
lea ecx, [esp + 0x74]
movsd qword [esp + 0x84], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x56e6f6
mov ecx, dword [esi + 0x38]
mov eax, dword [esp + 0x18]
movq xmm0, qword [eax + ecx]
mov edx, dword [esp + 0x14]
add eax, ecx
movq qword [ecx + edi], xmm0
movq xmm0, qword [eax + 8]
add ecx, edi
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x1c]
movq xmm0, qword [ecx + eax]
add ecx, eax
add eax, edx
cmp dword [esp + 0x2c], ebx
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
jge 0x56e6db
lea ecx, [edi + 0x18]
mov edi, ebx
add edx, 0x10
sub edi, dword [esp + 0x2c]
lea esp, [esp]
mov eax, dword [esi + 0x38]
movq xmm0, qword [eax + ecx + 0x18]
add eax, ecx
movq qword [eax], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [eax + 8], xmm0
movq xmm0, qword [eax + 0x28]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x3c]
movq xmm0, qword [eax + edx + 0x10]
add eax, edx
movq qword [eax], xmm0
movq xmm0, qword [eax + 0x18]
add ecx, 0x18
add edx, 0x10
sub edi, 1
movq qword [eax + 8], xmm0
jne 0x56e690
mov edi, dword [esp + 0x34]
add dword [esp + 0x14], 0x10
mov eax, 1
add dword [esp + 0x3c], eax
add dword [esp + 0x2c], eax
add edi, 0x18
mov dword [esp + 0x34], edi
sub ebx, eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 0x18
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jl 0x56e5c0
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x10
inc eax
add ecx, 0x18
lea edx, [eax - 1]
cmp edx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
jl 0x56e589
mov dword [esi + 0x40], ebx
mov byte [esi + 0x49], 1
xor eax, eax
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8