Function at 0x4e1710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f287e
mov eax, dword fs:[0]
push eax
sub esp, 0x328
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x130]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x118]
push eax
lea ecx, [esi + 0x100]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x210]
mov dword [esp + 0x30], ebx
call fcn.004e3930
lea ecx, [esp + 0x204]
call fcn.004e38b0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
sub eax, 0xc
je 0x4e1e92
sub eax, 2
je 0x4e1a60
sub eax, 5
je 0x4e17b5
fld qword [ebp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [ebp + 0xc]
fstp qword [esp]
push edi
call fcn.00482290
jmp 0x4e2248
movq xmm0, qword [edi + 0x40]
movsd xmm1, qword [0x5fc860]
movq qword [esp + 0xd4], xmm0
movq xmm0, qword [edi + 0x48]
movq qword [esp + 0xdc], xmm0
movq xmm0, qword [edi + 0x50]
movq qword [esp + 0xe4], xmm0
movsd xmm0, qword [edi + 0x28]
movsd qword [esp + 0x54], xmm0
andpd xmm0, xmm1
comisd xmm0, xmmword [0x5ff758]
movsd qword [esp + 0x6c], xmm0
jbe 0x4e183d
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0xdc]
call fcn.004a8ae0
lea ecx, [esp + 0x24c]
call fcn.004a88b0
fld qword [0x5ff770]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x4e1798
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
xorps xmm0, xmm0
mov edi, eax
mov eax, dword [edi + 0x90]
cmp eax, ebx
mov ecx, dword [edi + 0x9c]
jle 0x4e1924
mov ebx, ecx
mov dword [esp + 0x24], eax
jmp 0x4e1873
xorps xmm0, xmm0
movsd qword [esp + 0xcc], xmm0
movsd qword [esp + 0xc4], xmm0
movsd qword [esp + 0xbc], xmm0
movsd xmm0, qword [ebx]
subsd xmm0, qword [esi + 0xe8]
movsd qword [esp + 0xbc], xmm0
movsd xmm0, qword [ebx + 8]
subsd xmm0, qword [esi + 0xf0]
lea ecx, [esp + 0x204]
movsd qword [esp + 0xc4], xmm0
movsd xmm0, qword [ebx + 0x10]
subsd xmm0, qword [esi + 0xf8]
push ecx
lea edx, [esp + 0x1f0]
push edx
lea ecx, [esp + 0xc4]
movsd qword [esp + 0xd4], xmm0
call fcn.004a8910
movq xmm0, qword [esp + 0x1ec]
movq qword [ebx], xmm0
movq xmm0, qword [esp + 0x1f4]
movq qword [ebx + 8], xmm0
movq xmm0, qword [esp + 0x1fc]
movq qword [ebx + 0x10], xmm0
add ebx, 0x18
sub dword [esp + 0x24], 1
jne 0x4e1870
xor ebx, ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
movsd xmm0, qword [edi + 0x10]
mov esi, eax
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [edi + 0x18]
movsd qword [esi + 0x18], xmm0
push 0x32
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0xa
call fcn.00412980
push 0x32
lea ecx, [esp + 0x4c]
mov dword [esp + 0x344], 0xc
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xa
call fcn.00412880
fld qword [edi + 0x18]
fld qword [edi + 0x10]
sub esp, 0x18
fld qword [ebp + 0xc]
lea eax, [esp + 0x60]
fstp qword [esp + 0x10]
lea ecx, [esp + 0x78]
fxch st(1)
mov byte [esp + 0x358], 0xd
fstp qword [esp + 8]
fstp qword [esp]
push eax
push ecx
mov ecx, edi
call fcn.004f2c30
dec eax
cmp eax, dword [esi + 0x44]
jle 0x4e19c2
mov dword [esi + 0x44], eax
movsd xmm0, qword [esp + 0x6c]
comisd xmm0, xmmword [0x5ff758]
jbe 0x4e1a23
mov eax, dword [esp + 0x28]
movsd xmm0, qword [eax + 8]
mulsd xmm0, qword [esp + 0xdc]
movsd xmm1, qword [esp + 0xd4]
mulsd xmm1, qword [eax]
addsd xmm0, xmm1
movsd xmm1, qword [eax + 0x10]
mulsd xmm1, qword [esp + 0xe4]
addsd xmm0, xmm1
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd xmm0, qword [esp + 0x54]
jbe 0x4e1a1e
xorpd xmm0, xmmword [0x5fc740]
movsd qword [esi + 0x28], xmm0
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, ebx
je 0x4e1a41
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
cmp eax, ebx
je 0x4e224a
push eax
call edi
add esp, 4
jmp 0x4e224a
fld qword [ebp + 0x14]
mov ecx, dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, edi
call fcn.00538f40
test al, al
je 0x4e1d76
movsd xmm0, qword [edi + 0xb8]
subsd xmm0, qword [esi + 0xe8]
movsd qword [esp + 0x1bc], xmm0
movsd xmm0, qword [edi + 0xc0]
subsd xmm0, qword [esi + 0xf0]
lea edx, [esp + 0x204]
movsd qword [esp + 0x1c4], xmm0
movsd xmm0, qword [edi + 0xc8]
subsd xmm0, qword [esi + 0xf8]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c4]
movsd qword [esp + 0x1d4], xmm0
call fcn.004a8910
fld qword [esp + 0x34]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x12c]
fld qword [esp + 0x3c]
fstp qword [esp]
call fcn.004ae130
fld qword [edi + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
sub esp, 8
lea eax, [esp + 0x2dc]
fstp qword [esp]
push eax
mov ecx, edi
mov dword [esp + 0x34c], 7
call edx
xorps xmm0, xmm0
movsd qword [esp + 0xfc], xmm0
movsd qword [esp + 0xf4], xmm0
movsd qword [esp + 0xec], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [esi + 0xe8]
movsd qword [esp + 0xec], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [esi + 0xf0]
movsd qword [esp + 0xf4], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [esi + 0xf8]
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0xf4]
movsd qword [esp + 0x104], xmm0
call fcn.004a8910
fld qword [esp + 0x144]
movq xmm0, qword [esp + 0x13c]
sub esp, 0x10
movq qword [esp + 0x3c], xmm0
fstp qword [esp + 8]
movq xmm0, qword [esp + 0x154]
fld qword [esp + 0x14c]
movq qword [esp + 0x44], xmm0
fstp qword [esp]
movq xmm0, qword [esp + 0x15c]
lea ecx, [esp + 0x17c]
movq qword [esp + 0x4c], xmm0
call fcn.004ae130
fld qword [edi + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
sub esp, 8
lea eax, [esp + 0x2ac]
fstp qword [esp]
push eax
mov ecx, edi
mov byte [esp + 0x34c], 8
call edx
xorps xmm0, xmm0
movsd qword [esp + 0x114], xmm0
movsd qword [esp + 0x10c], xmm0
movsd qword [esp + 0x104], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [esi + 0xe8]
movsd qword [esp + 0x104], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [esi + 0xf0]
movsd qword [esp + 0x10c], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [esi + 0xf8]
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x10c]
movsd qword [esp + 0x11c], xmm0
call fcn.004a8910
fld qword [esp + 0x15c]
movq xmm0, qword [esp + 0x154]
sub esp, 0x10
movq qword [esp + 0x3c], xmm0
fstp qword [esp + 8]
movq xmm0, qword [esp + 0x16c]
fld qword [esp + 0x164]
movq qword [esp + 0x44], xmm0
fstp qword [esp]
movq xmm0, qword [esp + 0x174]
lea ecx, [esp + 0x19c]
movq qword [esp + 0x4c], xmm0
call fcn.004ae130
push 0xa0
mov byte [esp + 0x344], 9
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x340], 0xa
cmp eax, ebx
je 0x4e2246
mov ecx, dword [esp + 0x28]
movsd xmm0, qword [ecx + 8]
mulsd xmm0, qword [edi + 0x108]
movsd xmm1, qword [ecx]
mulsd xmm1, qword [edi + 0x100]
addsd xmm0, xmm1
movsd xmm1, qword [ecx + 0x10]
mulsd xmm1, qword [edi + 0x110]
addsd xmm0, xmm1
comisd xmm0, xmmword [0x5fa830]
jbe 0x4e1d47
mov cl, 1
jmp 0x4e1d49
xor cl, cl
fldz
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x194]
push ecx
push edx
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x130]
push edx
mov ecx, eax
call fcn.0052c350
jmp 0x4e2248
push 0xe0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x340], 0xb
cmp eax, ebx
je 0x4e1da0
push edi
mov ecx, eax
call fcn.005162a0
mov ebx, eax
mov eax, dword [ebx + 0x90]
mov edi, dword [ebx + 0x9c]
mov dword [esp + 0x340], 0xffffffff
test eax, eax
jle 0x4e1e69
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
movsd qword [esp + 0x9c], xmm0
movsd qword [esp + 0x94], xmm0
movsd qword [esp + 0x8c], xmm0
movsd xmm0, qword [edi]
subsd xmm0, qword [esi + 0xe8]
movsd qword [esp + 0x8c], xmm0
movsd xmm0, qword [edi + 8]
subsd xmm0, qword [esi + 0xf0]
lea eax, [esp + 0x204]
movsd qword [esp + 0x94], xmm0
movsd xmm0, qword [edi + 0x10]
subsd xmm0, qword [esi + 0xf8]
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x94]
movsd qword [esp + 0xa4], xmm0
call fcn.004a8910
movq xmm0, qword [esp + 0x2c]
movq qword [edi], xmm0
movq xmm0, qword [esp + 0x34]
movq qword [edi + 8], xmm0
movq xmm0, qword [esp + 0x3c]
movq qword [edi + 0x10], xmm0
add edi, 0x18
sub dword [esp + 0x24], 1
jne 0x4e1dc3
mov edx, dword [ebx]
mov eax, dword [edx + 0x90]
mov ecx, ebx
call eax
fld qword [ebx + 0x10]
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edx]
fstp qword [esi + 0x10]
fld qword [ebx + 0x18]
push 1
mov ecx, ebx
fstp qword [esi + 0x18]
call eax
jmp 0x4e224a
fld qword [ebp + 0x14]
mov ecx, dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push ecx
lea ebx, [esi + 0xe8]
push ebx
lea edx, [esp + 0x7c]
push edx
mov ecx, edi
call fcn.004ef160
test al, al
je 0x4e1ed1
xor eax, eax
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0xc], 0xc
jne 0x4e1f11
movsd xmm1, qword [0x5ff708]
movsd xmm0, qword [0x5ff758]
movsd xmm2, qword [edi + 0x10]
addsd xmm1, xmm0
comisd xmm2, xmm1
jbe 0x4e214e
movsd xmm1, qword [0x5ff710]
subsd xmm1, xmm0
comisd xmm1, xmmword [edi + 0x18]
jbe 0x4e214e
fld qword [edi + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
sub esp, 8
lea ecx, [esp + 0x2c4]
fstp qword [esp]
push ecx
mov ecx, edi
call edx
xorps xmm0, xmm0
movsd qword [esp + 0xb4], xmm0
movsd qword [esp + 0xac], xmm0
movsd qword [esp + 0xa4], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [ebx]
movsd qword [esp + 0xa4], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ebx + 8]
movsd qword [esp + 0xac], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ebx + 0x10]
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x170]
push ecx
lea ecx, [esp + 0xac]
movsd qword [esp + 0xbc], xmm0
call fcn.004a8910
fld qword [edi + 0x18]
movsd xmm0, qword [esp + 0x16c]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
sub esp, 8
lea eax, [esp + 0x2f4]
fstp qword [esp]
movsd qword [esp + 0x124], xmm0
movsd xmm0, qword [esp + 0x17c]
push eax
mov ecx, edi
movsd qword [esp + 0x130], xmm0
call edx
xorps xmm0, xmm0
movsd qword [esp + 0x84], xmm0
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [ebx]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ebx + 8]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ebx + 0x10]
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x190]
push ecx
lea ecx, [esp + 0x7c]
movsd qword [esp + 0x8c], xmm0
call fcn.004a8910
movsd xmm0, qword [esp + 0x18c]
movsd xmm1, qword [esp + 0x194]
movsd qword [esp + 0x2c], xmm0
subsd xmm0, qword [esp + 0x11c]
movsd qword [esp + 0x34], xmm1
subsd xmm1, qword [esp + 0x124]
lea ecx, [esp + 0x1ac]
movsd qword [esp + 0x1ac], xmm0
movsd qword [esp + 0x1b4], xmm1
call fcn.004a7500
fld qword [0x5ff780]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x4e214e
push 0x88
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x54], esi
xor eax, eax
mov dword [esp + 0x340], eax
cmp esi, eax
je 0x4e2115
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x288]
call fcn.004ae170
mov dword [esp + 0x28], eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x344], 1
mov dword [esp + 0x28], 1
call fcn.004ae170
mov ecx, dword [esp + 0x28]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x348], 2
mov dword [esp + 0x2c], 3
call fcn.004ac780
mov ecx, dword [esp + 0x24]
mov esi, eax
mov edx, vtable.CGeom2d_Abs.0
test cl, 2
je 0x4e212f
and ecx, 0xfffffffd
mov dword [esp + 0x264], edx
mov dword [esp + 0x340], 0xffffffff
test cl, 1
je 0x4e2146
mov dword [esp + 0x284], edx
test eax, eax
jne 0x4e224a
movsd xmm0, qword [edi + 0xb0]
subsd xmm0, qword [ebx]
movsd qword [esp + 0x1d4], xmm0
movsd xmm0, qword [edi + 0xb8]
subsd xmm0, qword [ebx + 8]
lea edx, [esp + 0x204]
movsd qword [esp + 0x1dc], xmm0
movsd xmm0, qword [edi + 0xc0]
subsd xmm0, qword [ebx + 0x10]
push edx
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x1dc]
movsd qword [esp + 0x1ec], xmm0
call fcn.004a8910
fld qword [esp + 0x194]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x12c]
fld qword [esp + 0x19c]
fstp qword [esp]
call fcn.004ae130
lea ecx, [esp + 0x204]
push ecx
lea edx, [esp + 0x170]
push edx
lea ecx, [edi + 0xc8]
mov dword [esp + 0x348], 5
call fcn.004a8910
movsd xmm0, qword [esp + 0x16c]
movsd qword [esp + 0x2c], xmm0
movsd xmm0, qword [esp + 0x174]
push 0x88
movsd qword [esp + 0x38], xmm0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x340], 6
test eax, eax
je 0x4e2246
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x120]
push edx
mov ecx, eax
call fcn.004ac6b0
jmp 0x4e2248
xor eax, eax
mov esi, eax
mov eax, esi
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14